/leetcode-challenges

Solutions for leet-code challenges.

Primary LanguageJava

leetcode-challenges

Algorithm solutions for leet-code challenges.

Algorithms1:

Day1: binary-search:

35-search-insert-position: https://leetcode.com/problems/search-insert-position/

278-first-bad-position: https://leetcode.com/problems/first-bad-version/

704-binary-search: https://leetcode.com/problems/binary-search/

Day2: two-pointers:

189-rotate-array: https://leetcode.com/problems/rotate-array/

977-squares-of-a-sorted-array: https://leetcode.com/problems/squares-of-a-sorted-array/

Day3: two-pointers:

283-move-zeroes: https://leetcode.com/problems/move-zeroes/

167-two-sum-ii-input-array-is-sorted: https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/

Day4: two-pointers:

344-reverse-string: https://leetcode.com/problems/reverse-string/

557-reverse-words-in-a-string-iii - https://leetcode.com/problems/reverse-words-in-a-string-iii/

Day5: two-pointers:

876-middle-of-the-linked-list.java - https://leetcode.com/problems/middle-of-the-linked-list/

19-remove-nth-node-from-end-of-list.java: https://leetcode.com/problems/remove-nth-node-from-end-of-list/

Day6: sliding-window:

3-longest-substring-without-repeating-characters: https://leetcode.com/problems/longest-substring-without-repeating-characters/

567-permutation-in-string: https://leetcode.com/problems/permutation-in-string/

Day7: depth-first-search:

695-max-area-of-island: https://leetcode.com/problems/max-area-of-island/

733-flood-fill: https://leetcode.com/problems/flood-fill/

Day8: bread-first-search-depth-first-search:

617-merge-two-binary-trees: https://leetcode.com/problems/merge-two-binary-trees/

116-populating-next-right-pointers-in-each-node: https://leetcode.com/problems/populating-next-right-pointers-in-each-node/

Day9: bread-first-search-depth-first-search

542-01-matrix: https://leetcode.com/problems/01-matrix/

994-rotating-oranges: https://leetcode.com/problems/rotting-oranges/

Day10: recursion-backtracking

21-merge-two-sorted-lists: https://leetcode.com/problems/merge-two-sorted-lists/

206-reverse-linkedlist: https://leetcode.com/problems/reverse-linked-list/