Left Rotate Matrix K times
You are given an integer k andmatrix mat. Return a matrix where it is rotated Left k times. Examples: Input: k=1, mat=[[1,2,3],[4,5,6],[7,8,9]] Output:1 2 3 4 […]
You are given an integer k andmatrix mat. Return a matrix where it is rotated Left k times. Examples: Input: k=1, mat=[[1,2,3],[4,5,6],[7,8,9]] Output:1 2 3 4 […]
Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original
You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end of the ith interval and intervals is sorted
You are given a binary array nums and an integer k. A k-bit flip is choosing a subarray of length k from nums and simultaneously changing every 0 in the subarray to 1, and
Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap
Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums. You must implement an algorithm that runs in O(n) time and
A matrix is constructed of size n*n and given an integer ‘q’. The value at every cell of the matrix is given as, M(i,j)
Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input:
Given a string str, the task is to find the bracket numbers, i.e., for each bracket in str, return i if the bracket
Given an array of integers nums and an integer limit, return the size of the longest non-empty subarray such that the absolute difference between any
Given a sentence containing several words and numbers. Find the largest number among them which does not contain 9. If no