Category: c / c++
You are given a binary tree root representing a game state of a two person game. Every internal node is filled with an empty value of 0 while the …
Sudoku is a puzzle where you’re given a partially-filled 9 by 9 grid with digits. The objective is to fill the grid with the constraint that every row, column, …
Given the root to a binary tree root, return a list of two numbers where the first number is the number of leaves in the tree and the second …
Given an integer n, find two or more integers such that their sum is equal to n, where the product of these integers is maximized, and return this product. …
You are given a list of integers nums. Consider an operation where we select some subset of integers in the list and increment all of them by one. Return …