Algorithms

### [LeetCode 1648] Sell Diminishing-Valued Colored Balls

References: https://leetcode.com/problems/sell-diminishing-valued-colored-balls/ https://www.youtube.com/watch?v=7_QGT_LcbIQ https://stackoverflow.com/questions/10882645/is-there-a-faster-way-to-sum-up-an-arithmetic-sequence-of-numbers-in-python
Algorithms

### [LeetCode 472] Concatenated Words

References: https://leetcode.com/problems/concatenated-words/ Time complexity: , where is the length of the input word ...
Algorithms

### [LeetCode 1091] Shortest Path in Binary Matrix

References: https://leetcode.com/problems/shortest-path-in-binary-matrix/ Solution
Algorithms

### [LeetCode 957] Prison Cells After N Days

Solution Overview First of all, one can consider this problem as a simplified ...
Algorithms

### [LeetCode 1135] Connecting Cities With Minimum Cost

References https://leetcode.com/problems/connecting-cities-with-minimum-cost/ https://www.youtube.com/watch?v=GFsPyTdCS1I Solution Approach 1: Minimum Spanning Tree (Using Kruskal’s algorithm) Intuition ...