Puzzle 71 | Correct Number to save life

3.4

Gabbar and his Sambha are fond of playing number games. But as usual, if Sambha loses the game, he dies. Gabbar and Sambha take their turn to call out a number between 1 to n. They follow the following rules while playing the game: Anyone of them can start the game by calling a number between 1 to 10. The person who’s chance in next, should must call a number by increasing the last number by 1 to 10,  both inclusive. Whosoever, from Gabbar and Sambha calls out “101” first wins. Sambha tries to win this game, as it’s the run… Read More »

A* Search Algorithm

4.3

Motivation To approximate the shortest path in real-life situations, like- in maps, games where there can be many hindrances. We can consider a 2D Grid… Read More »

Clone() method in Java

3

Object cloning refers to creation of exact copy of an object. It creates a new instance of the class of current object and initializes all… Read More »