![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 74 阅读 · 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 · 92 阅读 · 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 · 97 阅读 · 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 · 111 阅读 · 0 评论