Tag: c++
You are given an array of strings words (0-indexed). In one operation, pick two distinct indices i and j, where words is a non-empty string, and move any character …
Given two n x n binary matrices mat and target, return true if it is possible to make mat equal to target by rotating mat in 90-degree increments, or …
You are given a 2D integer array logs where each logs = indicates the birth and death years of the ith person. The population of some year x is …
Let’s design a data stream that takes a bit either 1 or 0, and then returns true/false to indicate that the integer (constructed by the bits so far) is …
Given an integer n (in base 10) and a base k, return the sum of the digits of n after converting n from base 10 to base k. After …