上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

2018年11月8日

摘要: Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2018-11-08 10:52 chiyeung 阅读(150) 评论(0) 推荐(0)

2018年11月7日

摘要: X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate 阅读全文
posted @ 2018-11-07 10:34 chiyeung 阅读(210) 评论(0) 推荐(0)

2018年11月6日

摘要: Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in th 阅读全文
posted @ 2018-11-06 09:28 chiyeung 阅读(170) 评论(0) 推荐(0)

2018年11月5日

摘要: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2018-11-05 19:40 chiyeung 阅读(140) 评论(0) 推荐(0)

2018年11月4日

摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2018-11-04 08:48 chiyeung 阅读(153) 评论(0) 推荐(0)

2018年11月3日

摘要: You are given a data structure of employee information, which includes the employee's unique id, his importance value and his direct subordinates' id. 阅读全文
posted @ 2018-11-03 09:57 chiyeung 阅读(323) 评论(0) 推荐(0)

2018年11月2日

摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2018-11-02 09:31 chiyeung 阅读(178) 评论(0) 推荐(0)

2018年11月1日

摘要: Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to completethe 阅读全文
posted @ 2018-11-01 11:56 chiyeung 阅读(241) 评论(0) 推荐(0)

2018年10月31日

摘要: 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. Example: Note: 阅读全文
posted @ 2018-10-31 12:56 chiyeung 阅读(135) 评论(0) 推荐(0)
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro 阅读全文
posted @ 2018-10-31 12:32 chiyeung 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

导航