Skip to content

there is an array of frogs in a line, with a gap position on the center which they can leap to. frogs on the left side leaps to right, and right side frogs jumps to left. Find all the solutions to the problem.

Notifications You must be signed in to change notification settings

elitelau/frog_leap_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frog_leap_problem

There is an array of frogs in a line, with a gap position on the center which they can leap to. Frogs on the left side leaps to right, and right side frogs jumps to left. Find all the solutions to the problem.

frogs.cpp // c++ implementation that find the solution. frogs.js // javascript implementation that find the solution.

Environment: gcc 4.7.2, node.js 4.1.2

About

there is an array of frogs in a line, with a gap position on the center which they can leap to. frogs on the left side leaps to right, and right side frogs jumps to left. Find all the solutions to the problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published