leetcode
嘘の夢
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode Reverse String
class Solution { public void reverseString(char[] s) { int i = 0; int j = s.length - 1; while (i < j) { swap(s, i, j); i++; j--; ...原创 2019-12-06 17:11:19 · 117 阅读 · 0 评论 -
Leetcode (Plus One)
Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the list, and each elemen...原创 2019-10-28 22:06:34 · 138 阅读 · 0 评论 -
Leetcode Largest Number At Least Twice of Others
Largest Number At Least Twice of Others In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as every o...原创 2019-10-28 21:10:45 · 141 阅读 · 0 评论 -
Leetcode Find Pivot Index
Given an array of integers nums, write a method that returns the “pivot” index of this array. We define the pivot index as the index where the sum of the numbers to the left of the index is equal to ...原创 2019-10-26 19:46:37 · 154 阅读 · 0 评论
分享