Given a binary matrix of R rows and C columns. We are allowed flip to any size of sub matrix. Flipping means changing 1 to… Read More

# Tag Archives: featured

Print the elements of an array in the decreasing frequency if 2 numbers have the same frequency then print the one which came first.Examples: Input… Read More

We are given n blocks of size 1 x 1, we need to find the minimum perimeter of the grid made by these blocks. Examples… Read More

As we know, Mergesort is a divide and conquer algorithm that splits the array to halves recursively until it reaches an array of the size… Read More

Given a weighted and undirected graph, we need to find if a cycle exist in this graph such that the sum of weights of all… Read More

Given n tasks with arrival time, priority and number of time units they need. We need to schedule these tasks on a single resource. The… Read More

Given a number check whether it is power of 8 or not. Examples : Input : n = 64 Output : Yes Input : 75… Read More