/leetCode

LeetCode Kotlin solutions

Primary LanguageKotlinApache License 2.0Apache-2.0

LeetCodeKT

LeetCode Kotlin solutions

Problems

Week 1:

  1. Two sum
  2. Contains duplicate
  3. Max profit
  4. Valid anagram
  5. Product of array except self
  6. Maximum subarray
  7. Three sum
  8. Merge intervals
  9. Group anagrams
  10. Maximum product subarray
  11. Search in Rotated Sorted Array

Week 2:

  1. Reverse LinkedList
  2. LinkedList cycle
  3. Container with most water
  4. Find minimum in rotated sorted array
  5. Longest repeating character replacement
  6. Longest Substring without repeating characters
  7. Minimum Window Substring
  8. Number of islands
  9. Remove Nth Node From End of List
  10. Palindromic substrings
  11. Pacific Atlantic water flow

Week 3:

  1. Validate BST
  2. Invert Binary Tree
  3. Non overlapping intervals
  4. Serialize and deserialize Binary Tree
  5. Construct Binary Tree from preorder and inorder traversal
  6. Top k frequent elements
  7. Clone graph
  8. Course schedule
  9. Binary Tree maximum path sum
  10. Maximum depth of Binary Tree
  11. Same tree
  12. Binary Tree level order traversal
  13. Implement Trie (Prefix Tree)

Week 4:

  1. Add and search word - Data structure design
  2. Subtree of another Tree
  3. Kth smallest element in a BST
  4. Lowest common ancestor of a BST
  5. Merge k sorted lists
  6. Merge two sorted lists
  7. Find median from data stream
  8. Insert interval
  9. Longest consecutive sequence
  10. Word search II

Week 5:

  1. Next greater element