# Category Archives: Game Theory

In this article, will design a simple number memory game in the C programming language. It is a simple memory number game where a random… Read More
Given two integers X and Y representing the number of candies allocated to players A and B respectively, where both the players indulge in a… Read More
Given a matrix grid[][] of dimensions M * N, three integers X, Y, and K, the task is to check if there exists any path… Read More
Given a 2D array arr[][] of dimensions N*M, representing a minesweeper matrix, where each cell contains an integer from the range [0, 9], representing the… Read More
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
There are two players A and B and a pile of N cards stacked upon each other.  The task is to find the winner of… 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