6 kyu

Airport Arrivals/Departures - #2

118 of 309dinglemouse

Description:

Well here you are again, still staring blankly at the same arrivals/departures flap display...

Kata Task

Part #1

In Part #1 of this series you already figured out how the flap display mechanism works.

You now know what the updated display will look like after applying a set of rotor moves.

If you haven't already completed Part 1, then now is a good time to do it!

Part #2

Now in this current Kata your task is the opposite.

It's the same board with the same rules...

But this time you are required to return the set of rotor moves needed to transform the display from the before to the after state.

Look at the example tests for guidance.

And good luck!

:-)

Notes

  • For Java, Python, and C#, a convenient String of the rotor characters is provided in Preloaded.ALPHABET.
  • For Haskell, the string alphabet containing the rotor characters is provided in Preloaded.
Algorithms

Stats:

CreatedDec 11, 2016
PublishedDec 11, 2016
Warriors Trained1061
Total Skips19
Total Code Submissions1716
Total Times Completed309
JavaScript Completions118
Java Completions90
C# Completions31
Python Completions87
Haskell Completions2
Total Stars33
% of votes with a positive feedback rating96% of 103
Total "Very Satisfied" Votes96
Total "Somewhat Satisfied" Votes6
Total "Not Satisfied" Votes1
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • dinglemouse Avatar
  • marko-bekhta Avatar
  • docgunthrop Avatar
  • KataSideKick Avatar
  • hobovsky Avatar
  • albertogcmr Avatar
  • tobeannouncd Avatar
Ad