Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. For each integer in the list:
  2. Iterate along the tape, and compare each cell with the current integer
  3. If it is the same, increment the relevant counter, otherwise move along the tape.
  4. Once you have completed this for all of the integers, iterate along the tape again, and look for the highest counter. Output the integer next to the highest counter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement