Skip to content

ami619847/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

This repository contains my solutions to LeetCode problems, solved in JavaScript/TypeScript.
The goal is to practice problem-solving, algorithms, and data structures in preparation for technical interviews.


📂 Repository Structure

Each solution is stored in a separate file, named by problem title.

/easy two-sums.ts contains-duplicate.ts best-time-to-buy-and-sell-stock.ts valid-parentheses.ts move-zeroes.ts valid-palindrome.ts valid-anagram.ts climbing-stairs.ts fibonacci-number.ts binary-search.ts search-insert-position.ts implement-queue-using-stacks.ts middle-of-the-linked-list.ts linked-list-cycle.ts reverse-linked-list.ts merge-two-sorted-lists.ts maximum-depth-of-binary-tree.ts same-tree.ts invert-binary-tree.ts symmetric-tree.ts average-of-levels-in-binary-tree.ts search-in-a-binary-search-tree.ts minimum-absolute-difference-in-bst.ts count-complete-tree-nodes.ts sum-of-all-subset-xor-totals.js min-cost-climbing-stairs.ts assign-cookies.ts lemonade-change.ts maximum-product-of-two-elements-in-an-array.ts kth-largest-element-in-a-stream.ts is-subsequence.ts pascals-triangle.ts n-th-tribonacci-number.ts design-parking-system.ts design-hashset.ts design-hashmap.ts design-an-ordered-stream.ts first-unique-character-in-a-string.ts intersection-of-two-arrays-ii.ts excel-sheet-column-title.ts excel-sheet-column-number.ts isomorphic-strings.ts

/medium maximum-subarray.ts two-sums-ii.ts group-anagrams.ts find-first-and-last-position-of-element-in-sorted-array.ts search-in-rotated-sorted-array.ts min-stack.ts daily-temperatures.ts rotting-oranges.ts binary-tree-level-order-traversal.ts binary-tree-right-side-view.ts validate-binary-search-tree.ts lowest-common-ancestor-of-a-binary-search-tree.ts number-of-islands.ts clone-graph.ts graph-valid-tree.js course-schedule.ts minimum-knight-moves.ts subsets.ts permutations.js combination-sum.js combinations.ts combination-sum.ts best-time-to-buy-and-sell-stock-with-cooldown.ts decode-ways.ts climbing-stairs-ii.ts house-robber.ts coin-change.ts word-break.ts longest-common-subsequence.ts maximum-length-of-repeated-subarray.ts unique-paths.ts unique-paths-ii.ts minimum-path-sum.ts longest-palindromic-substring.ts non-overlapping-intervals.ts best-time-to-buy-and-sell-stock-ii.ts task-scheduler.ts meeting-rooms-ii.js maximum-number-of-eaten-apples.ts wiggle-subsequence.ts jump-game.ts jump-game-ii.ts two-city-scheduling.ts longest-increasing-subsequence.ts maximum-product-subarray.ts lru-cache.ts memoize.ts number-of-dice-rolls-with-target-sum.ts time-based-key-value-store.ts design-twitter.ts kth-largest-element-in-an-array.ts insert-delete-getrandom-o1.ts top-k-frequent-elements.ts encode-and-decode-tinyurl.ts

/hard word-ladder.js sudoku-solver.ts

🛠️ How to Run

  1. Clone the repository
    git clone https://github.com/ami619847/leetcode.git
    
  2. Install dependencies
    npm install
    

🚀 Progress Tracker

Week 1 - Core CS & Complexity

Big O basics (O(1), O(n), O(n²), O(log n))

Time vs Space complexity trade-offs

Arrays (sliding window, two pointers)

Strings (reversals, palindromes)

Week 2 - Core CS & Complexity

HashMaps/Sets (lookup, frequency)

Recursion basics

Binary Search (basics)

Binary Search (boundary problems)

Week 3 - Data Structures Deep Dive

Stacks (monotonic stack)

Queues (FIFO, BFS basics)

Linked Lists (fast/slow pointers)

Linked List operations

Week 4 - Data Structures Deep Dive

Trees (DFS recursion)

Trees (BFS level order)

BSTs (search & insert)

BSTs (lowest common ancestor)

Week 5 - Graphs & Recursion

Graphs intro (adjacency list, DFS)

Graph BFS

Graph cycle detection

Graph shortest path (BFS)

Week 6

Recursion + Backtracking basics

Backtracking harder

Sudoku / N-Queens

Recursion/backtracking review

Week 7

DP intro (memoization vs tabulation)

DP arrays

DP on strings

DP on grids

Week 8

Greedy basics

Greedy + Priority Queue

DP + Greedy review

Week 9

Problem-solving patterns

Caching (LRU, memoization)

REST vs GraphQL, API design

Pagination, infinite scroll

CDN & image optimization

Week 10

System Design – URL Shortener

About

Leetcode solution by me in JS/TS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published