上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2016-04-17 11:09 wangb021 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-04-15 13:42 wangb021 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-04-15 13:37 wangb021 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-04-15 13:33 wangb021 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-04-13 13:03 wangb021 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). 思路: 1、传统思路:将行和列互换,但是前期行换列的过程会影响到后期的行换列,所以要额外使用一 阅读全文
posted @ 2016-04-12 19:50 wangb021 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目: 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]. 阅读全文
posted @ 2016-04-12 19:19 wangb021 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-04-12 19:11 wangb021 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 能用图就不要用文字,能用电子工具就不要用手写。 阅读全文
posted @ 2016-03-30 00:02 wangb021 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1、会使用基本的数组、字符串的操作 2、map的相关知识点 3、JVM虚拟机 4、多线程,高并发,线程安全 5、待更 阅读全文
posted @ 2016-03-27 15:10 wangb021 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页