(defstations[43234013])(defnriders[lst]"Calculate the number of riders it takes to go to each station"(loop[stationslstrider1traveled0](cond(empty?stations)rider(>(+traveled(firststations))100)(recur(cons(-(+traveled(firststations))100)(reststations))(incrider)0):else(recur(reststations)rider(+traveled(firststations))))))(ridersstations);; 2
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Clojure: