Skip to content

MNTuas/https-github.com-MNTuas-DSA

Repository files navigation

-DSA A collection of LeetCode questions to ace the coding interview!

Hướng dẫn tư duy theo dạng đề LeetCode

Nếu đề bài nói... Hướng suy nghĩ nên dùng
Kiểm tra dấu ngoặc, cặp mở – đóng Stack
Tìm 2 số cộng lại = target HashMap (Two Sum)
Tìm đoạn tăng, mua bán Two Pointers, biến tạm
Đếm tần suất, ký tự lặp Dictionary, HashMap
Tìm phần tử lớn nhất / nhỏ nhất Biến max, min
Sắp xếp hoặc tìm thứ tự Sort, Heap, Queue
Liên quan tới duyệt hết array for, foreach
So sánh cặp phần tử 2 vòng lặp (brute force) hoặc 2 pointers

LeetCode Topics

String

0020-valid-parentheses

Stack

0020-valid-parentheses

Linked List

0021-merge-two-sorted-lists
0206-reverse-linked-list

Recursion

0021-merge-two-sorted-lists
0206-reverse-linked-list

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array

Hash Table

0001-two-sum

Two Pointers

0026-remove-duplicates-from-sorted-array

About

A collection of LeetCode questions to ace the coding interview!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages