Skip to content
leetcode Solutions.java 250 / 269 (Algorithms)
Branch: gh-pages
Clone or download
Pull request Compare This branch is even with tg123:gh-pages.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
3sum-closest
3sum
4sum
_includes
_layouts
add-and-search-word-data-structure-design
add-binary
add-digits
add-two-numbers
anagrams
balanced-binary-tree
basic-calculator-ii
basic-calculator
best-time-to-buy-and-sell-stock-ii
best-time-to-buy-and-sell-stock-iii
best-time-to-buy-and-sell-stock-iv
best-time-to-buy-and-sell-stock
binary-search-tree-iterator
binary-tree-inorder-traversal
binary-tree-level-order-traversal-ii
binary-tree-level-order-traversal
binary-tree-maximum-path-sum
binary-tree-paths
binary-tree-postorder-traversal
binary-tree-preorder-traversal
binary-tree-right-side-view
binary-tree-upside-down
binary-tree-zigzag-level-order-traversal
bitwise-and-of-numbers-range
candy
climbing-stairs
clone-graph
closest-binary-search-tree-value
combination-sum-ii
combination-sum-iii
combination-sum
combinations
compare-version-numbers
construct-binary-tree-from-inorder-and-postorder-traversal
construct-binary-tree-from-preorder-and-inorder-traversal
container-with-most-water
contains-duplicate-ii
contains-duplicate-iii
contains-duplicate
convert-sorted-array-to-binary-search-tree
convert-sorted-list-to-binary-search-tree
copy-list-with-random-pointer
count-and-say
count-complete-tree-nodes
count-primes
count-univalue-subtrees
course-schedule-ii
course-schedule
css
decode-ways
delete-node-in-a-linked-list
different-ways-to-add-parentheses
distinct-subsequences
divide-two-integers
dungeon-game
edit-distance
encode-and-decode-strings
evaluate-reverse-polish-notation
excel-sheet-column-number
excel-sheet-column-title
factor-combinations
factorial-trailing-zeroes
find-minimum-in-rotated-sorted-array-ii
find-minimum-in-rotated-sorted-array
find-peak-element
first-bad-version
first-missing-positive
flatten-2d-vector
flatten-binary-tree-to-linked-list
fraction-to-recurring-decimal
gas-station
generate-parentheses
gray-code
happy-number
house-robber-ii
house-robber
implement-queue-using-stacks
implement-stack-using-queues
implement-strstr
implement-trie-prefix-tree
inorder-successor-in-bst
insert-interval
insertion-sort-list
integer-to-roman
interleaving-string
intersection-of-two-linked-lists
invert-binary-tree
isomorphic-strings
jump-game-ii
jump-game
kth-largest-element-in-an-array
kth-smallest-element-in-a-bst
largest-number
largest-rectangle-in-histogram
length-of-last-word
letter-combinations-of-a-phone-number
linked-list-cycle-ii
linked-list-cycle
longest-common-prefix
longest-consecutive-sequence
longest-palindromic-substring
longest-substring-with-at-most-two-distinct-characters
longest-substring-without-repeating-characters
longest-valid-parentheses
lowest-common-ancestor-of-a-binary-search-tree
lowest-common-ancestor-of-a-binary-tree
lru-cache
majority-element-ii
majority-element
max-points-on-a-line
maximal-rectangle
maximal-square
maximum-depth-of-binary-tree
maximum-gap
maximum-product-subarray
maximum-subarray
median-of-two-sorted-arrays
meeting-rooms-ii
meeting-rooms
merge-intervals
merge-k-sorted-lists
merge-sorted-array
merge-two-sorted-lists
min-stack
minimum-depth-of-binary-tree
minimum-path-sum
minimum-size-subarray-sum
minimum-window-substring
missing-number
missing-ranges
move-zeroes
multiply-strings
n-queens-ii
n-queens
next-permutation
number-of-1-bits
number-of-digit-one
number-of-islands
one-edit-distance
paint-house
palindrome-linked-list
palindrome-number
palindrome-partitioning-ii
palindrome-partitioning
palindrome-permutation-ii
palindrome-permutation
partition-list
pascals-triangle-ii
pascals-triangle
path-sum-ii
path-sum
peeking-iterator
permutation-sequence
permutations-ii
permutations
plus-one
populating-next-right-pointers-in-each-node-ii
populating-next-right-pointers-in-each-node
power-of-two
powx-n
product-of-array-except-self
read-n-characters-given-read4-ii-call-multiple-times
read-n-characters-given-read4
recover-binary-search-tree
rectangle-area
regular-expression-matching
remove-duplicates-from-sorted-array-ii
remove-duplicates-from-sorted-array
remove-duplicates-from-sorted-list-ii
remove-duplicates-from-sorted-list
remove-element
remove-linked-list-elements
remove-nth-node-from-end-of-list
reorder-list
repeated-dna-sequences
restore-ip-addresses
reverse-bits
reverse-integer
reverse-linked-list-ii
reverse-linked-list
reverse-nodes-in-k-group
reverse-words-in-a-string-ii
reverse-words-in-a-string
roman-to-integer
rotate-array
rotate-image
rotate-list
same-tree
scramble-string
search-a-2d-matrix-ii
search-a-2d-matrix
search-for-a-range
search-in-rotated-sorted-array-ii
search-in-rotated-sorted-array
search-insert-position
set-matrix-zeroes
shortest-palindrome
shortest-word-distance
simplify-path
single-number-ii
single-number-iii
single-number
sliding-window-maximum
sort-colors
sort-list
spiral-matrix-ii
spiral-matrix
sqrtx
string-to-integer-atoi
strobogrammatic-number
subsets-ii
subsets
substring-with-concatenation-of-all-words
sudoku-solver
sum-root-to-leaf-numbers
summary-ranges
surrounded-regions
swap-nodes-in-pairs
symmetric-tree
text-justification
the-skyline-problem
trapping-rain-water
triangle
two-sum-ii-input-array-is-sorted
two-sum-iii-data-structure-design
two-sum
unique-binary-search-trees-ii
unique-binary-search-trees
unique-paths-ii
unique-paths
valid-anagram
valid-number
valid-palindrome
valid-parentheses
valid-sudoku
validate-binary-search-tree
verify-preorder-sequence-in-binary-search-tree
wildcard-matching
word-break-ii
word-break
word-ladder-ii
word-ladder
word-search-ii
word-search
zigzag-conversion
zigzag-iterator
.gitignore
CNAME
Gemfile
README.md
_config.yml
auto_time.sh
index.html
skeleton.sh

README.md

#Leetcode solutions

Github Page

Please Donate leetcode

TODO

  • Evaluate the Time and Space complexity of each solution
  • Proof the code's correctness if needed
  • Find better solutions
  • Rewrite code with Java8 lambda
You can’t perform that action at this time.