Media Summary: The code: def dirReduc(arr) str = arr.join ' ' while str.gsub! /NORTH\s+SOUTH SOUTH\s+NORTH/, "" or str.gsub! Solving the 'Do you speak retsec?' exercise from
Find The Divisors Codewars Kata Ruby - Detailed Analysis & Overview
The code: def dirReduc(arr) str = arr.join ' ' while str.gsub! /NORTH\s+SOUTH SOUTH\s+NORTH/, "" or str.gsub! Solving the 'Do you speak retsec?' exercise from