Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Misc
7.7K+ articles
Dynamic Programming
1.1K+ articles
Bit Magic
821+ articles
Matrix
743+ articles
Oracle
354+ articles
Merge Sort
109+ articles
graph-connectivity
64+ articles
graph-cycle
58+ articles
featured
8 posts
Recent Articles
Popular Articles
Maximize the binary matrix by flipping submatrix once
Last Updated: 16 December 2022
Given a binary matrix of R rows and C columns. We are allowed to flip to any size of sub matrix. Flipping means changing 1 to 0 and 0 to 1. The task is to maximize the num...
read more
Dynamic Programming
Matrix
DSA
featured
Sort elements by frequency | Set 4 (Efficient approach using hash)
Last Updated: 02 June 2023
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 : arr[] = {2, 5, 2, 8, 5...
read more
Sorting
Hash
DSA
Arrays
Oracle
Zycus
featured
cpp-unordered_map
Minimum Perimeter of n blocks
Last Updated: 12 April 2025
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 :Input : n = 4Output : 8Minimum possible perimeter wit...
read more
Misc
Geometric
DSA
Basic Coding Problems
featured
How to make Mergesort to perform O(n) comparisons in best case?
Last Updated: 18 September 2023
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 of 1, and after that it merges so...
read more
DSA
Merge Sort
featured
Check if there is a cycle with odd weight sum in an undirected graph
Last Updated: 19 July 2022
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 the edges in that cycle comes out to be odd.Examp...
read more
DSA
graph-connectivity
featured
graph-cycle
Check if a number is power of 8 or not
Last Updated: 21 June 2022
Given a number check whether it is a power of 8 or not.Examples :Input : n = 64Output : YesInput : 75Output : NoRecommended PracticeCheck if a Integer is power of 8 or not...
read more
Misc
Bit Magic
DSA
featured
Scheduling priority tasks in limited time and minimizing loss
Last Updated: 14 March 2023
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 objective is to arrange tasks such ...
read more
DSA
featured
Median of Stream of Running Integers using STL
Last Updated: 23 July 2025
Given that integers are being read from a data stream. Find the median of all the elements read so far starting from the first integer till the last integer. This is also ...
read more
Heap
DSA
Order-Statistics
Microsoft
Amazon
Adobe
Yahoo
Google
Morgan Stanley
Oracle
Facebook
Belzabar
SAP Labs
Ola Cabs
STL
featured
statistical-algorithms
Apple