Skip to content

Category Archives: Game Theory

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
Given a string  S of size N consisting of ‘0’, ‘1’ and ‘?’, where N is always even. Divide the string into two different strings… Read More
Given a binary string S of length N and an integer K, the task is to calculate the farthest position that can be reached starting… Read More
Given three integers a, b, and N. The task is to find minimum addition operations between a and b, such that after applying the operations,… Read More

Start Your Coding Journey Now!