-
Notifications
You must be signed in to change notification settings - Fork 47
Pull requests: keep-practicing/leetcode-go
Author
Label
Projects
Milestones
Reviews
Assignee
Sort
Pull requests list
79. Word Search
array
An array is stored such that the position of each element can be computed from its index
Backtracking
incrementally builds candidates to the solutions, and abandons a candidate(invalid solution.)
Medium
Coefficient of difficulty medium
#40
by zwfang
was merged Jan 4, 2019
Loading…
77. Combinations
Backtracking
incrementally builds candidates to the solutions, and abandons a candidate(invalid solution.)
Medium
Coefficient of difficulty medium
#39
by zwfang
was merged Jan 4, 2019
Loading…
58. Length of Last Word
Easy
Coefficient of difficulty easy
string
A string is used to represent text. It is comprised of a set of characters.
#37
by zwfang
was merged Jan 2, 2019
Loading…
53. Maximum Subarray
array
An array is stored such that the position of each element can be computed from its index
dynamic programming
optimal substructure and overlapping sub-problem are two key attributes for dynamic programming.
Easy
Coefficient of difficulty easy
#36
by zwfang
was merged Jan 2, 2019
Loading…
48. Rotate Image
array
An array is stored such that the position of each element can be computed from its index
Medium
Coefficient of difficulty medium
#35
by zwfang
was merged Jan 2, 2019
Loading…
35. Search Insert Position
array
An array is stored such that the position of each element can be computed from its index
binary search
a search algorithm that finds the position of target value within a sorted array.
Easy
Coefficient of difficulty easy
#34
by zwfang
was merged Jan 2, 2019
Loading…
28. Implement strStr()
double index(two pointers)
The Two Pointer Algorithm
Easy
Coefficient of difficulty easy
string
A string is used to represent text. It is comprised of a set of characters.
#33
by zwfang
was merged Jan 2, 2019
Loading…
24. Swap Nodes in Pairs
Linked List
A Linked list is a linear data structure where each element is a separate object.
Medium
Coefficient of difficulty medium
#32
by zwfang
was merged Jan 2, 2019
Loading…
23. Merge k Sorted Lists
array
An array is stored such that the position of each element can be computed from its index
Hard
Coefficient of difficulty is hard
heap(priority queue)
a heap is a specialized tree-based data structure which is essentially an almost complete tree
Linked List
A Linked list is a linear data structure where each element is a separate object.
#31
by zwfang
was merged Jan 2, 2019
Loading…
19. Remove Nth Node From End of List
double index(two pointers)
The Two Pointer Algorithm
Linked List
A Linked list is a linear data structure where each element is a separate object.
Medium
Coefficient of difficulty medium
#30
by zwfang
was merged Jan 1, 2019
Loading…
14. Longest Common Prefix
Easy
Coefficient of difficulty easy
string
A string is used to represent text. It is comprised of a set of characters.
#29
by zwfang
was merged Dec 31, 2018
Loading…
9. Palindrome Number
Easy
Coefficient of difficulty easy
math
math includes the study of such topics as quantity, structure, space, and change.
#27
by zwfang
was merged Dec 30, 2018
Loading…
7. Reverse Integer
Easy
Coefficient of difficulty easy
math
math includes the study of such topics as quantity, structure, space, and change.
#26
by zwfang
was merged Dec 30, 2018
Loading…
674. Longest Continuous Increasing Subsequence
array
An array is stored such that the position of each element can be computed from its index
Easy
Coefficient of difficulty easy
#25
by zwfang
was merged Dec 30, 2018
Loading…
4. Median of Two Sorted Arrays
array
An array is stored such that the position of each element can be computed from its index
binary search
a search algorithm that finds the position of target value within a sorted array.
Divide and Conquer
recursively breaking down a problem into two or more sub-problem of the same or related type.
Hard
Coefficient of difficulty is hard
Recursion
solution depends on solutions to smaller instances of the same problem.
#24
by zwfang
was merged Dec 30, 2018
Loading…
717. 1-bit and 2-bit Characters
array
An array is stored such that the position of each element can be computed from its index
Easy
Coefficient of difficulty easy
#23
by zwfang
was merged Dec 29, 2018
Loading…
122. Best Time to Buy and Sell Stock II
array
An array is stored such that the position of each element can be computed from its index
Easy
Coefficient of difficulty easy
Greedy algorithm
making the locally optimal choice at each stage with the intent of finding the global optimum.
#22
by zwfang
was merged Dec 29, 2018
Loading…
121. Best Time to Buy and Sell Stock
array
An array is stored such that the position of each element can be computed from its index
dynamic programming
optimal substructure and overlapping sub-problem are two key attributes for dynamic programming.
Easy
Coefficient of difficulty easy
#21
by zwfang
was merged Dec 28, 2018
Loading…
303. Range Sum Query - Immutable
array
An array is stored such that the position of each element can be computed from its index
Easy
Coefficient of difficulty easy
#20
by zwfang
was merged Dec 28, 2018
Loading…
713 subarray product less than k solved.
array
An array is stored such that the position of each element can be computed from its index
Medium
Coefficient of difficulty medium
sliding window
A sliding window is a sub-list that runs over an underlying collection.
#19
by zwfang
was merged Dec 28, 2018
Loading…
11 container with most water solved.
array
An array is stored such that the position of each element can be computed from its index
double index(two pointers)
The Two Pointer Algorithm
#18
by zwfang
was merged Dec 26, 2018
Loading…
345 reverse vowels resolved.
double index(two pointers)
The Two Pointer Algorithm
string
A string is used to represent text. It is comprised of a set of characters.
#17
by zwfang
was merged Dec 26, 2018
Loading…
344 reverse string resolved.
double index(two pointers)
The Two Pointer Algorithm
string
A string is used to represent text. It is comprised of a set of characters.
#16
by zwfang
was merged Dec 26, 2018
Loading…
ProTip!
Mix and match filters to narrow down what you’re looking for.