Skip to content

zachhalle/dailyprogrammer-loopy-robots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dailyprogrammer-loopy-robots

A solution to this challenge from r/dailyprogrammer in OCaml:

The program accepts a string containing 'L's, 'R's, and 'S's, which correspond to the instructions "turn left", "turn right", and "step" respectively. A robot initially standing at (0, 0) in the Cartesian plane facing North reads the string and executes the instructions in order, and then loops back to the beginning, for eternity. The task is to determine for the given string whether the robot will return to the starting point infinitely often.

The code can be built with the command

corebuild lr.native

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages