10 2016 档案

摘要:Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping. Note: You 阅读全文
posted @ 2016-10-31 21:56 Grandyang 阅读(15616) 评论(3) 推荐(1) 编辑
摘要:Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2016-10-30 23:17 Grandyang 阅读(22946) 评论(13) 推荐(1) 编辑
摘要:Implement a data structure supporting the following operations: Challenge: Perform all these in O(1) time complexity. 这道题让我们实现一个全是O(1)复杂度的数据结构,包括了增加ke 阅读全文
posted @ 2016-10-29 23:51 Grandyang 阅读(12135) 评论(5) 推荐(0) 编辑
摘要:Given the root of a binary tree and an integer targetSum, return the number of paths where the sum of the values along the path equals targetSum. The 阅读全文
posted @ 2016-10-28 12:32 Grandyang 阅读(25037) 评论(19) 推荐(1) 编辑
摘要:Given a set of words (without duplicates), find all word squares you can build from them. A sequence of words forms a valid word square if the kth row 阅读全文
posted @ 2016-10-27 22:57 Grandyang 阅读(13580) 评论(0) 推荐(1) 编辑
摘要:Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the 阅读全文
posted @ 2016-10-26 09:06 Grandyang 阅读(16122) 评论(5) 推荐(1) 编辑
摘要:Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp 阅读全文
posted @ 2016-10-25 12:16 Grandyang 阅读(5799) 评论(0) 推荐(0) 编辑
摘要:Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read th 阅读全文
posted @ 2016-10-24 06:26 Grandyang 阅读(8123) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231. Find the maximum result of ai XOR aj, where 0 ≤ i, j < n. Could you do t 阅读全文
posted @ 2016-10-23 23:57 Grandyang 阅读(17273) 评论(5) 推荐(0) 编辑
摘要:A password is considered strong if below conditions are all met: Write a function strongPasswordChecker(s), that takes a string s as input, and return 阅读全文
posted @ 2016-10-22 23:54 Grandyang 阅读(10097) 评论(5) 推荐(0) 编辑
摘要:Given an integer array nums, return the third distinct maximum number in this array. If the third maximum does not exist, return the maximum number. E 阅读全文
posted @ 2016-10-20 23:47 Grandyang 阅读(13681) 评论(6) 推荐(0) 编辑
摘要:Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may ass 阅读全文
posted @ 2016-10-19 23:39 Grandyang 阅读(11094) 评论(6) 推荐(0) 编辑
摘要:Given a rows x cols screen and a sentence represented by a list of words, find how many times the given sentence can be fitted on the screen. Note: Ex 阅读全文
posted @ 2016-10-18 22:53 Grandyang 阅读(15890) 评论(3) 推荐(0) 编辑
摘要:今天遇到个很奇怪的问题,文件浏览器File Explorer无法正常显示,点击打开后任务栏上已经显示打开了,但是屏幕上却看不到任何窗口,开始以为机子中了恶意的木马,然后就疯狂的查毒,然而并没有解决问题,简直要抓狂了,差点就要重装系统了。最后终于发现了原因了,因为我用的是多屏幕显示,我当时没有打开右边 阅读全文
posted @ 2016-10-17 04:37 Grandyang 阅读(389) 评论(0) 推荐(0) 编辑
摘要:A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2016-10-17 01:27 Grandyang 阅读(10132) 评论(2) 推荐(0) 编辑
摘要:Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe 阅读全文
posted @ 2016-10-16 13:25 Grandyang 阅读(5870) 评论(3) 推荐(0) 编辑
摘要:Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top 阅读全文
posted @ 2016-10-14 23:33 Grandyang 阅读(16059) 评论(8) 推荐(1) 编辑
摘要:Given a string, find the length of the longest substring without repeating characters. Have you met this question in a real interview? Yes Given a str 阅读全文
posted @ 2016-10-13 23:58 Grandyang 阅读(889) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both 阅读全文
posted @ 2016-10-12 07:42 Grandyang 阅读(31119) 评论(31) 推荐(3) 编辑
摘要:Reverse a linked list. Have you met this question in a real interview? Yes Reverse a linked list. Reverse a linked list. Have you met this question in 阅读全文
posted @ 2016-10-11 22:32 Grandyang 阅读(776) 评论(0) 推荐(0) 编辑
摘要:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. There are two sorted arrays A and B of siz 阅读全文
posted @ 2016-10-10 04:33 Grandyang 阅读(1528) 评论(0) 推荐(0) 编辑
摘要:Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100. 阅读全文
posted @ 2016-10-09 23:59 Grandyang 阅读(11782) 评论(3) 推荐(1) 编辑
摘要:Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Have you met this question in a real interview? Yes 阅读全文
posted @ 2016-10-08 23:58 Grandyang 阅读(1050) 评论(0) 推荐(0) 编辑
摘要:A string such as "word" contains the following abbreviations: ["word", "1ord", "w1rd", "wo1d", "wor1", "2rd", "w2d", "wo2", "1o1d", "1or1", "w1r1", "1 阅读全文
posted @ 2016-10-07 13:27 Grandyang 阅读(9949) 评论(0) 推荐(0) 编辑
摘要:Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algor 阅读全文
posted @ 2016-10-06 14:11 Grandyang 阅读(25022) 评论(26) 推荐(1) 编辑
摘要:Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters. L 阅读全文
posted @ 2016-10-05 10:45 Grandyang 阅读(14767) 评论(2) 推荐(0) 编辑
摘要:Given a non-empty string s and an abbreviation abbr, return whether the string matches with the given abbreviation. A string such as "word" contains o 阅读全文
posted @ 2016-10-04 13:09 Grandyang 阅读(10503) 评论(0) 推荐(0) 编辑
摘要:Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is able to 阅读全文
posted @ 2016-10-03 12:32 Grandyang 阅读(20219) 评论(14) 推荐(7) 编辑
摘要:Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers(h, k), where h is the height of the perso 阅读全文
posted @ 2016-10-02 23:58 Grandyang 阅读(20590) 评论(11) 推荐(1) 编辑
摘要:Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 2: 阅读全文
posted @ 2016-10-01 23:53 Grandyang 阅读(8707) 评论(7) 推荐(0) 编辑

Fork me on GitHub

喜欢请打赏

扫描二维码打赏

Venmo 打赏

点击右上角即可分享
微信分享提示