Title: 853. Car Fleet
Level: Medium
#stack
Very interesting problem. Try to solve it.
Watched beautiful solution from Neetcode
Level: Medium
#stack
Very interesting problem. Try to solve it.
Watched beautiful solution from Neetcode
🔥3
Title: 875. Koko Eating Bananas
Level: Medium
https://leetcode.com/problems/koko-eating-bananas/
#binary_search
Level: Medium
https://leetcode.com/problems/koko-eating-bananas/
#binary_search
🔥2
Title: 74. Search a 2D Matrix
Level: Medium
https://leetcode.com/problems/search-a-2d-matrix/denoscription/
#binary_search
Level: Medium
https://leetcode.com/problems/search-a-2d-matrix/denoscription/
#binary_search
🔥2
Title: 110. Balanced Binary Tree
Level: Easy
https://leetcode.com/problems/balanced-binary-tree/denoscription/
#tree
Level: Easy
https://leetcode.com/problems/balanced-binary-tree/denoscription/
#tree
👍1🤩1
Title: 572. Subtree of Another Tree
Level: Easy
https://leetcode.com/problems/subtree-of-another-tree/denoscription/
Level: Easy
https://leetcode.com/problems/subtree-of-another-tree/denoscription/
Title: 297. Serialize and Deserialize Binary Tree
URL: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
Level: Hard
Initially, it looked very difficult, as soon as I tried smth on my own and then watched solution from neetcode: https://neetcode.io/solutions/serialize-and-deserialize-binary-tree
Solution was very straightforward.
Ko'z qo'rqoq, qo'l botir.
#DFS #binary_tree
URL: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
Level: Hard
Initially, it looked very difficult, as soon as I tried smth on my own and then watched solution from neetcode: https://neetcode.io/solutions/serialize-and-deserialize-binary-tree
Solution was very straightforward.
Ko'z qo'rqoq, qo'l botir.
#DFS #binary_tree
Backtracking problems are almost always implemented using a depth-first search (DFS) strategy — but not all DFS is backtracking, and not all DFS problems require pruning or reversal (which backtracking does).
Forwarded from Vohid Karimov
Advent of Code 2025 yaqinlashmoqda 🎉🚀
1-dekabrdan 12-dekabrgacha har kuni 2ta programming puzzle yechamiz. O'tgan yilgi AoC ham juda qiziq bo'lgandi va top o'rin olganlar bilan maroqli suxbat qilgan edik.
Bu yilgi sovrinlar:
1-o'rin: Pixel Buds Pro 2 — Bobosher Musurmonov tomonidan.
2-o'rin: Logitech MX Master 3S — Farrukh Atabekov tomonidan.
3-o'rin: 3ta kitob (Code, Flow, va Deep Work) — Jakhongir Rakhmonov va men tomonidan.
Va musobaqadan so'ng top 10 kishi bilan har yilgidek meetup tashkil qilamiz.
Join link: https://adventofcode.com/2025/leaderboard/private/view/2432563 (birinchi login qiling)
Kirish kodi:2432563-8d25532c
Qoidalar: https://adventofcode.com/2025/about
Leaderboard'ga max 200 kishi qo‘shila oladi. Agar siz qo‘shilgani ulgurmagan bo‘lsangiz, xavotirlanmang. Masalalarni yechavering, men har 2-3 kunda nofaollarni leaderboard'dan olib tashlayman, qo‘shilgani yana imkoniyat bo‘ladi.
Cheating oldini olish uchun, musobaqa ohirida top 10talikdan proof of work so‘raladi. Ya’ni, puzzle'larni mustaqil ravishda ishlaganingizni isbotlab berishingiz kerak bo‘ladi.
Let's go 🚀🚀🚀
1-dekabrdan 12-dekabrgacha har kuni 2ta programming puzzle yechamiz. O'tgan yilgi AoC ham juda qiziq bo'lgandi va top o'rin olganlar bilan maroqli suxbat qilgan edik.
Bu yilgi sovrinlar:
1-o'rin: Pixel Buds Pro 2 — Bobosher Musurmonov tomonidan.
2-o'rin: Logitech MX Master 3S — Farrukh Atabekov tomonidan.
3-o'rin: 3ta kitob (Code, Flow, va Deep Work) — Jakhongir Rakhmonov va men tomonidan.
Va musobaqadan so'ng top 10 kishi bilan har yilgidek meetup tashkil qilamiz.
Join link: https://adventofcode.com/2025/leaderboard/private/view/2432563 (birinchi login qiling)
Kirish kodi:
Qoidalar: https://adventofcode.com/2025/about
Leaderboard'ga max 200 kishi qo‘shila oladi. Agar siz qo‘shilgani ulgurmagan bo‘lsangiz, xavotirlanmang. Masalalarni yechavering, men har 2-3 kunda nofaollarni leaderboard'dan olib tashlayman, qo‘shilgani yana imkoniyat bo‘ladi.
Cheating oldini olish uchun, musobaqa ohirida top 10talikdan proof of work so‘raladi. Ya’ni, puzzle'larni mustaqil ravishda ishlaganingizni isbotlab berishingiz kerak bo‘ladi.
Let's go 🚀🚀🚀
👍2
`def merge_sort(arr):
if len(arr) <= 1:
return arr
mid = len(arr) // 2
left = merge_sort(arr[:mid])
right = merge_sort(arr[mid:])
return merge(left, right)
def merge(left, right):
result = []
i = j = 0
while i < len(left) and j < len(right):
if left[i] <= right[j]:
result.append(left[i])
i += 1
else:
result.append(right[j])
j += 1
result.extend(left[i:])
result.extend(right[j:])
return result
`
Python sampe code for Merge Sort.
if len(arr) <= 1:
return arr
mid = len(arr) // 2
left = merge_sort(arr[:mid])
right = merge_sort(arr[mid:])
return merge(left, right)
def merge(left, right):
result = []
i = j = 0
while i < len(left) and j < len(right):
if left[i] <= right[j]:
result.append(left[i])
i += 1
else:
result.append(right[j])
j += 1
result.extend(left[i:])
result.extend(right[j:])
return result
`
Python sampe code for Merge Sort.