1975. Maximum Matrix Sum
You are given an n x n integer matrix. You can do the following operation any number of times: Choose any two adjacent elements of matrix and multiply each of them […]
You are given an n x n integer matrix. You can do the following operation any number of times: Choose any two adjacent elements of matrix and multiply each of them […]
You are given an m x n binary matrix matrix. You can choose any number of columns in the matrix and flip every
Given an array prices[] of length n, representing the prices of the stocks on different days. The task is to find the
You are given two integers m and n representing a 0-indexed m x n grid. You are also given two 2D integer arrays guards and walls where guards[i] = [rowi, coli] and walls[j] =
The cost of stock on each day is given in an array price[]. Each day you may decide to either buy
You are given a string s consisting of the characters ‘a’, ‘b’, and ‘c’ and a non-negative integer k. Each minute, you may take either the leftmost character of s,
You are given an array of integer arr[] where each number represents a vote to a candidate. Return the candidates that have
You are given an integer array nums and an integer k. Find the maximum subarray sum of all the subarrays of nums that meet the
Given an array of integers arr[] representing a permutation, implement the next permutation that rearranges the numbers into the lexicographically next greater permutation. If
You have a bomb to defuse, and your time is running out! Your informer will provide you with a circular array code of length
Given an unsorted array arr[]. Rotate the array to the left (counter-clockwise direction) byd steps, where d is a positive integer. Do the mentioned change in
You are given an array nums of non-negative integers and an integer k. An array is called special if the bitwise OR of all of its elements is at least k.