摘要:
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
摘要:
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
摘要:
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
摘要:
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
摘要:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
摘要:
题目 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 思路: 1、传统思路:将行和列互换,但是前期行换列的过程会影响到后期的行换列,所以要额外使用一 阅读全文
摘要:
题目: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 阅读全文
摘要:
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you 阅读全文
摘要:
能用图就不要用文字,能用电子工具就不要用手写。 阅读全文
摘要:
1、会使用基本的数组、字符串的操作 2、map的相关知识点 3、JVM虚拟机 4、多线程,高并发,线程安全 5、待更 阅读全文