摘要:
208. Implement Trie (Prefix Tree) Medium A trie (pronounced as "try") or prefix tree is a tree data structure used to efficiently store and retrieve k 阅读全文
摘要:
239. Sliding Window Maximum Hard You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of th 阅读全文
摘要:
496. Next Greater Element I The next greater element of some element x in an array is the first greater element that is to the right of x in the same 阅读全文
摘要:
215. Kth Largest Element in an Array Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kt 阅读全文
摘要:
35. Search Insert Position Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the i 阅读全文
摘要:
Backtracking can be solved always as follows: Pick a starting point. while(Problem is not solved) For each path from the starting point. check if sele 阅读全文
摘要:
127. Word Ladder Hard A transformation sequence from word beginWord to word endWord using a dictionary wordList is a sequence of words beginWord -> s1 阅读全文
摘要:
15. 3Sum Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] 阅读全文