Problem statement Given the root of a binary tree, determine whether it is height-balanced. A binary tree is balanced if for every node: Formally, for…
If you’re doing your LeetCode daily streak and today you hit Question 1653 — “Minimum Deletions to Make String Balanced”, this one is all about…
Problem recap You’re given an integer array nums and an integer k. A (non-empty) array is balanced if:max(array)≤k⋅min(array)max(text{array}) le…
Some LeetCode problems feel like math. 3379. Transformed Array feels more like a board game. Every position in the array gives you an instruction:…
Share this:
- Share on Facebook (Opens in new window) Facebook
- Share on Bluesky (Opens in new window) Bluesky
- Share on X (Opens in new window) X
- Share on LinkedIn (Opens in new window) LinkedIn
- Email a link to a friend (Opens in new window) Email
- Share on Reddit (Opens in new window) Reddit
- Share on WhatsApp (Opens in new window) WhatsApp