Skip to content

My leetcode solutions and resources for the Grind 75 list in JavaScript

Notifications You must be signed in to change notification settings

curtisbarnard/leetcode-grind75-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grind75 Solutions & Resources: JavaScript

As I work through this list I figure I would make a GitHub repo with my solutions along with articles and videos that relate to the problems that I've found helpful.

The problems

Easy

  1. Two Sum #1
  2. Valid Parentheses #20
  3. Merge Two Sorted Lists #21
  4. Best Time to Buy and Sell Stock #121
  5. Valid Palindrome #125
  6. Invert Binary Tree #226
  7. Valid Anagram #242
  8. Binary Search #704
  9. Flood Fill #733
  10. Lowest Common Ancestor of a Binary Search Tree #235
  11. Balanced Binary Tree #110
  12. Linked List Cycle #141
  13. Implement Queue using Stacks #232
  14. First Bad Version #278
  15. Ransom Note #383
  16. Climbing Stairs #70
  17. Longest Palindrome #409
  18. Reverse Linked List #206
  19. Majority Element #169
  20. Add Binary #67
  21. Diameter of Binary Tree #543
  22. Middle of the Linked List #876
  23. Maximum Depth of Binary Tree #104
  24. Contains Duplicate #217

Medium

  1. Maximum Subarray #53
  2. Insert Interval #57
  3. 01 Matrix #542
  4. K Closest Points to Origin #973
  5. Longest Substring Without Repeating Characters #3
  6. 3Sum #15
  7. Binary Tree Level Order Traversal #102
  8. Clone Graph #133
  9. Evaluate Reverse Polish Notation #150
  10. Course Schedule #207
  11. Implement Trie (Prefix Tree) #208
  12. Coin Change #322
  13. Product of Array Except Self #238
  14. Min Stack #155
  15. Validate Binary Search Tree #98
  16. Number of Islands #200
  17. Rotting Oranges #994
  18. Search in Rotated Sorted Array #33
  19. Combination Sum #39
  20. Permutations #46
  21. Merge Intervals #56
  22. Lowest Common Ancestor of a Binary Tree #236
  23. Time Based Key-Value Store #981
  24. Accounts Merge #721
  25. Sort Colors #75
  26. Word Break #139
  27. Partition Equal Subset Sum #416
  28. String to Integer (atoi) #8
  29. Spiral Matrix #54
  30. Subsets #78
  31. Binary Tree Right Side View #199
  32. Longest Palindromic Substring #5
  33. Unique Paths #62
  34. Construct Binary Tree from Preorder and Inorder Traversal #105
  35. Container With Most Water #11
  36. Letter Combinations of a Phone Number #17
  37. Word Search #79
  38. Find All Anagrams in a String #438
  39. Minimum Height Trees #310
  40. Task Scheduler #621
  41. LRU Cache #146
  42. Kth Smallest Element in a BST #230

Hard

  1. Minimum Window Substring #76
  2. Serialize and Deserialize Binary Tree #297
  3. Trapping Rain Water #42
  4. Find Median from Data Stream #295
  5. Word Ladder #127
  6. Basic Calculator #224
  7. Maximum Profit in Job Scheduling #1235
  8. Merge k Sorted Lists #23
  9. Largest Rectangle in Histogram #84

Data Structures

In order to practice with similar data structures I'll be placing each problem in the categories below, along with some similar problems nested below to help practice with those data structures.

Array

Queue

Stack

Linked Lists

Hash Table

Binary Tree

Graph

Heap

Trie

Algorithm Patterns

Within the problems above there are several patterns that often occur. I plan to categorize each problem such that if you are having problem with a particular pattern you can look for other similar problems that use the same pattern.

Two Pointers

Sliding Window

Binary Search

Breadth First Search

Depth First Search

Divide & Conquer

Dynamic Programming

Attribution

  • The original Grind 75 list can be found here

About

My leetcode solutions and resources for the Grind 75 list in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published