摘要: 26. Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the ne 阅读全文
posted @ 2017-08-14 21:48 这个手杀不太0 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 11. Container With Most Water Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are 阅读全文
posted @ 2017-08-14 20:11 这个手杀不太0 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 4. Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The 阅读全文
posted @ 2017-08-13 19:37 这个手杀不太0 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 3. Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Giv 阅读全文
posted @ 2017-08-13 18:14 这个手杀不太0 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 88. Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has 阅读全文
posted @ 2017-08-13 15:28 这个手杀不太0 阅读(3106) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2017-08-12 21:00 这个手杀不太0 阅读(490) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex 阅读全文
posted @ 2017-08-12 16:20 这个手杀不太0 阅读(241) 评论(7) 推荐(1) 编辑
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-08-12 15:21 这个手杀不太0 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Table: Person Table: Address Write a SQL query for a report that provides the following information for each person in the Person table, regardless if 阅读全文
posted @ 2017-08-12 12:21 这个手杀不太0 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 67. Add Binary Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 阅读全文
posted @ 2017-08-11 00:34 这个手杀不太0 阅读(177) 评论(0) 推荐(0) 编辑