Рет қаралды 161
Today I solve and explain very quickly a medium level difficulty leetcode algorithm using Python3 called "2038. Remove Colored Pieces if Both Neighbors are the Same Color". I go over how to solve this question in O(N) time & O(1) space by using a "Greedy" approach without having to actually play the entire game.
Question: leetcode.com/p...
If you found this helpful Like and Subscribe! I solve LeetCode Algorithms (Python/ Java) and SQL Problems daily!
#leetcode #python #python3 #tutorial #coding #programming #leetcodedailychallenge #dailychallenge