Khan.randRange(7, 9) nnodes+Khan.randRange(5,nnodes) hamiltonianCycle_KA.initJSAV(nnodes,nedges)

Your task in this exercise is to find a Hamiltonian Cycle.

Select the edges that can be a part of a Hamiltonian Cycle.

No Cycle
[hamiltonianCycle_KA.userInput]
if (!hamiltonianCycle_KA.checkAnswer() && !guess[0]){ return ""; // User did not click, and correct answer is not // initial array state }else{ return hamiltonianCycle_KA.checkAnswer(); }

[hamiltonianCycle_KA.getSolution()]