上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: Validate if a given string is numeric. Example "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true 考察 corner case public class So 阅读全文
posted @ 2017-07-13 15:28 YuriFLAG 阅读(135) 评论(0) 推荐(0)
摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeat 阅读全文
posted @ 2016-09-12 08:51 YuriFLAG 阅读(118) 评论(0) 推荐(0)
摘要: You have two every large binary trees: T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of 阅读全文
posted @ 2016-08-29 22:35 YuriFLAG 阅读(150) 评论(0) 推荐(0)
摘要: 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-08-22 21:58 YuriFLAG 阅读(174) 评论(0) 推荐(0)
摘要: You need to write a function, which will accept a String and return first non-repeated character, for example in the world "hello", except 'l' all are 阅读全文
posted @ 2016-08-22 17:03 YuriFLAG 阅读(207) 评论(0) 推荐(0)
摘要: Sort a linked list using insertion sort. 阅读全文
posted @ 2016-08-20 08:59 YuriFLAG 阅读(109) 评论(0) 推荐(0)
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. 阅读全文
posted @ 2016-08-19 16:12 YuriFLAG 阅读(116) 评论(0) 推荐(0)
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2016-08-17 09:51 YuriFLAG 阅读(103) 评论(0) 推荐(0)
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 阅读全文
posted @ 2016-08-16 19:59 YuriFLAG 阅读(114) 评论(0) 推荐(0)
摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2016-08-16 09:23 YuriFLAG 阅读(142) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页