Solved! Leetcode 1980. Find Unique Binary String

Table of ContentsFind Unique Binary StringSourceDescriptionExample 1Example 2Example 3ConstraintsSolution Find Unique Binary String Source https://leetcode.com/problems/find-unique-binary-string/ Description Given an array of strings nums containing n unique binary strings each of length n, return a binary string of length n that does not appear in nums. If there are multiple answers, you may return any of them. ...

Solved! Leetcode 2305. Fair Distribution of Cookies

Table of ContentsFair Distribution of CookiesSourceDescriptionExample 1Example 2ConstraintsSolution Fair Distribution of Cookies Source https://leetcode.com/problems/fair-distribution-of-cookies/description/ Description You are given an integer array cookies, where cookies[i] denotes the number of cookies in the ith bag. You are also given an integer k that denotes the number of children to distribute all the bags of cookies to. All ...

Rat in a Maze

Title: Rat in a Maze Source: www.geeksforgeeks.org Let us discuss Rat in a Maze as another example problem that can be solved using Backtracking. A Maze is given as N*N binary matrix of blocks where source block is the upper left most block i.e., maze[0][0] and destination block is lower rightmost block i.e., maze[N-1][N-1]. A ...