Javascript

How would you go about programming the "Pick up stones" game in JavaScript, involving two players and a heap of stones?

Frontend Engineer

Dropbox

Netflix

Uber

IBM

Machine Zone

Broadcom

Did you come across this question in an interview?

Loading step...
Your answer

Try Free AI Interview

Google logo

Google

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Strategy
Meta logo

Meta

Product Manager

Prepare for success with realistic, role-specific interview simulations.

Product Sense
Meta logo

Meta

Engineering Manager

Prepare for success with realistic, role-specific interview simulations.

System Design
Amazon logo

Amazon

Data Scientist

Prepare for success with realistic, role-specific interview simulations.

Behavioral
  • How would you go about programming the "Pick up stones" game in JavaScript, involving two players and a heap of stones?
  • Can you demonstrate how to implement the "Pick up stones" problem in JavaScript, where players alternate in taking stones?
  • What's your approach to creating a JavaScript solution for the "Pick up stones" challenge, featuring two participants and a stone pile?
  • In JavaScript, how would you construct a game where two players take turns picking stones from a collection, as in the "Pick up stones" problem?
  • Could you show me how to develop a JavaScript version of the "Pick up stones" game, involving turn-based stone picking by two players?
  • How do you envision coding the "Pick up stones" scenario in JavaScript
  • Solve the "Pick up stones" problem in JavaScript, where two players take turns picking stones from a heap.

Interview question asked to Frontend Engineers interviewing at Gameloft, Plarium, Atlassian and others: How would you go about programming the "Pick up stones" game in JavaScript, involving two players and a heap of stones?.