# Category Archives: Game Theory

Given an arr[] of positive integers of length N. Player X and Y plays a game where in each move one person chooses two elements… Read More
Given two even numbers A, and B, the task is to find the minimum number of operations required to make both numbers equal if it… Read More
Given a circular array arr[] of size N containing positive integers only, Player A and B are playing a game, turn by turn, the game… Read More
Given three integers N, R, and C representing an N*N chessboard and the position (R, C) where the rook and the bishop is placed. The… Read More
Given a grid on the XY plane with dimensions r x c (where r denotes maximum cells along the X axis and c denotes maximum… Read More
Given an array arr of size N, and also given that Alice and Bob are playing a game and Alice has a number A and… Read More
Given a car race track of length N units. where each car moves with a speed of 1 unit per second. Given two arrays left[]… Read More
Given two arrays a[] and b[] of size N and an integer K. The task is to find the maximum power that can be achieved… Read More
Given two strings A and B each of length N and an integer K, the task is to find if string A can be converted… Read More
Two players X and Y are picking up numbers alternatively with X picking first. In the first turn X picks 1, then Y picks 2,… Read More
Given an integer N, find the minimum number of operations to reduce N to 1 by using the following two operations: Multiply N by 2… Read More
Given two numbers A and B, the task is to find the minimum number of the following operations to transform A to B: Multiply the… Read More
Given a number N, and some operations that can be performed, the task is to find the minimum number of moves to convert N to… Read More
Given a binary string str consisting of only 0 and 1, where 0 represent an unoccupied position and 1 represent an occupied position. Two players… Read More
Given two integers N and M representing a N x M chessboard, the task is to find the maximum number of squares that the bishop… Read More