2661. First Completely Painted Row or Column
You are given a 0-indexed integer array arr, and an m x n integer matrix mat. arr and mat both contain all the integers in the range [1, m * n]. Go through each […]
You are given a 0-indexed integer array arr, and an m x n integer matrix mat. arr and mat both contain all the integers in the range [1, m * n]. Go through each […]
Given the head of a singly linked list, your task is to left rotate the linked list k times. Examples: Input: head = 10 -> 20
Given an m x n integer matrix heightMap representing the height of each unit cell in a 2D elevation map, return the volume of water
Given an m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit
Given the head of a linked list, the task is to reverse this list and return the reversed head. Examples: Input: head: 1 ->
A 0-indexed array derived with length n is derived by computing the bitwise XOR (⊕) of adjacent values in a binary array original of length n. Specifically, for each index i in the range [0,
Given an array, arr[] construct a product array, res[] where each element in res[i] is the product of all elements in arr[] except arr[i]. Return this resultant array, res[].Note: Each
You are given two 0-indexed arrays, nums1 and nums2, consisting of non-negative integers. There exists another array, nums3, which contains the bitwise XOR of all pairings of integers
Given an array arr of 0s and 1s. Find and return the length of the longest subarray with equal number of 0s and 1s. Examples: Input:
Given two positive integers num1 and num2, find the positive integer x such that: x has the same number of set bits as num2, and The value x
Given an array arr[] containing integers and an integer k, your task is to find the length of the longest subarray where the
You are given two 0-indexed integerpermutations A and B of length n. A prefix common array of A and B is an array C such that C[i] is equal to the count of numbers that are present