Count Servers that CommunicateYou are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0…Jan 23Jan 23
Grid GameYou are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represents the number of points at position (r, c) on the matrix…Jan 21Jan 21
Check if a Parentheses String Can Be ValidA parentheses string is a non-empty string consisting only of '(' and ')'. It is valid if any of the following conditions is true:Jan 12Jan 12
Unique Length-3 Palindromic SubsequencesGiven a string s, return the number of unique palindromes of length three that are a subsequence of s.Jan 4Jan 4
Distribute Coins in Binary TreeYou are given the root of a binary tree with n nodes where each node in the tree has node.val coins. There are n coins in total throughout…May 18, 20241May 18, 20241
Maximum Length of Subarray With Positive ProductGiven an array of integers nums, find the maximum length of a subarray where the product of all its elements is positive.May 9, 2024May 9, 2024
Boats to Save PeopleYou are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a…May 4, 2024May 4, 2024
Find the Smallest Divisor Given a ThresholdGiven an array of integers nums and an integer threshold, we will choose a positive integer divisor, divide all the array by it, and sum…Feb 8, 2023Feb 8, 2023
Find All Anagrams in a StringGiven two strings s and p, return an array of all the start indices of p's anagrams in s. You may return the answer in any order.Feb 6, 2023Feb 6, 2023
Bus RoutesYou are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever.Jan 28, 2023Jan 28, 2023