Code Wars C# 5 kyu: Directions Reduction

preview_player
Показать описание
Beginner level C# object oriented programming series. Viewers are provided an array of strings as input. This array is filled with strings representing the 4 cardinal directions of NORTH, SOUTH, EAST, and WEST. You are tasked with removing redundant direction pairs, for example going north and then south. Since that goes back to where it started, that pair should be removed. Note that only consecutive redundant directional pairs should be removed, and that these pairs can happen as a result of removing a pair.

Рекомендации по теме
Комментарии
Автор

Thanks, I did 50% same way, but stuck..

MrDnbass
join shbcf.ru