ZoranPandovski / al-go-rithms

:musical_note: Algorithms written in different programming languages - https://zoranpandovski.github.io/al-go-rithms/
Creative Commons Zero v1.0 Universal
1.34k stars 1.94k forks source link

The Bit Game (Bit Manipulation Problem) #3322

Open kanikarajpal opened 2 years ago

kanikarajpal commented 2 years ago

This is a(n):

Details: I would like to add an Algorithm- The Bit Game (Geeks for Geeks Problem).

Description - Two players, Player 1 and Player 2, are given an integer N to play a game. The rules of the game are as follows :

  1. In one turn, a player can remove any set bit of N in its binary representation to make a new N.
  2. Player 1 always takes first turn.
  3. If a player cannot make a move, he loses.

Link - https://practice.geeksforgeeks.org/problems/the-bit-game2313/0

ahmd-nish commented 2 years ago

@ZoranPandovski can you assign this task to me ?

animagus12 commented 2 years ago

Hey, can you assign this to me?

siyaa12 commented 2 years ago

Hey ! can you assign this issue to me ?!