上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
  2017年7月6日
摘要: Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- 阅读全文
posted @ 2017-07-06 15:42 无惧风云 阅读(130) 评论(0) 推荐(0)
摘要: Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 阅读全文
posted @ 2017-07-06 10:23 无惧风云 阅读(130) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2017-07-06 09:52 无惧风云 阅读(121) 评论(0) 推荐(0)
  2017年7月5日
摘要: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2017-07-05 16:30 无惧风云 阅读(128) 评论(0) 推荐(0)
摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2017-07-05 14:19 无惧风云 阅读(148) 评论(0) 推荐(0)
  2017年7月4日
摘要: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc 阅读全文
posted @ 2017-07-04 11:37 无惧风云 阅读(112) 评论(0) 推荐(0)
摘要: We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n, write 阅读全文
posted @ 2017-07-04 10:25 无惧风云 阅读(156) 评论(0) 推荐(0)
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2017-07-04 09:44 无惧风云 阅读(158) 评论(0) 推荐(0)
  2017年6月30日
摘要: Determine whether an integer is a palindrome. Do this without extra space. 阅读全文
posted @ 2017-06-30 16:17 无惧风云 阅读(134) 评论(0) 推荐(0)
摘要: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 阅读全文
posted @ 2017-06-30 15:56 无惧风云 阅读(168) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页