上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
  2018年4月2日
摘要: 1. Unique Binary Search Trees Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, ther 阅读全文
posted @ 2018-04-02 20:57 f91og 阅读(187) 评论(0) 推荐(0) 编辑
  2018年3月31日
摘要: 1. Reverse Linked List II Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and 阅读全文
posted @ 2018-03-31 18:41 f91og 阅读(115) 评论(0) 推荐(0) 编辑
  2018年3月30日
摘要: 1. Word Search Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cel 阅读全文
posted @ 2018-03-30 18:02 f91og 阅读(204) 评论(0) 推荐(0) 编辑
  2018年3月18日
摘要: 1. Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. Example: 思路:这题感觉有点没有说清楚,如果k大于了链表长度该怎么办呢?这个时候怎么确定旋转位置呢? 阅读全文
posted @ 2018-03-18 19:29 f91og 阅读(244) 评论(0) 推荐(0) 编辑
  2018年3月15日
摘要: 1. Jump Game Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen 阅读全文
posted @ 2018-03-15 14:19 f91og 阅读(206) 评论(0) 推荐(0) 编辑
  2018年3月8日
摘要: 1. Group Anagrams Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Note: All inputs 阅读全文
posted @ 2018-03-08 13:46 f91og 阅读(208) 评论(0) 推荐(0) 编辑
  2018年3月1日
摘要: 1. Permutations Given a collection of distinct numbers, return all possible permutations. For example,[1,2,3] have the following permutations: 思路;直接使用 阅读全文
posted @ 2018-03-01 16:29 f91og 阅读(152) 评论(0) 推荐(0) 编辑
  2018年2月28日
摘要: 1. Combination Sum Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the cand 阅读全文
posted @ 2018-02-28 16:19 f91og 阅读(208) 评论(0) 推荐(0) 编辑
  2018年1月30日
摘要: 1. Search in Rotated Sorted Array Suppose an array sorted in ascending order is rotated(轮流,循环) at some pivot(枢轴; 中心点) unknown to you beforehand(提前; 事先 阅读全文
posted @ 2018-01-30 18:42 f91og 阅读(204) 评论(0) 推荐(0) 编辑
  2018年1月19日
摘要: 1. Swap Nodes in Pairs Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the li 阅读全文
posted @ 2018-01-19 17:44 f91og 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页