Skip to content

Category Archives: Game Theory

Given a binary string S of length N, the task is to find the winner of the game if two players A and B plays… Read More
Given an array arr[] consisting of N integers and two players A and B playing a game together by performing the following operations: Choose an… Read More
Zero-Sum Game:A zero-sum game is one in which no wealth is created or destroyed. So, in a two-player zero-sum game, whatever one player wins, the… Read More
Given an integer N denoting the number of boxes in a pen, and two players P1 and P2 playing a game of distributing N pens… Read More
Given a binary string S, the task is to determine the winner of the game when two players play a game optimally in alternate turns… Read More
Given an integer N, the task for two players A and B is to make the value of X ( initialized with 1) at least… Read More
Given a positive integer N, representing the count of players playing the game and an array of strings arr[], consisting of the numeric strings made… Read More
Given an array arr[] of size N, the task is to find the winner of the game when two players play the game optimally as… Read More
Given two arrays of H[] and B[] consisting of N and M integers respectively, denoting the diameter of holes and balls respectively. M number of… Read More
Given a binary array arr[] of size N and two players, A and B. The task is to minimize the score for player A by… Read More
Given an array arr[] consisting of binary strings, the task is to find the winner of the game when two players play the game optimally… Read More
Given two numbers N and M which denotes the count of ones and zeros respectively, the task is to maximize the count of binary strings… Read More
Given an array arr[] consisting of N integers, each representing size of a pile of stones. The task is to determine the winner of the… Read More
Given two integers N and K, where N represents the total number of cards present when game begins and K denotes the maximum number of… Read More