Skip to content

This repository contains the NeetCode 75 problem list. Each problem includes its corresponding LeetCode link.

Notifications You must be signed in to change notification settings

ch4r1ty/neetcode75-in-leetcode

Repository files navigation

neetcode75-in-leetcode

This repository contains the NeetCode 75 problem list. Each problem includes its corresponding LeetCode link.

TODO LIST

  • 構造二叉樹(從前序遍歷、後序遍歷數組,構造出中序遍歷的二叉樹)
  • KMP
  • bucket sort
    1. Construct Binary Tree from Preorder and Inorder Traversal

NeetCode 75 -> LeetCode

1. Array & Hashing

2. Two Pointers

3. Sliding Window

4. Stack

5. Binary Search

6. Linked List

7. Tree

8. Backtracking

9. Heap / Priority Queue

10. Greedy

11. Advanced Graphs

12. 1-D Dynamic Programming

13. 2-D Dynamic Programming

14. Bit Manipulation

15. Data Structure Operations Reference

Common Data Structure Operations

Operation Stack (LIFO) Queue (FIFO) Deque (Double-ended)
Insert push() enqueue() addFirst()/addLast()
Remove pop() dequeue() removeFirst()/removeLast()
Remove (No Exception) - poll() pollFirst()/pollLast()
Peek peek() peek() getFirst()/getLast()
Check Empty isEmpty() isEmpty() isEmpty()
Time Complexity O(1) O(1) O(1)
Space Complexity O(n) O(n) O(n)

Key Characteristics

Stack: Last In First Out (LIFO)

  • Like a stack of plates
  • Only access from one end
  • Common use: function call stack, undo operations

Queue: First In First Out (FIFO)

  • Like a line of people
  • Access from both ends but in specific order
  • Common use: task scheduling, breadth-first search

Deque: Double-ended Queue

  • Like a deck of cards
  • Access from both ends in any order
  • Common use: sliding window, palindrome checking

About

This repository contains the NeetCode 75 problem list. Each problem includes its corresponding LeetCode link.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •