Media Summary: Utilizing a stack, I show you how to solve this 5KYU problem on The code: def dirReduc(arr) str = arr.join ' ' while str.gsub! /NORTH\s+SOUTH SOUTH\s+NORTH/, "" or str.gsub! In this video I will show you my solution to one of the problems from the web page
Codewars Directions Reduction Python 5 - Detailed Analysis & Overview
Utilizing a stack, I show you how to solve this 5KYU problem on The code: def dirReduc(arr) str = arr.join ' ' while str.gsub! /NORTH\s+SOUTH SOUTH\s+NORTH/, "" or str.gsub! In this video I will show you my solution to one of the problems from the web page Hey Everyone! Welcome to my new video I'm practicing on