solutions.py
57 subscribers
206 photos
183 links
admin: @Xojarbu
Download Telegram
#heap
Title: 253. Meeting rooms 2
URL: leetcode.com
Level: Medium
#heap
Title: 1046. Last Stone Weight
URL: leetcode.com
Level: Easy
#heap
Title: 1167. Minimum Cost to Connect Sticks
URL: leetcode.com
Level: Medium
Forwarded from PyNotes
My latest accomplishment these days😎😎
🔥4
Another 50 days Badge for 2024.
To be honest I haven't been solving problems for the last 3 months, and today this image is appearing after long time break😊😊 It made my day.
🔥1
Title: 345. Reverse Vowels of a String
Level: Easy
🔥2
Title: 2390. Removing Stars From a String
Level: Medium
👍2
Title: 394. Decode String
Level: Medium
#stack
👍4
Title: 1456. Maximum Number of Vowels in a Substring of Given Length
Level: Medium
#sliding_window
👍3
Did you know that you can find and solve leetcode premium problems in lintcode.com with free access?
For example:
Premium: https://leetcode.com/problems/encode-and-decode-strings/description/
https://www.lintcode.com/problem/659/
One more small achievement
🔥5
Title: 853. Car Fleet
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
🔥2
👍1🤩1
Title: 572. Subtree of Another Tree
Level: Easy
https://leetcode.com/problems/subtree-of-another-tree/description/
Title: 102. Binary Tree Level Order Traversal
URL: leetcode
Level: Medium
#DFS
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
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).