Left Rotate Matrix K times

gfg-potd

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 […]

57. Insert Interval

leetcode-potd

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

49. Group Anagrams

leetcode-potd

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

41. First Missing Positive

leetcode-potd

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

Summed Matrix

gfg-potd

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)

Scroll to Top