Skip to content

itszeeshan/LeetCode-Problems-In-Typescript

Repository files navigation

LeetCode Problems In Typescript

Goal is to find 100 LeetCode Problems in Typescript and also to find a way to solve them.

To run these files/scripts:

  • Install ts-node & typescript globally via npm: npm i -g typescript ts-node
  • Now just run ts-node <folder name>/<name one of the file>.ts on your terminal.
  • For example ts-node twoSumProblem.ts

Related Blog Posts:

All of the links related to blogs are below that will help you understand each of the problem better and how it was solved.

Linked List
Days Problems Links
17 Least Recently Used Cache https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-lru-cache-d27c7986cccc
Advanced Graphs
Days Problems Links
14 Min Cost to Connect Points https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-min-cost-to-connect-points-607b988c8c36
24 Alien Dictionary https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-alien-dictionary-30721be99a2d
Arrays & Hashing
Days Problems Links
1 Two Sum https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-two-sum-problem-edeef2063b9f
5 Group Anagrams https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-group-anagrams-problem-fb26d9cc9937
6 Encode And Decode Strings https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-encode-and-decode-strings-problem-1619a1216548
Backtracking
Days Problems Links
7 Combination Sum https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-combination-sum-problem-12c177d59e15
12 Word Search https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-word-search-problem-1ec2ea60babb
Bit Manipulation
Days Problems Links
2 Reverse Integer https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-reversing-an-integer-ef3c8dc4c84c
Graphs
Days Problems Links
19 Surrounded Regions https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-surrounded-regions-4a5328422781
26 Rotting Oranges https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-rotting-oranges-3994d69a79df
Greedy
Days Problems Links
8 Largest Number https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-finding-the-largest-number-from-array-elements-3bc7f2bde20f
9 Jump Game https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-jump-game-problem-dec80ce54b17
18 Hand of Straights https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-hand-of-straights-problem-0dc5e0a5edb0
Heap Queue
Days Problems Links
21 Design Twitter Feed https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-design-twitter-feed-f765eddf9351
Intervals
Days Problems Links
15 Meeting Scheduler II https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-meeting-scheduler-ii-d9a385a34ea3
Math
Days Problems Links
4 Fizz Buzz https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-fizzbuzz-problem-6a4ecbade935
20 Pow https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-pow-x-n-problem-706f3fc5646d
23 Spiral Matrix https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-spiral-matrix-d7d15f8357cd
25 Rotate Image https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-rotate-image-e093d5183f63
Stack
Days Problems Links
22 Car Fleet https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-car-fleet-b5c7b3e68236
trees
Days Problems Links
10 Maximum Depth of Binary Tree https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-solving-the-maximum-depth-of-binary-tree-problem-8ddcec5880f3
Two Pointers
Days Problems Links
3 Valid Palindrome https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-palindrome-number-problem-7838d4dc8db1
11 Three Sum https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-3sum-c22ea608f464
13 Container With Most Water https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-container-with-most-water-fab3de2e68d9
1-D Programming
Days Problems Links
16 Word break https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-word-break-78cb918ba17c