Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Last updated: Oct 28, 2021

Data Structures and Algorithms

In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data,i.e., it is an algebraic structure about data. Data structures serve as the basis for abstract data types (ADT). The ADT defines the logical form of the data type. The data structure implements the physical form of the data type. Different types of data structures are suited to different kinds of applications, and some are highly specialized to specific tasks. For example, relational databases commonly use B-tree indexes for data retrieval, while compiler implementations usually use hash tables to look up identifiers.
How Do You Move All The Zeros To The End Of The Array?
Author
upvote
0 Thumbs Up
Balanced Parentheses MEDIUM
Author
upvote
0 Thumbs Up
Disjoint-Set Data Structure
Author
upvote
0 Thumbs Up
Josephus Problem MEDIUM
Josephus' problem is a mathematical counting-out problem and claims that it originates from an incident in the first century
Shannon Fano Coding MEDIUM
In this article, we will discuss shannon fano coding, learn how the working of shannon fano algorithm and then see its implementation.
What is Jump Search Algorithm?
Author
upvote
0 Thumbs Up
Implement Queue using Stacks MEDIUM
Author
upvote
0 Thumbs Up
Directed Graph or Strongly Connected Components
Author
upvote
0 Thumbs Up
Boundary Fill Algorithm EASY
In this article, we'll learn about the boundary fill algorithm in detail, including its recursive nature, implementation, and the differences between 4-connected and 8-connected pixels. We'll also compare the boundary fill algorithm with the flood fill algorithm.
Deterministic and Non-Deterministic Algorithms MEDIUM
In this blog, we will learn about the Deterministic and Non-Deterministic Algorithms . We will understand each concept in detail and later look at the difference table for better understanding.
Prime Number Code EASY
In this blog, we will learn about the Prime Number Code. We will write about how to check prime number code and much more for better understanding.
Difference between array and stack EASY
In this blog, we will learn about the difference between array and stack. We will understand each concept in detail and later look at the difference table for better understanding.
Difference between Break and Continue Statement EASY
In this article, you'll learn what break and continue statements are, their implementation, and the difference between break statement and continue statement.
Quadratic Probing in Data Structure EASY
In this blog, we will learn about Quadratic Probing in Data Structure. We will understand its core concepts, its usage, and much more for better understanding.
Fizz Buzz Program in C++, Java & Python MEDIUM
In thsi blog, we will explore Fizz Buzz Program in Cpp, Java, Python.
Advantages of Data Structure EASY
In this article, we will learn what data structures are, different types of them  and few advantages of using data structures.
Difference Between NFA and DFA EASY
In this blog, we will learn about the Difference Between NFA and DFA. We will understand each concept in detail and later look at the difference for better understanding.
Breadth-First Search (BFS) in AI MEDIUM
BFS explores a graph or tree data structure by visiting all the neighboring nodes at the current depth before moving on to the nodes at the next depth level
Evaluation of Postfix Expression EASY
In this blog, we will learn about the Evaluation of Postfix Expression. We will learn about illustration, Postfix Evaluation for Multi-digit Numbers and much more for better understanding.
Difference Between Min Heap and Max Heap
Author
upvote
0 Thumbs Up
Stack Implementation Using Array in C EASY
In this blog, we will learn about Stack Implementation Using Array in C. We will understand its core concepts, its usage, and much more for better understanding.
Stable Sorting Algorithm EASY
In this blog, we will learn about the Stable Sorting Algorithm. We will understand various types of sorting algorithms, its time complexity and much more for better understanding.
Klee’s Algorithm
Author
upvote
0 Thumbs Up
Quick Sort in Data Structure EASY
Quick sort is a divide and conquer algorithm in which we choose a pivot point and partition the array into two parts i.e, left and right. The left part contains the numbers smaller than the pivot element and the right part contains the numbers larger than the pivot element. Then we recursively sort the left and right parts of the array.
Linear Search in Data Structure EASY
Linear search is also known as sequential search. It is a simple search algorithm used to find an element in a list or array. It checks each element one by one until the target element is found or the end of the list is reached.
Kruskal Algorithm in C MEDIUM
Kruskal's algorithm is a method for finding the minimum spanning tree (MST) in a weighted, connected graph.
Adjacency Matrix MEDIUM
In this blog, we will learn about Adjacency Matrix. We will understand its core concepts, its usage, and much more for better understanding.
Krushal’s Algorithm MEDIUM
Author
upvote
0 Thumbs Up
Maximum Subarray Sum EASY
Maximum subarray sum is a fundamental problem in computer science & programming. It involves finding the contiguous subarray within a one-dimensional array of numbers that has the largest sum.
Stack Trace MEDIUM
In this blog, we will learn about Stack Trace. We will learn about its characteristics, features, and much more for better understanding.
Anagram Program in C EASY
In this article, we'll learn different ways to solve the anagram problem using C programming language. We'll cover various algorithms & provide code examples to help you grasp the concepts better.
Data Structures Tutorial MEDIUM
A data structure is a specialised format that is especially designed for organising, processing, retrieving and data storing.
Author Dev Sharma
upvote
11 Thumbs Up
Boyer Moore Algorithm EASY
In this blog, we will learn about the Boyer-Moore Algorithm. We will understand the problem statement, implementation and much more for better understanding.
Importance Of Data Structures & Algorithms For Students
This blog explains importance of Data Structures and Algorithms for students.
Searching in Data Structure EASY
A data structure is a specific way of organizing and storing data on a computer so that it can be accessed and used effectively.
Range Query EASY
In this article, we will discuss what the range query problem is and what are its types. We will also discuss some problems with the explanation and solution code.
Optimal Page Replacement Algorithm MEDIUM
The Optimal Page Replacement (OPT) algorithm is a page replacement algorithm used in memory management. It is a theoretical algorithm that aims to replace the page that will not be used for the longest time in the future.
Data Structures in C Programs MEDIUM
In this blog, we will learn about Data Structures in C Programs. We will learn about different types of data structures, their advantages and much more for better understanding.
Advantages of Algorithm EASY
In this blog, we will learn about the Advantages of Algorithms. We will learn its characteristics, its advantages and disadvantages, and much more for better understanding.
Kaprekar Number EASY
In this article, we will discuss about kaprekar number with an example. We will also discuss about pros, cons, and use cases of kaprekar number.
Best 5 Reasons To Study Data Structures and Algorithms
In this blog, we will dicuss the best 5 reasons to study data structures and algorithms.
What is an Algorithm in Data Structures EASY
In this blog, we will learn about What is an Algorithm. We will learn about its characteristics, features, and much more for better understanding.
Traversing in Data Structure MEDIUM
Traversing in Data structure signifies visiting or accessing each element in a data structure systematically.
Spiral Order Matrix EASY
This article covers a famous matrix problem: Spiral Order Matrix. Its approach and implementations are discussed.
Difference Between Greedy and Dynamic Programming EASY
In this article, we will study the difference between Greedy and Dynamic Programming, their examples, and when to use them.
Author Tashmit
upvote
2 Thumbs Up
Difference Between Divide And Conquer And Dynamic Programming
This article will provide an overview and explain the difference between divide and conquer and dynamic programming based on various parameters.
Author Kartik023
upvote
0 Thumbs Up
Characteristics of an Algorithm EASY
Characteristics of an Algorithm are 1. Well-defined Inputs 2. Well-defined Outputs 3. Unambiguity 4. Finiteness 5. Language Independent 6. Effectiveness and Feasibility
Difference between Algorithm and Flowchart EASY
Algorithms are the rules that tell you what to do, step by step, to solve a problem whereas graphical representation of an algorithm is called a flowchart.
11 Beginner Programming Mistakes That A Programmer Must Avoid
This article will discuss beginner programming mistakes that a programmer must avoid.
Tips and Tricks to Improve Coding Skills EASY
Become a better coder by learning how to improve coding skills and discover the best tips and tricks to improve coding skills to crack the interview.
Design and Analysis of Algorithms MEDIUM
Design and Analysis of Algorithms involves creating efficient solutions for computational problems. Explore the design and analysis of algorithms in our comprehensive guide.
7 Tips for Beginners to Improve Programming Logic EASY
This article discusses tips for beginners to improve programming logic with additional tips.
Top Product Based Companies In India EASY
List of the top Product Based Companies In India 1. Amazon 2. Adobe 3. Uber 4. Google 5. Microsoft 6. Flipkart 7. Apple 8. Hewlett-Packard
How to fix: "RangeError: Maximum call stack size exceeded" EASY
Maximum stack call exceeded is an error that occurs when the function is called beyond the stack capacity.
Difference Between map() And flatMap() In Java Stream MEDIUM
In this blog, we have discussed in detail the difference between map() and flatmap()
Difference Between String and Character EASY
In this blog, we will learn the difference between string and character.
Author rjt_007
upvote
0 Thumbs Up
How to Convert byte Array to String in Java MEDIUM
In this blog, we have discussed how to convert byte[ ] array to string in various different techniques with examples for each.
Linear Diophantine Equation EASY
We will discuss the Linear Diophantine Equation's implementation and examples.
Gray to Binary MEDIUM
Gray code is a sequence of binary numbers known as reflected binary code (RBC). In gray code, two successive values differ by only 1 bit.

Time and Space Complexity

A good algorithm is one that takes less time in execution and saves space during the process. For the same, we have time complexity and space complexity which represent the amount of time and memory used by the algorithm respectively.
Introduction of Time Complexity EASY
The blog helps us introduce time complexity and its importance in writing efficient algorithms.
Author HET FADIA
upvote
7 Thumbs Up
Introduction to Space Complexity
This article introduces the basics of space complexity and discusses its importance.
Asymptotic Notations
This article introduces Asymptotic Notations and explains their use in analysing the space and time complexity of algorithms.
Asymptotic Notations (Data Structures) EASY
In this blog, we will discuss what are asymptotic notations, the types of asymptotic notations, and different types of complexity.
Big O Notation: Definition and Explanation MEDIUM
In this blog, we will thoroughly discuss the big o notation. We will look at the examples and codes to calculate time complexity.
Time Complexity and Space Complexity EASY
Time and space complexity play a crucial role in writing efficient codes. This article clearly and concisely explains the concept of time and space complexity.
Time & Space Complexity for loops
The blog helps us understand the time and space complexity in the for loops.
Author HET FADIA
upvote
1 Thumbs Up
Time Space Complexity of Graph Algo
This blog will discuss the time and space complexities of various graph algorithms in different situations.
Trick questions from Time & Space Complexity MEDIUM
Practice Questions on Time Complexity Analysis 1. What is time complexity? 2. What is the time complexity of the following code? 3. What is the time complexity of the following code?
Author HET FADIA
upvote
5 Thumbs Up
Substitution method for solving recurrences
This article explains and shows examples of the substitution method for solving recurrences.
Iteration Method
We will solve some exciting questions and algorithms in this blog using the iteration method.
Author HET FADIA
upvote
0 Thumbs Up
Recursion Tree Method
This article explains the Recursion Tree Method to analyze the time and space complexities of coding algorithms or implementations.
Master Method
This article discusses applications of the Master Method, its examples and limitations.
Merge Sort Time Complexity EASY
In this blog, we will learn about Merge Sort Time Complexity. We will understand its core concepts, its usage, and much more for better understanding.
Master Theorem (With Examples) MEDIUM
This article will cover analysing algorithms using the master theorem. We will cover what is master theorem and how to use master theorem.
Time & Space Complexity of Searching Algorithms
In this article, we take a look at an important concept of Time and Space Complexity of Searching Algorithms along with a brief look at the algorithm.
Time & Space Complexity of Sorting Algorithms (Quadratic time algorithms)
This article briefly discusses sorting algorithms with quadratic or worse time complexity.
Time & Space Complexity of Graph Algo - 1
This blog will discuss the time and space complexities of various graph algorithms in different situations.
Time & Space Complexity of Graph Algo - 2
This blog will discuss the time and space complexities of various graph algorithms in different situations.
Time & Space Complexities of Graph Algo-3
This blog will discuss various graph algorithms' time and space complexities.
Time and Space Complexity of Linear Data Structures
Time and space complexity of linear data structures explained.
Time and Space Complexity of Non-Linear Data Structures
Time and space complexity of non-linear data structures explained.
Recursion & Backtracking Time Complexity
This article explains recursion and backtracking with pseudocode and analysis, including their applications and time complexities of recursive functions.

Strings

Strings is one of the commonly used data types in all programs. It is technically defined as an array of characters which are enclosed within quotes in most of the languages. In some languages, it's a primitive data-type, and in others, it's defined as a complex data-type.
Check If a String is a Palindrome or Not MEDIUM
This article will discuss the problem to check if a string is a palindrome, and we will discuss solutions to this problem in 3 different ways along with their complexities.
Rabin-Karp Algorithm EASY
In this article, we will discuss the Rabin-Karp Algorithm for finding a given pattern in a given string, its Java, Python & C++ implementation, and its time and space complexities.
Author Riya
upvote
3 Thumbs Up
Rabin-Karp Algorithm MEDIUM
Rabin-Karp Algorithm is used to find the occurrence of a pattern in a text using a hash function.
Manacher's Algorithm
In this blog, we will discuss the widely used manacher's Algorithm, which is used primarily for finding palindrome substrings for a given string; we will also learn about the trivial Algorithm, further, our concern is to determine the time complexity and implementation of the manacher's Algorithm which we will learn in the last part of our blog.
Subsequence Vs Substring EASY
This article attempts to give an overview of Subsequence Vs Substring and their basic concepts with the help of the implementation code in Java.
Count and Toggle Queries on Binary Array MEDIUM
In this article, we will learn about Count and Toggle queries on Binary array. We will also learn about its applications and code the program for the same.
Shortest Palindrome
The blog helps us understand how the KMP and z function works
Author HET FADIA
upvote
1 Thumbs Up
Find All Occurrences of the Pattern in the String
In this article, we will discuss the approach to finding all the occurrences of the given pattern in the given string. We will also focus on the complexity of our approach.
Car Fleet MEDIUM
This article discusses the car fleet problem and how to implement it with two different approaches.
Count Palindromes EASY
In this article, we will discuss the problem of power palindrome.
Count of Longest Palindromic Substrings
This article discusses the methods to find the count of the longest palindromic substrings of a string.
Run Length Encoding (RLE) EASY
Run-length encoding (RLE) is a compression technique that stores repeated sequences of data as a single value.
Repeated Substring Pattern
The blog aims to find if we can construct a given string by making multiple copies of any of its substrings.
Author HET FADIA
upvote
1 Thumbs Up
Rearrange a Binary String as Alternate X and Y Occurrences EASY
In this article, we will discuss how to rearrange a binary string as alternate x and y occurrences along with its complexity.
Minimum Repetitions of String A, to Generate String B as its Substring
Minimum number of repetitions of string A to generate a string that has string B as its substring.
Find the longest proper prefix that is also a suffix
In this article, we will discuss the approach to finding the longest proper prefix that is also a suffix for a given string. We will also focus on the complexity of our solution.
Count Valleys EASY
In this blog, we'll define and solve a fascinating string problem, Count Valleys.
Convert Given Array of Strings to a Camel Case Format Sentence EASY
In this blog, we will discuss an application-based DSA question, i.e., convert given array of strings to a camel case format sentence
Finding the Longest Palindromic Substring using Manacher’s Algorithm MEDIUM
This article will discuss Manacher's algorithm, used to find the longest palindromic substring. We will discuss its algorithm, implementation, and its complexities.

Arrays

An array is the most primitive and frequently used data structure in the field of computer science. It has become the inspiration for several data structures such as lists and strings. An array is basically a collection of similar types of data items stored at contiguous memory locations. It helps us to store multiple items of the same data type together. They are also used to implement other data structures like Heaps, Stacks, Queues, etc. This category contains all of the information you need to know about arrays.
Difference between Array, Queue & Stack MEDIUM
In this blog, we'll learn about the differences between arrays, queue and stack.
How to Rearrange an Array such that arr[i]=i? EASY
This article will discuss how we can rearrange an array such that arr[i]=i.
Find the Number Occurring Odd Number of Times
Different ways to find a number with odd frequency in a group of numbers with even frequencies.
Leaders in an Array EASY
This article will discuss the Leaders in array problems and various ways to solve this problem.
Difference Between Array and String EASY
In this article, we will learn about the differences between arrays & strings, their declaration syntax, instantiation, and accessing elements with proper code examples to illustrate these concepts.
Max XOR of Two Numbers in an Array MEDIUM
Finding the Maximum XOR of two elements in an array is one of the most important interview problems. This article discusses the solution for this in C++, Java, and Python.
Missing Number in Array EASY
In this blog, we will learn about Missing Number in Array. We will write code in different languages for better understanding.
Sum of middle elements of two sorted arrays
This article will discuss the Sum of middle elements of two sorted arrays problem and various ways to solve this problem, starting from the brute force approach to the efficient approach.
Advantages and Disadvantages of Array EASY
In this article we will talk about the basics of Array and also look at few advantages and disadvantages of this data structure.
Check loop in array according to given constraints MEDIUM
In this article, we will learn how to check loop in an array according to given constraints, along with the explanation, algorithm, and implementation.
How to take array input from user in java? EASY
In this blog, we will learn about How to take array input from user in java. We will learn about different ,methods for better understanding.
Difference Between Linear Array And A Record EASY
This article will provide an overview and discuss the significant what difference between linear array and a record is based on various parameters.
Author Kartik023
upvote
0 Thumbs Up
Find First K Natural Numbers Missing in the Given Array EASY
This blog covers finding the first k natural numbers in a given array.
For Each Loop EASY
In this article, you will go through the for each loop (also known as the for each loop), a control flow statement used to traverse entries in a collection.
Equilibrium Index of an Array EASY
This article covers an array based problem i.e. Equilibrium Index of an Array with different approaches and implementation in detail.
Pythagorean Triplet in an Array MEDIUM
In this article, we will discuss various approaches to finding out the presence of the Pythagorean Triplet in an array. We will also look at their code in different languages and their complexity analysis.
Javascript Program for Largest Sum Contiguous Subarray
This article will look at a javascript-based implementation of the solutions for the largest contiguous sum problem.
Find a rotation with maximum hamming distance EASY
In this article, we will discuss how to find a rotation with maximum hamming distance and understand the concept with examples in detail.
Author Tarnxxvr
upvote
0 Thumbs Up
Sort An Array Containing 0’s, 1’s and 2’s MEDIUM
In this blog, we will discuss one problem related to sorting in which we will sort an array containing 0's, 1's, and 2's.
Find the Maximum Sum of i*arr[i] Among all Possible Rotations of an Array
This article finds the maximum sum of i*arr[i] among all possible rotations allowed on a given array.
Author Afzal_CN
upvote
1 Thumbs Up
Multiple left rotations of an array with O(1)
An array can be left rotated or right rotated. This article is majorly concerned with the left rotations of an array with O(1) time complexity.
Difference between Array and Structure EASY
Arrays and structures are data structures in programming. Explore the difference between arrays and structures in programming. Read on to learn more.
Reversal algorithm for right rotation of an array
This article deals with the reversal algorithm for right rotation of an array and its implementation, time and space complexities.
Reversal Algorithm for Array Rotation
This article discusses the Reversal Algorithm for Array rotation. It also calculates the time and additional space complexity of the algorithm.
Block Swap Algorithm for Array Rotation EASY
This blog discusses Block Swap Algorithm for array rotation, an algorithm to find the rotated array when we are given the array and the no of rotations.
Rotation Count
This blog discusses in detail Rotation Count, i.e., no of times a sorted array of distinct elements is rotated.
Program for Array Rotation in Java MEDIUM
Explore effective array rotation techniques in programming. Learn how to optimize code, improve performance, and solve common challenges associated with array rotation.
Queries on Left and Right Circular shift on Array MEDIUM
In this article, we will discuss how to operate on left and right circular shifts on an Array and understand the concept with examples in detail.
Author Tarnxxvr
upvote
0 Thumbs Up
The minimum number of elements to add to make median equals x
This current article will discuss the problem "Minimum number of elements to add to make median equals x." We will discuss this problem in the best possible way.
Given a Sorted and Rotated Array, Find if There is a Pair with a Given Sum EASY
In this article, we will discuss two approaches of solving a given sorted and rotated array to find if there is a pair with a given sum.
Author simransri
upvote
0 Thumbs Up
Segregate 0s and 1s in an Array
In this article, we will discuss the segregating of 0s and 1s in a binary array. We will look also look at the problem statement in detail followed by its various approaches, code, and complexities.
Rearrange positive and negative using the inbuilt sort function
In this article, we will discuss a very interesting problem in which we have to rearrange such that all negative numbers come before positive numbers, and the order of elements needs to remain the same.
Rearrange the array such that the even index elements are smaller and the odd index elements are greater
In this article, we will discuss the problem of rearranging an array such that the even index elements are smaller and the odd index elements are greater.
Rearrange array such that arr[i] >= arr[j] if "i" is even and arr[i]<=arr[j] if "i" is odd and j < i EASY
This blog will discuss a problem of array rearrangement such that arr[i] >= arr[j] if "i" is even and arr[i]<=arr[j] if "i" is odd and j < i.
Rearrange an array in order - Smallest, Largest, 2nd Smallest, 2nd Largest and so on EASY
In this article, we will learn to reorder an array by placing the smallest number first, the largest number in second, the second smallest in third, the second-largest in fourth, etc.
Rearrange Array such that Even Positioned are Greater than Odd EASY
In this article, we will learn to rearrange an array such that the even positions are greater than the odd ones. We will implement different approaches in C++ and Java.
Replace every array element by multiplication of previous and next elements EASY
In this article, we will discuss how to replace every array element by multiplication of previous and next elements, and understand the concept with examples, in detail.
Positive elements at even and negative at odd positions MEDIUM
In this article, we will discuss how to arrange elements of an array such that positive elements occur at even and negative at odd positions; we will discuss its brute force approach and optimized solution.
Author Tarnxxvr
upvote
0 Thumbs Up
Array Reordering Using Given Indexes EASY
In this article, we will learn to reorder an array using another array with given indexes. We will implement different approaches in C++ and Java.
Merging Two Sorted Arrays MEDIUM
This article discusses merging two sorted arrays using JavaScript. We will see various methods for merging two sorted arrays and the implementation in C++.
Author Lekhika
upvote
3 Thumbs Up
Form Minimum Number from Given Sequence MEDIUM
In this article, we will discuss how to form a minimum number from a given sequence.
Move All Negative Elements to the End in Order With Extra Space Allowed EASY
This blog mainly focuses on the problem of moving all the negative elements to the end of the array in order with extra space allowed. We will discuss different approaches to solve this problem with a proper explanation and flow diagram.
Making elements of two arrays identical with minimum increment/decrement MEDIUM
In this blog, we'll alternate the elements to convert one number into another by adding or subtracting one and getting the result.
Three-way Partitioning of an Array Around a Given Range EASY
The goal of this problem is to divide the array into three parts by partitioning it around the range. The three sets' elements can appear in any order. You must return the array that has been modified.
Split the array and add the first part to the end
In this blog, we will look at an array question in which we split the array and add the first part to the end.
Author Md Yawar
upvote
0 Thumbs Up
Shuffle 2n integers as a1-b1-a2-b2-a3-b3-...bn without using extra space EASY
In this article, we will be discussing how to create a shuffled array of 2n integers as a1-b1-a2-b2-a3-b3-...bn without using extra space.
Generate all Possible Sorted Arrays from Alternate Elements of Two Given Sorted Arrays HARD
In this article, we will discuss how to generate all possible sorted arrays from alternate elements of two given sorted arrays.
Smallest subarray with sum greater than a given value MEDIUM
In this blog, We will see the solution to the problem smallest Subarray with a sum greater than a given value
Program for Mean and Median of an unsorted array
In this article, we will discuss the finding of the mean and median from an unsorted array. We will look also look at the problem statement in detail followed by its algorithm and implementation.
Maximum difference between a group of k-elements and rest of the array
This current article will discuss the problem "Given an array of size n and a number k, we need to find all elements that appear more than n/k times." We will discuss this problem in the best possible way.
Maximum difference between two elements such that larger element appears after the smaller number MEDIUM
In this blog, we will cover the problem of finding the maximum difference between two elements such that the larger element appears after the smaller number and will discuss its time and space complexities.
Given an array arr[], find the maximum j – i such that arr[j] > arr[i] MEDIUM
This blog will cover the problem of finding the maximum value of j-i such that arr[j] > arr[i] and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
K-th Largest Sum Contiguous Subarray MEDIUM
In this blog, we will find the K-th largest sum contiguous subarray.
K maximum sums of overlapping contiguous sub-arrays HARD
In this article, we will discuss the problem of K maximum sums of overlapping contiguous sub-arrays
K maximum sums of non-overlapping contiguous sub-arrays MEDIUM
In this article, we will discuss how to find the ‘k’ maximum sums of non-overlapping contiguous sub-arrays, in detail.
Moore’s Voting Algorithm
This blog will cover Moore’s Voting algorithm to find the Majority Element and discuss its Time and Space complexity.
Find the minimum number of merge operations to make an array palindrome
This article explains how to find the minimum number of merge operations to make an array palindrome, how it can be implemented, and the code to solve it.
Find Zeroes to be Flipped, so that Number of Consecutive 1's is Maximised with K Maximum Flips
In this article, we will understand how to find zeroes to be flipped, so that number of consecutive 1's is maximised with k maximum flips.
Number of subsets with product less than k MEDIUM
This blog will give you detailed explanation and implementation of the approach to find the number of subsets with product less than k.
Author Anjujais
upvote
0 Thumbs Up
Maximize elements using another array EASY
In this blog, we will discuss different approaches to maximize elements using another array. Then we will discuss their algorithms, pseudo-codes, and complexities analysis.
Minimum product of k integers in an array of positive Integers EASY
In this blog, we will find the minimum product of k integers in an array of positive integers.
Shuffle an array using Fisher-Yates shuffle Algorithm MEDIUM
This article will discuss how to shuffle an array using the Fisher-Yates algorithm in O(n) time complexity.
Author Tarnxxvr
upvote
1 Thumbs Up
Count Square Submatrices with All Ones MEDIUM
This article revolves around the coding problem, which says Count Square Submatrices with all ones.
Author Alisha
upvote
2 Thumbs Up
Matrix probability problem MEDIUM
In this article, we will learn in brief about two-dimensional arrays known as matrices. We will also discuss a matrix probability problem using the idea of Depth First Search (DFS).
Search in a 2-D Matrix which is sorted row-wise and column-wise.
In this article, we will discuss the problem of checking if the given number is present in the row-wise and column-wise sorted matrix
Size of all Connected Non-Empty Cell of Matrix
In this blog, we will solve the Matrix problem, in which we have to count the size of all connected Non-Empty cells.
Author Yogesh
upvote
0 Thumbs Up
Count All Number Of Paths Of A Given Matrix MEDIUM
The article discusses the problem of counting all possible number of paths from top left to bottom right in a given matrix along with its implementation in C++.
Count All Sorted Rows in a Matrix
This blog will cover the problem of counting the number of sorted rows either in increasing or decreasing order in a matrix and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Maximum Product of 4 Adjacent Elements in a Matrix
This blog will cover the problem of finding the maximum product of 4 adjacent elements in a matrix in any direction and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Minimum Number of Operations Required to Set All Elements of a Binary Matrix
This blog will discuss how we can solve a classical problem of BFS and one of the most asked problems in interviews, i.e., Minimum number of operations required to set all elements of a binary matrix.
Multiplication of two matrices EASY
In this article, we will discuss how to find the multiplication of two matrices.
Rotate a Matrix 90 Degrees (Without using Extra Space) EASY
In this article, we are going to rotate a given matrix by 90 degrees without using the extra space, by transposing and reversing the column of the matrix.
Rotate a Matrix by 180-degree EASY
In this article, we are going to rotate a given matrix by 180 degrees without using the extra space, by using a naive approach, i.e. by printing a reverse matrix and by swapping positions of elements of the matrix.
Rotate a Matrix Right by K Elements
This article mainly focuses on the problem Rotate a Matrix Right by K Elements. We will explain to you the approach to solving the problem.
Rotate Each Ring of Matrix Clockwise by K Elements MEDIUM
In this blog, we will solve an interesting coding problem involving spiral traversal of a matrix and rotation of the spiral traversal.
Rotate Matrix Elements EASY
In this blog, we will learn how to rotate matrix elements clockwise in different programming languages C++, Java and Python.
Interchange elements of first and last rows in matrix EASY
The reader will learn about how to interchange the elements of the first and last row in a matrix in this article.
Count Zeros in a row wise and column wise sorted matrix MEDIUM
This blog will cover the problem of counting the number of zeroes in a row-wise and column-wise sorted matrix and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Given 1’s, 2’s, 3’s ……k’s Print them in ZigZag way MEDIUM
This blog will cover the problem of printing a given number of 1’s,2’s,3’s ….k’s in a zig-zag pattern in a 2-d matrix and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Check if all rows of a matrix are circular rotations of each other
In this article, we will see how to check if all the rows of the given matrix are circular rotations of each other or not, in detail.
Check Diagonal Matrix and Scalar Matrix EASY
In this blog, you’ll learn some programs to check diagonal matrix and scalar matrix.
Diagonally Dominant Matrix EASY
In this article, we will explore the diagonally dominant matrix and write programs to check the diagonally dominant matrix.
Unique elements in a Matrix EASY
In this blog, you will learn about the problem of finding unique elements in a matrix
Scalar Multiplication of a matrix EASY
In this blog, we will discuss how to perform the scalar multiplication of a matrix.
Matrix Chain Multiplication
In this blog, we will discuss an important dynamic programming question, matrix chain multiplication. Dynamic programming is the key to solve this problem.
Kronecker Product of Two Matrices
This article incorporates a detailed discussion on the problem Kronecker Product of two matrices with implementation.
Author Alisha
upvote
0 Thumbs Up
Squares of Diagonals of a Matrix
This blog explains how to print squares of diagonal elements of a matrix.
Program to Check Involutory Matrix
The reader will learn about how to check whether a matrix is an Involutory matrix or not in this article.
Program to Check Idempotent Matrix EASY
This blog focuses on the Program to Check Idempotent Matrix. We will discuss the implementation of the Idempotent Matrix in different programming languages.
Print X’th element in the spiral form of a matrix
This blog will cover a multidimensional array problem to Print X’th element in the spiral form of a matrix and its time and space complexities.
Row-wise vs Column-wise Traversal of a Matrix EASY
This blog mainly focuses on the Row-wise and Column-wise Traversal of a Matrix. We will show you row-major and column-major traversals and their differences.
Find Sum of all Elements in a Matrix except the Elements in Row and/or Column of Given Cell
In this blog, we will discuss a programming question where we have to find the sum of all the elements in the Matrix except some of the given cells in the matrix.
Author Harsh
upvote
1 Thumbs Up
Swap upper diagonal elements with lower diagonal elements of matrix MEDIUM
In this blog, we will discuss a programming question in which we have to swap the elements of a matrix.
Author Harsh
upvote
0 Thumbs Up
Magic Square (Odd Order) EASY
In this blog, we'll talk about how to make a magic square of size n programmatically. We will learn about the algorithms and step to implement the Magic Square.
Magic Square (Even order)
In this article we will talk about what magic square is and its properties and algorithm for it.
Magic Square Matrix
In this article we will try to understand whether a given matrix is magic square or not using examples.
Markov Matrix EASY
The reader will learn about the Markov matrix in this article.
Strassen’s Matrix Multiplication MEDIUM
Strassen's Matrix Multiplication is a divide-and-conquer technique used to efficiently solve matrix multiplication problems.
Author Harsh
upvote
0 Thumbs Up
Sort the matrix row-wise and column-wise EASY
In this blog, we will discuss a program to sort the matrix row-wise and column-wise.
Kunal and Triplets
This article will discuss the solution for the problem statement “Kunal and Triplets” in which some operation on a Triplets of the given array has to be performed. Along with the solution, the article focuses on the time and space complexity of the solution.
Author apoorv007
upvote
0 Thumbs Up
Sparse Table Construction (SUM QRY)
In this article, we will learn how to solve range sum query using the sparse table.
Range Min Using Sparse Table
In this article, we will learn how to solve range minimum query using the sparse table.
Range GCD Query Using Sparse Table MEDIUM
This blog will learn how to solve problems based on a range query using the sparse table.
Find median of row-wise sorted matrix EASY
In this article, we will discuss how to find the median of the row-wise sorted matrix.
Minimum Operations required to make each Column and Row of the Matrix Equals HARD
This blog will cover a multidimensional array problem of finding the Minimum operations required to make each column and row of the matrix equal and its time and space complexities.
Count the number of times k appears in a matrix of size n, with matrix(i, j) = i+j.
This blog will cover a multidimensional array problem of Counting the number of times k appears in a matrix of size n, with matrix(i, j) = i+j and its time and space complexities.
Sum of the middle row and column in Matrix EASY
In this blog, you will learn about the problem of finding the sum of the middle row and column in a matrix. We will go over various approaches to solve this problem.
Sum Of The Values Of All Paths In A Grid
In this article, we will study how to find the sum of the values of all paths in a grid starting from the top left corner to the bottom right corner and moving only down or right.
Shifting matrix elements row-wise by k
This blog gives an overview of shifting matrix elements row-wise by k in different programming languages.
Finding the distinct elements common to all rows of the matrix
This blog will cover a multi-dimensional array problem to find distinct elements common to all rows of a matrix and its time and space complexities.
Implementation of Deque Using A Circular Array MEDIUM
This blog explains the concept of Deque using a circular array along with its implementation and time complexities.
Searching and Sorting in Rotated Sorted Array  | Part-2
n this blog, we discussed the method to search an element in a rotated sorted array with duplicate elements. Read the blog to learn it in detail.
Find common elements in three sorted arrays EASY
This blog will give you detailed explanation and implementation of the approach to find common elements in three sorted arrays.
Author Anjujais
upvote
0 Thumbs Up
Find the missing and repeating number in an array MEDIUM
In this blog, we will discuss the problem of finding the missing and repeating element in an array.
Search in a Row wise and Column wise Sorted Matrix
This blog will cover the problem of searching for an element in a sorted 2-D matrix and returning its position and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Maximize Subarray Sum of Given Array by Adding X in the Range [L, R] for Q queries
This blog will discuss an application of Kadane’s Algorithm and one of the most asked problems in interviews, i.e., maximize subarray sum of given array by adding X in the range [L, R] for Q queries.
Aggressive Cows MEDIUM
This article explains the solution to a famous problem, “Aggressive Cows,” ranging from brute force to the most optimal approach
Book Allocation Problem MEDIUM
Find the minimum number of pages to be allocated to students so that each student gets at least one book. Let’s discuss an efficient algorithm to solve it.
Maximum triplet sum in Array
This article will brief you on finding the maximum triplet sum in Array.
Search an element in an array where difference between adjacent elements is 1 MEDIUM
In this blog, we will cover the problem of finding an element in an array where the difference between adjacent elements is 1 and discuss its time and space complexities.
Search an Element in an Unsorted Array using Minimum Number of Comparisons MEDIUM
In this blog, we will cover the problem of searching an element in an unsorted array using a minimum number of comparisons and discuss its time complexities.
Square Root using binary search EASY
In this blog, we will briefly discuss the concept of binary search and how to utilize it to find the square root of an element in log(N) time efficiently.
Count of only Repeated Element in a Sorted Array of Consecutive Elements EASY
This blog will cover the problem of the count of only repeated elements in a sorted array of consecutive elements and its time and space complexities.
Find Element in a Sorted Array whose Frequency is Greater than or Equal to n/2 MEDIUM
In this article, we are going to discuss the nested loop approach and the Boyer-Moore majority vote algorithm approach to find element in a sorted array whose frequency is greater than or equal to n/2.
Find the minimum element in a sorted and Rotated Array
This blog discusses an important interview question: Finding the minimum element in a sorted and rotated array.
Find a Fixed Point (Value equal to Index) in a Given Array EASY
In this blog, we will cover the problem of Finding a Fixed Point whose value is equal to the index in a given array and discuss its time and space complexities.
Plates Between Candles
In this blog, you will solve a medium-level Leetcode programming question named "Plates Between Candles."
Ceiling in a sorted array
 This article will brief you on finding the ceiling in a sorted array.
Binary Search in Sorted Vector of Pairs EASY
In this article, we are going to discuss binary search in sorted vector of pairs.
Find the only repetitive element between 1 to n-1 EASY
This blog will give you detailed explanation and implementation of the approach to find the only repetitive element between 1 to n-1
Author Anjujais
upvote
0 Thumbs Up
Find the subarray with the least average
In this article, we will find a subarray that has the least average that is a subarray with the minimum average.
Given an array of size n and a number k, find all elements that appear more than n/k times.
This current article will discuss the problem "Given an array of size n and a number k, we need to find all elements that appear more than n/k times." We will discuss this problem in different approaches.
Sort a Rotated Sorted Array
This blog is focused on methods we can use for sorting a rotated sorted array of distinct elements. Read further to learn these methods in detail.
Merge Sort Pseudocode in C, C++, Java, and Python MEDIUM
Merge Sort is a popular comparison-based sorting algorithm that follows the divide-and-conquer paradigm. Here's how it works:
Sort the matrix EASY
In this article, we will discuss how to sort the matrix.
Sort an Array in Waveform EASY
In this article, we will understand how to sort an array in waveform along with the different types of approaches to solve the problem.
Alternative Sorting EASY
In this article, we will discuss the problem of Alternative sorting along with its time complexity and auxiliary space.
Smallest Index with Equal Value
In this blog, we will discuss a Leetcode Easy problem, smallest index with equal value. This problem has been asked in the latest weekly contest organized by Leetcode.
Find The Last
In this article, we will try to solve a question on sorting algorithms that can be asked in interviews.
Sort an Array According to the Relative Order of Another Array MEDIUM
This article discusses a program for sorting an array in the order defined by another array.
Sort Elements by Frequency MEDIUM
In this article, we will learn how to sort elements by frequency along with their time complexity.
Program to find the number of misplaced elements from the index after sorting
This article discusses the approach to finding the number of misplaced elements from the index after sorting with its C++ code.
Author Spider
upvote
0 Thumbs Up
Sort the Given Array after Sorting Each Number Individually
In this article, we will discuss how to sort the given Array after sorting each number individually.
Sort all even numbers in the Array without changing the order of odd elements
This article covers how to sort all even numbers in the array without changing the order of odd elements with examples and code in C++.
Author Spider
upvote
0 Thumbs Up
Sort rows in ascending order followed by columns in descending
In this blog, you will learn how to sort rows in ascending order followed by columns in descending order. We will go in-depth and analyse time complexity as well.
Sorting Array Except Elements in a Subarray
This blog discusses the approach to sorting an array while taking care that a particular subarray remains untouched.
Count minimum steps to get the desired array MEDIUM
In this blog, We will see the solution to the problem count the minimum steps to get the desired array in cpp.
Minimum swaps required to bring all elements together less than or equal to a given number EASY
This blog will discuss the problem of Minimum swaps required to bring all elements together less than or equal to a given number.
Merging two unsorted arrays in sorted order
In the blog, we will discuss the problem of merging two unsorted arrays into a single sorted array.
MO’s algorithm and its applications HARD
This article incorporates information on MO's algorithm and its application in competitive programming.
How do You Move All the Zeros to the Left of the Array? EASY
This article demonstrates how you move all the zeros to the left of the array.
Greedy Algorithms in Array EASY
This blog discusses greedy algorithms in an array and mentions important problems in the domain of greedy algorithms.
Count the number of possible triangles EASY
In this blog, we will discuss different approaches to count the possible number of triangles in an array. Then we will discuss their algorithms, implementations, and complexities analysis.
All Unique Triplets that Sum up to a Given Value
This article discussed different approaches to finding all the unique triplets that sum to a given value. First, a method is discussed which uses O(n) space and the second approach is the optimization over the first approach, which does the task in O(1) space.
Sorting all array elements except one EASY
This blog discuss the sorting problem in which we sort all array elements except one.
Author Md Yawar
upvote
0 Thumbs Up

Linked List

A linked list is a linear data structure that consists of nodes. Each Node contains a data field and a pointer to the next Node. In Linked List, unlike arrays, elements are not stored at contiguous memory locations but rather at different memory locations. The various elements in a linked list are linked together using pointers. There are majorly two types of Linked list: Singly Linked List and Doubly Linked List. This category contains all the information you need to know about Linked Lists.
A Brief Introduction To Linked Lists EASY
In this blog, we will discuss what is linked lists, their advantages over the array, their types, and their implementation in C++ programming language.
How To Master Linked List And Its Importance
This blog discusses the concept of Linked List in detail. It also mentions the implementation of singly, doubly and circular linked lists.
Applications Of Linked List Data Structure EASY
A linked list is a linear data structure made up of nodes, each containing information and a reference to the next node.
Create a Linked List From a given array EASY
In this article, we will learn how to create a linked list from a given array.
Advantages and Disadvantages of Linked List MEDIUM
Explore the advantages and disadvantages of linked lists in this comprehensive article. Read on to get valuable information on linked list in data structure..
Linked List in Data Structures EASY
Linked lists offer a multitude of operations, empowering developers to execute a wide array of actions with ease and efficiency.
Difference between ArrayList and LinkedList MEDIUM
The Array and LinkedList are popular data structures in Java. And both arraylist and linkedlist are used to store and manage collections of objects.
Merge Sort For Linked List MEDIUM
Learn how to implement merge sort in a linked list with this comprehensive tutorial. Master the art of sorting linked lists efficiently for improved data management.
Is it possible to Reverse a Linked List in less than O(n)?
This article will explain the minimum time possible to reverse a linked list.
How to Write the Functions that Modify the Head Pointer of a Linked List in C? EASY
In this article, we will learn how to modify the head pointer of a Linked List in C.
Linked List in Java MEDIUM
In this article, we will understand the inner workings of LinkedList, its constructors, methods, and various operations such as adding, updating, removing, and iterating over elements.
How to access Nth node from last, in a singly linked list? MEDIUM
In this article, we will discuss how we can access the nth node from last in a singly linked list with proper explanation and code.
Binary Search on Linked List EASY
This article deals with the algorithm to perform a binary search on a linked list and explains time and space complexity.
Singly Linked List in Java EASY
In this article, we will learn the concept of singly linked lists in Java, including their implementation, basic operations, & practical applications with proper codes and examples.
Check if a Linked List of strings forms a palindrome
This blog discusses the problem of checking if a linked list of strings forms a palindrome.
Singly Linked List in C EASY
In this article, we will learn how to construct a singly linked list in C, which will include creating nodes, inserting & deleting nodes, & traversing the list.
Insertion in Linked List MEDIUM
Learn how to insert a node in a linked list with our guide. It covers basics, techniques, and implementation in C++.
Deletion of a Linked List MEDIUM
In this article, we’ll learn how to delete a linked list along with the implementation in C++ language.
Linked List in Python EASY
We'll cover everything from creating a basic linked list to performing complex operations such as inserting and deleting nodes.
Delete Node in a Linked List EASY
This article introduces you to the linked list concept in data structures and how to delete a linked list node at a given position with detailed code and explanation.
Deleting a Node in a Linked List in C++
This article discusses Deleting a Node in a LinkedList in C++. It discusses deleting a node in a LinkedList in C++ from various places.
Author Alisha
upvote
0 Thumbs Up
Reversing a Linked List MEDIUM
Learn to create a reversed linked list from the given linked list along with the implementation.
Insertion Sort for Singly Linked List
In this blog, we will look at how one can use the idea of insertion sort for also sorting singly-linked lists.
Unrolled Linked List MEDIUM
In this article, you’ll be introduced to an unrolled linked list along with the implementation in C++ language.
Alternating split of a Singly Linked List
This blog will discuss how to solve the problem ‘Alternating split of a Singly Linked List’ in detail.
Alternate Odd and Even Nodes in a Singly Linked List
This article will discuss a very common problem related to Linked List - Alternate Odd and Even Nodes in a Singly Linked List
Sort Linked List which is already sorted on absolute values EASY
This blog discusses the coding problem of sorting a linked list, which is already sorted on absolute values.
How to Swap Kth Node from the Beginning with Kth Node from the End in the given Singly Linked List HARD
In this blog, We learned to swap Kth node from the beginning with Kth node from the end in the given singly Linked List. Read further for a detailed solution.
Function to get Nth node in a Linked List
This article teaches the reader how to create a function to get the Nth node in a given LinkedList.
Multiply two numbers represented by Linked Lists EASY
In this blog, we will discuss how to multiply two numbers represented by linked lists. Then we will discuss the algorithm and complexities analysis for the approaches.
Two Pointer Approach MEDIUM
The concept of "two pointer technique" is not very extensive. We'll go over the key concepts in this blog, explaining when and how to use the two pointer technique.
Rotate Linked List Block Wise EASY
This blog will cover the problem to rotate Linked List Block Wise and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Reverse a Linked List in Groups
This article revolves around how to reverse a linked list in groups in the C++ Programming language using the brute force approach and the most optimal solution.
Difference between a Singly Linked List and a Doubly Linked List
This blog will discuss the differences between a singly linked list and a doubly linked list and some problems based on both are listed in the FAQ section.
Compare two strings represented as Linked Lists
This article will discuss all the points associated with comparing two strings represented as Linked Lists. We will further look at an example of how to compare two strings represented as Linked Lists.
The intersection point of two Linked Lists MEDIUM
This blog covers an interview problem: the intersection point of two linked lists using various approaches along with the code in Java.
Implement iterator pattern of a Singly Linked List
In this blog, we will learn how we can implement our own Iterator in a singly linked list.
Author Harsh
upvote
0 Thumbs Up
Using only 2 pointers reverse a Linked List
This article covers the problem: Using only 2 pointers reverse a Linked List in detail along with its pseudocode, implementation and appropriate examples.
Point arbitrary pointer to greatest value right side node in a Linked List
This blog discusses the coding problem of pointing to the greatest value right side node in a Linked List.
In-place Merge two Linked Lists without changing links of first list MEDIUM
In this blog, we will cover the problem of In-place Merge two sorted Linked Lists without changing the links of the first list and its time and space complexities.
Circular Linked List MEDIUM
A circular linked list is a data structure where each element points to the next, and the last element points back to the first, forming a circle.
Circular Linked List in C MEDIUM
A linked list is a data structure known to all. A circular linked list is an advanced version of it and is discussed in this article. Happy reading!
Singly Linked List To Circular Linked List MEDIUM
This blog will discuss how to convert a singly linked list to a circular linked list along with the implementation in C++ language.
Count the no of Nodes in a Circular Linked List EASY
In this topic, we will look at how many nodes a circular linked list has or how to count nodes in a circular linked list.
Check If A Linked List Is Circular Linked List MEDIUM
This blog will cover the problem of checking if LinkedList is a Circular LinkedList along with the implementation in Java language.
Deletion in a Circular Linked List MEDIUM
One of the most important data structures to understand is the linked list. In this article we will learn the deletion operation in a circular linked list.
Count Duplicates in Circular Linked List
The blog aims to find the count of duplicate elements in a circular linked list and explain the solution process.
Circular Linked List Traversal
In this blog, we’ll explore various techniques to traverse a circular linked list.
Split a Circular Linked List into Two Halves MEDIUM
This blog will cover the problem of splitting a circular linked list into two halves and the usage of the slow and fast pointer method in these types of problems.
Author coldz
upvote
2 Thumbs Up
Josephus Circle Implementation Using STL List MEDIUM
This section will discuss the Josephus Circle Implementation using STL Lists. We will discuss the example of the given problem, the explanation, and the algorithm of the problem.
Exchange the first and last nodes in Circular Linked List
In this article, we will discuss how to exchange the first and the last nodes in the Circular Linked List, in detail.
Convert a given Binary Tree to Doubly Linked List
This blog will discuss how to convert a given binary tree to doubly linked list using 3 different approaches.
Advantages, Disadvantages and Uses of a Doubly Linked List EASY
This article briefly discusses the popular Doubly Linked List Data Structure along with its properties as well as its Advantages and Disadvantages.
Introduction to Doubly Linked List MEDIUM
In this blog, we will discuss the introduction and implementation of a doubly linked list, along with its advantages and disadvantages.
Features of Doubly Linked List EASY
This blog will give you insights about features of doubly linked lists, operations performed by doubly linked lists in detail.
Delete a Node in a Doubly Linked List
This article discussed the approach to deleting any given element from a doubly linked list. We talked about the simple algorithm, which takes a constant amount of time as well as space to execute
Find the size of Doubly Linked List EASY
In this article, we will discuss the problem of finding the length of the doubly linked list.
Reverse a Doubly-Linked List in Given Size MEDIUM
In this blog, we’ll solve the problem reverse a doubly-linked list in groups of size K by two different methods.
Insertion sort for doubly linked list MEDIUM
In this article, we will discuss how to sort a doubly-linked list using Insertion sort. We will see its algorithm, code, time, and space complexity.
Author Tarnxxvr
upvote
0 Thumbs Up
QuickSort on a Doubly Linked List MEDIUM
In this blog, you will learn to implement QuickSort on a Doubly Linked List in C++ language.
Memory Efficient Doubly Linked List EASY
This blog will cover the Memory-efficient doubly linked list with its implementation in C++.
Author Spider
upvote
0 Thumbs Up
Binary Tree to Doubly Linked List MEDIUM
 In this article, we will discuss the problem of converting the binary tree to a doubly-linked list conversion using in-order traversal.
Doubly Linked List From 2D Matrix MEDIUM
In this article, we will discuss how to construct a doubly-linked list from a 2D matrix with the help of various examples and explanations.
Rotate Doubly Linked List by N nodes MEDIUM
This article will discuss the problem “Rotate doubly linked list by N nodes”, approaches to solve this problem, and C++ implementation of the solution
Author Riya
upvote
0 Thumbs Up
Large number arithmetic using doubly linked list EASY
In this article, we will discuss how to perform large arithmetic operations using doubly linked list.
Count triplets in a sorted Doubly Linked List whose sum is equal to a given value x MEDIUM
In this blog, we have discussed a famous problem on doubly linked lists which is to count triplets in a sorted Doubly Linked List whose sum is equal to a given value x.
Check if a Doubly-Linked List of Characters is a Palindrome or Not MEDIUM
The following article discusses one of the popular problems involving a doubly linked list - Check if the Doubly Linked List is a Palindrome.
The Merge Sort for Doubly Linked List MEDIUM
In this blog, we will see how we can apply one of the most famous sorting algorithms, i.e., merge sort on a doubly linked list.
How to Find the Largest Element of a Doubly-Linked list MEDIUM
This blog discusses how we can find the largest element of a doubly-linked list. Read more to learn the solution and its implementation in detail.
Bubble Sort on Doubly Linked List MEDIUM
In this blog, we will understand the bubble sorting technique using one of the used data structures called Linked List, with its descriptive type called Doubly Linked List.
Remove Duplicates From an Unsorted Linked List MEDIUM
This article will discuss the Remove duplicates from an unsorted linked list problem and various ways to solve this problem, from the brute force approach to the efficient approach.
Create a Doubly Linked List from a Ternary Tree MEDIUM
In this blog we have created a doubly linked list from a ternary tree.
How to Remove Duplicates from an Unsorted Doubly Linked List MEDIUM
This blog discussed the methods to remove duplicates from an unsorted doubly linked list. Read the blog to learn these methods in detail
Sort the bitonic Doubly Linked List EASY
In this blog, we will learn to sort the bitonic doubly linked list.
Sorted Insertion in a sorted Doubly Linked List EASY
In this blog we have inserted a value in the doubly linked list at its correctly sorted position, ensuring that the resultant list is also sorted.
Sorted insert in a doubly-linked list with head and tail pointers EASY
In this article, we will discuss how to sort insert in a doubly-linked list with head and tail pointers, and its solution.
Sorted merge of two sorted doubly circular linked list EASY
In this article, we will discuss how to merge two sorted doubly circular linked lists.
Reverse the Doubly Linked List MEDIUM
In this blog, we will discuss the concept of reversing the doubly Linked list along with the implementation in Java.
Author Yogi21
upvote
0 Thumbs Up
Extract Leaves of a Binary Tree in a Doubly Linked List
In this blog, we will look at an interesting fusion of a binary tree and linked list via a famous interview question, i.e., Extract Leaves of a Binary Tree in a Doubly Linked List.
Bubble Sort for Linked List By Swapping Nodes EASY
This blog will teach you how to apply Bubble Sort For Linked List By Swapping Nodes.
Why is Quick Sort preferred for Arrays and Merge Sort for Linked Lists?
This article will explain the major reasons behind using quick sort for arrays and merge sort for linked lists.
Author Mehak Goel
upvote
10 Thumbs Up
LinkedList Implementation in JavaScript MEDIUM
In this article, we will look at implementing one of the most frequently used data structures, i.e. LinkedList in Javascript.
Implementing a Linked List in Java Using Class EASY
This blog will discuss implementing a linked list in Java using Class that includes implementation of insertion of nodes at all positions, and deletion of a node.
LinkedList descendingIterator in Java EASY
In this blog, we will discuss Linked List iterators and see the LinkedList descendingIterator in detail.
Generic Linked List in C
In this article, we will learn how to implement Generic Linked List in C.
LinkedList listIterator() Method in Java EASY
In this article we will discuss the LinkedList listIterator method in Java with the help of an example.
Java.util.LinkedList.offer(), offerFirst(), offerLast() in Java EASY
In this article, we will discuss the special functions of the LinkedList class in java i.e. Java.util.LinkedList.offer(), offerFirst(), offerLast() in detail with the help of some examples.
Function to check if a linked list is palindrome or not? MEDIUM
This article discusses an important interview question: check if a linked list is palindrome or not. Various approaches along with code in Java are discussed.
Finding the Middle Node of a Linked List MEDIUM
This article will discuss various approaches to find the Middle node of a linked List along with code in Java.
LinkedList removeFirst Method in Java
In this article, we will cover the LinkedList removeFirst method in Java to optimize the code.
LinkedList add() Method in Java EASY
This blog will cover the famous method of LinkedList add() method in Java along with the example.
LinkedList addAll() Method in Java
This blog will cover the famous method of LinkedList i.e., addAll() method in Java.
Linked List remove() Method in Java EASY
In this blog, we will discuss three variations of the linked list remove method along with its implementation in Java.
How to Convert all LinkedHashMap Values to a List in Java EASY
This article will discuss how we can convert all LinkedHashMap values to a list in java.
Author Riya
upvote
0 Thumbs Up
Program to Convert ArrayList to LinkedList in Java MEDIUM
In this blog, we will be discussing different methods to convert an ArrayList to LinkedList in java.
Java Program to Reverse a Linked List MEDIUM
This blog will cover the question to reverse the Linked List and discuss its Time and Space complexity.
Python Program to Reverse a Linked List MEDIUM
In this blog, we will see how to reverse a linked list using the python language.
Move all occurrences of an Element to end in a Linked List
In this blog, we will discuss a problem related to Linked List using multiple approaches.
Rearrange a Linked List in place MEDIUM
This article is about rearranging a linked list in place along with its approach and implementation in the C++ Programming language.
Rearrange a Linked List such that it contains alternating Minimum and Maximum elements
In this blog, we will discuss two different approaches to solve the problem related to the linked list.
Author Harsh
upvote
0 Thumbs Up
Sort a Linked List EASY
In this blog, we will learn how to apply sorting techniques like Bubble sort and merge sort on a linked list.
Floyd’s Cycle Detection Algorithm MEDIUM
This article discusses the Floyd cycle detection algorithm in detail with its implementation. The article also discusses important concepts and problems to master the Floyd cycle detection algorithm.
Author Yogi21
upvote
11 Thumbs Up
Subtract Two Numbers represented as Linked Lists
In this blog, we will discuss the approach to subtract two numbers considered as linked lists. Then we will discuss algorithms, pseudo-codes, and complexities analysis.
Length of a Linked List(Iterative and Recursive method)
This article aims to teach the reader how to calculate the length of a linked list using an iterative and recursive method.
Remove Duplicates from a Sorted Linked List. MEDIUM
In this blog, we will discuss one of the most asked questions in FAANG and other dream company’s interviews, i.e., remove duplicates from a sorted linked list.
Merge One Linked List into Another at Alternate Positions MEDIUM
This article will brief you on how to Merge one Linked List into another at alternate positions.
Author Urwashi27
upvote
0 Thumbs Up
Polynomials Using Linked List and Arrays MEDIUM
Read polynomial representation using linked list and the process of multiplication of two polynomials using a linked list along with its code implementation and examples.
Union and Intersection of two Linked Lists (using Merge Sort) MEDIUM
In this blog, we will cover the problem of finding the Union and Intersection of two Linked Lists using merge sort and its time and space complexities.
Union and Intersection of Two Linked Lists (Hashing) MEDIUM
This blog will cover the problem of finding the Union and Intersection of two Linked Lists using hashing and its time and space complexities.
Author coldz
upvote
0 Thumbs Up
Recursive selection sort for singly linked list (Swapping node links) EASY
In this blog, we will cover the problem of Recursive selection sort for singly linked list (Swapping node links) and its time and space complexities.
Decimal Equivalent of Binary Linked List
In this article, we will understand how we can convert a binary linked list to a decimal number.
Delete Alternate Nodes of a Linked List
In this article, we are going to discuss the implementation of deleting alternate nodes of a Linked list.
Delete N nodes after M nodes of a linked list
We will solve a question on a topic related to the Linked list.
Delete a node in the Linked List under the given conditions
We will discuss the function of deleting a node from a Singly Linked List in different Situations.
Adding two polynomials using Linked List
In this blog, we will discuss a problem related to LinkedList and we’ll discuss two different approaches to solve it.
Author Harsh
upvote
0 Thumbs Up
Add 1 to a number represented as Linked List
In this blog, we will discuss different approaches to see how to add 1 to a number considered as a linked list. Then we will discuss algorithms, pseudo-codes, and complexities analysis.
Given a Linked List of Line Segments, Remove middle points
In this article, we will remove middle points from the linked list of line segments.
Count Pairs from Two Linked Lists Whose Sum is Equal to a Given Value MEDIUM
This article will brief you to count pairs from two linked lists whose sum is equal to a given value with its implementation in different languages.
Construct a Linked List from a 2D Matrix MEDIUM
In this article, we will learn how to construct a linked list from a 2D matrix in an iterative approach.
Check whether the length of given Linked List is Even or Odd
In this blog, we will discuss different approaches to see if the length of a linked list is even or odd. Then we will discuss algorithms, pseudo-codes, and complexities analysis.
Intersection Point in Y shaped Linked Lists MEDIUM
This blog will discuss a DSA problem to find the intersection point in a Y-shaped Linked list which consists of two input linked lists.
Select a Random Node from a Linked List
This article discusses the problem: Select a Random Node from Linked List
Sort a Linked List of 0s,1s, and 2s EASY
This article will brief you on how to Sort a linked list of 0s,1s, and 2s along with its implementation in C++.
Delete the last occurrence of an item from Linked List
Linked Lists are an important topic from an interview perspective; this blog sheds light on an important interview problem, deleting the last occurrence of an item from Linked List with various examples and approaches.
Remove Duplicates from Linked List MEDIUM
This blog discussed the methods to remove duplicates from the sorted linked lists. Read the blog to learn these methods in detail.
Find a triplet from three Linked Lists with a sum equal to a given number
We will solve a question on a topic related to the Linked list.
Find the Sum of Last N Node of given Linked List MEDIUM
This blog will solve the one problem of a linked list for finding the sum of the last n nodes given a linked list along with its implementation and complexities.
Author Yogi21
upvote
0 Thumbs Up
First Node Loop in LinkedList MEDIUM
In this blog, we will discuss one of the essential Data Structures, i.e., Linked List. We are going to understand it with the help of one of the problem First Node Loop in LinkedList.
Author Yogi21
upvote
0 Thumbs Up
Merge K Sorted Linked Lists MEDIUM
This article will brief you on how to Merge K sorted linked lists along with its implementation in C++ language.
Author Urwashi27
upvote
0 Thumbs Up
Sublist Search (Search a linked list in another list) MEDIUM
This blog will cover the approach of searching a linked list in another list with its explanation and code in C++.
Author Spider
upvote
0 Thumbs Up
Union and Intersection of Two Linked Lists EASY
This article will discuss the Union and Intersection of two Linked Lists and various ways to solve this problem, starting from the brute force approach to the efficient approach
Reverse a Linked List Recursively MEDIUM
This article will brief you on how to Recursively reverse a Linked List along with the implementation in C++ language.
Author Urwashi27
upvote
0 Thumbs Up
Delete Nodes that have a Greater Value on the Right Side in the Linked List MEDIUM
This article will brief you on how to delete all nodes with a greater value on the right side along with the implementation in C++ language.
Make a Loop at the K-Th Position in the Linked List MEDIUM
This blog will cover the approach of making a loop at the K-th position in the linked list with a complete explanation and its C++ code.
Author Spider
upvote
0 Thumbs Up
Identical Linked Lists MEDIUM
This article will brief you on how to check Identical Linked Lists along with the implementation in C++.
Remove Every Kth Node Of The Linked List MEDIUM
This article will discuss the Remove every Kth node of the linked list problem and various ways to solve this problem, from the brute force approach to the efficient approach.
Merge a linked list into another linked list at alternate positions
This article covers the approach to merge a linked list into another linked list at alternate positions.
Author Alisha
upvote
3 Thumbs Up
Count Duplicates in a Linked List MEDIUM
In this blog, we will discuss a problem based on the Linked list data structure “Count duplicates in a Linked list.
Print Reverse of a Linked List Without Actually Reversing it MEDIUM
The following article discusses how to print a Linked List in reverse order without actually reversing it along with its implementation.
Author Alisha
upvote
4 Thumbs Up
Reverse alternate K nodes in a Singly Linked List
This article will discuss the Reverse alternate K nodes in a Singly Linked List problem and various ways to solve this problem, starting from the brute force approach to the efficient approach.
Convert A String To A Singly Linked List MEDIUM
In this blog, we will be looking for algorithms used to convert a string to a singly linked list.
Sort a Linked List that is Sorted Alternating Ascending and Descending Orders
In this blog, we will see an interesting application of sorting on linked list via question, sort a linked list that is sorted alternating ascending and descending order.
Largest and Smallest Element in a Singly Linked List MEDIUM
This article will discuss the problem of finding the “Largest and Smallest Element in a Singly Linked List”, an approach to solve this problem and the C++ implementation of the solution.
Author Riya
upvote
0 Thumbs Up
Rearrange a Linked List such that all Even and Odd Positioned Nodes are Together
This blog will discuss how to rearrange a linked list such that all even and odd positioned nodes are together.
Rearrange a Linked List in Zig Zag Fashion
This article will discuss all the points associated with rearranging a linked list in a zig-zag fashion. We will further look at an example of rearranging a linked list in a zig-zag fashion.
Partitioning a Linked List around a given Value and Keeping the Original Order HARD
This article will discuss the problem “Partitioning a linked list around a given value and keeping the original order”, approaches to solve this problem, and C++ implementation of the solution.
Author Riya
upvote
1 Thumbs Up
Pairwise Swap Elements of a Singly Linked List MEDIUM
This article will discuss the problem “Pairwise Swap Elements of a Singly Linked List”, recursive and iterative approaches to solve this problem, and the C++ implementation of the approaches.
Author Riya
upvote
0 Thumbs Up
Pairwise Swap Adjacent Nodes of a Linked List by Changing Pointers HARD
In this blog, you will learn how to do a pairwise swap of adjacent nodes in a Linked List by changing node’s pointers.
Pairwise Swap Elements of a Given Linked List by Changing Links HARD
This blog will cover the question of Pairwise swap elements of a given linked list by changing links and discussing its Time and Space complexity.
Add Two Numbers Represented by the Linked Lists | Part-1 MEDIUM
This blog will teach you how to add two numbers represented by a linked list using the brute approach.
Add Two Numbers Represented by the Linked Lists | Part-2 MEDIUM
This blog will teach you how to add two numbers represented by a linked list using the stack approach.
Add Two Numbers Represented by the Linked Lists | Part-3 MEDIUM
This blog will teach you how to add two numbers represented by a linked list using the space-efficient approach.
Create a List in Reverse Order by Merging Two Sorted Linked List
In this article, we are going to discuss the implementation of creating a list in reverse order by merging two sorted linked lists.
Design Browser History HARD
This article discusses the Design Browser History problem asked in a few competitive coding platforms.
Design Browser History (Doubly linked list)
The blog uses a Doubly-linked list data structure to design browser history.
Author HET FADIA
upvote
0 Thumbs Up
Clone a Linked List with Next and Random Pointer HARD
This article discusses the solution and various approaches to solving the problem - Clone a Linked List with next and random pointer. It also explains in detail the time and space complexities of each approach.
Detect Loop in Linked List MEDIUM
In this article, we will discuss the different methods and algorithms to solve one of the most common coding questions "detect loop in linked list".
Length of the Loop in the Linked List MEDIUM
In this article, we'll go through how to find the length of the loop in the linked list, which is one of the frequently asked questions in interviews.
Rotate a Linked List MEDIUM
In this article, we will discuss a popular interview question Rotate a linked list with detailed explanations and code in C++.
Flatten a Linked List
This article discusses the problem: Flattening a Linked List.
Flatten a Multi-level Linked List (Depth wise) MEDIUM
In this blog, we will learn about a Multi-level linked list and how to flatten a Multi-level linked list depth-wise.
Author rjt_007
upvote
1 Thumbs Up
Find the Minimum and Maximum Number of Nodes Between Critical Points MEDIUM
Learn to find the minimum and the maximum number of nodes in a linked list between any two critical points with a detailed algorithm and code in C++ language.
Sort a Linked List after Converting Elements to Their Squares
In this blog, we will discuss a coding problem based on linked lists. The problem involves applications of reversing a linked list and merging two linked lists.
Point to the next higher value node in a Linked List
This article introduces you to the linked list concept in data structures and how to point to the next higher value node in a linked list with detailed code and explanation.
Merge two sorted linked lists HARD
In this blog, we will discuss the approach to merge two sorted linked lists.
Flatten a multilevel linked list MEDIUM
In this tutorial, we’ll look at how a multilevel linked list can be converted into a single-level linked list in the C++ programming language.
Author Alisha
upvote
0 Thumbs Up

Recursion

When we repeat a similar process many times, it is known as Recursion. In Recursion, a function calls itself many times till it hits some base case, making a recursive tree where we pass every child's output is to its parent. Recursion is extremely useful in the cases of tree-based and graph-based problems
What is Recursion? EASY
Discover what recursion is with examples, types, needs, properties, applications, advantages, and disadvantages. Explore both direct and indirect recursion.
Author Tashmit
upvote
1 Thumbs Up
Recursion in Data Structure: How it Works Types EASY
Recursion in the data structure can be defined as a method through which problems are broken down into smaller sub-problems to find a solution. Read on!
Reverse a String Using Recursion EASY
In this article, we'll learn how to reverse a string using recursion in various programming languages. We'll provide step-by-step explanations & code examples to help you understand the process.
Recursive Functions MEDIUM
In this blog, we will understand recursive functions, how to implement them, their benefits, and the challenges of implementing the recursive functions.
What is Recursive Function in C EASY
In this article, we'll learn the concept of recursion in C, understand its basic structure, & see how it works with the help of examples. We'll also discuss the types of recursion, their applications, advantages, & disadvantages.
Tail Recursion EASY
This blog will learn about Tail Recursion and its implementation with code and examples.
Author Yogi21
upvote
1 Thumbs Up
Insert a Node in a Singly Linked List at a given Position using Recursion EASY
This article discusses how to insert a node in a Singly Linked List at a given position using Recursion.
Different Ways to Add Parentheses MEDIUM
In this article, we’ll learn the different ways of adding parentheses to group numbers and operators.
How to Find all the Palindromic Partitions of a String MEDIUM
In this blog, we will learn to find all the palindromic partitions of a string using recursion. We will look at the idea behind solving the problem and finally will see the implementation in C++.
Add Two Numbers Represented by a Linked List MEDIUM
Add numbers from linked lists. Learn how to add two numbers represented by linked lists through the traversal Approach, Stack, Backtracking and Recursive approach.
Difference between Iteration and Recursion EASY
This article will briefly discuss Iteration and recursion. Then finally, we will discuss the difference between Iteration and recursion.
Sum of the Combination of Numbers | Part-1 MEDIUM
This blog discusses the solution to the problem in which we have to find the combinations of numbers whose sum is equal to a given number. Read to learn more.
Sum of the combination of numbers | Part-2 MEDIUM
This blog discusses the method to find all the combinations of given numbers such that the sum is equal to a given number. Read to learn more.
Fibonacci Using Recursion EASY
The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones.
Program to Find Factorial of a Large Number Recursively MEDIUM
In this blog, we will learn how to solve a problem to find factorial of a large number recursively.
Count All Positive Integers Having N digits and the absolute difference between any two adjacent digits is K. HARD
In this article, we will discuss the problem of finding the count of all positive integers having N digits, and the absolute difference between two adjacent digits is K.
Print all unique combinations of setting N objects on an NxN board HARD
This article will discuss the solution to Print all unique combinations of setting N objects on an NxN board. Along with the solution, the article focuses on the time and space complexity of the solution.
Author apoorv007
upvote
1 Thumbs Up

Backtracking

When they said ‘Two steps forward, one step back, they were talking about backtracking. In backtracking, we try out various outcomes possible for one configuration. Once we are done with one configuration we backtrack to explore other configurations. The last time when you got stuck on one of the optional questions in an exam and tried to attempt the other one, you were actually backtracking. Another well-known application of a backtracking problem is the permutations of an array.
Introduction To Backtracking EASY
In this article, we discussed what backtracking is and the differences between brute force and recursion.
Author Neha_cf2c
upvote
2 Thumbs Up
Backtracking The Knight’s Tour Problem MEDIUM
This article discusses the approach and solution of one of the most important questions of Backtracking: Knight's tour problem topic i.e. The Knight's Tour, along with its code implementation in C++.
Min-Max Algorithm EASY
In this blog, we’ll explore the famous Min-Max Algorithm.
8 Queen Problem Using Backtracking HARD
The eight queens problem is the problem of placing eight chess queens on an n*n chessboard so that no two queens threaten each other.
Difference Between Backtracking and Branch and Bound EASY
In this article, we will learn about the concepts of backtracking & branch and bound, understand how they work, and compare their differences based on various parameters.
Generate Parentheses MEDIUM
In this article, we’ll learn how to generate all the combinations of well-formed parentheses.
Sudoku Solver MEDIUM
This is a two-part article covering the Sudoku Solver problem, asked in various competitions.
Word Break Problem using Backtracking MEDIUM
This article will discuss the word break problem using backtracking
Tug Of War MEDIUM
This article will discuss the Tug of war and learn about the concept behind the approach used to solve the tug of war problem.
Permutations MEDIUM
The blog discusses in detail generating all different possible permutations of numbers in a list. We’ll discuss many approaches and their implementation in Java to solve the problem and the time and space complexity for each method.
Author Zenith
upvote
0 Thumbs Up
Additive Number MEDIUM
This blog will discuss how we can solve one of the most asked problems in recursion, i.e., Additive Number.
Subsets EASY
This article will discuss the “subsets problem” in which we have to generate all the subsets of a given array of unique elements and a backtracking-based method to solve the problem.
Author Riya
upvote
0 Thumbs Up
Subsets (ii) MEDIUM
This article will discuss the “subsets (ii) problem” in which we have to generate all the non-empty unique subsets of a given array containing duplicate elements and a BitMasking approach for solving the problem.
Author Riya
upvote
1 Thumbs Up
Permutations of given String MEDIUM
Let’s find the permutation of a string using this article. Permutations are strings that contain the same characters but in a different order. Learn how to find all permutations of a string using a simple algorithm.
Minimize swaps of pairs of characters required such that no two adjacent characters in the string are the same EASY
This blog will discuss the problems in Backtracking, i.e., Minimize swaps of pairs of characters required such that no two adjacent characters in the string are the same.
Count All Prime Numbers that Can be Formed using Digits of a Given Number
In this article, we will solve a problem Count All Prime Numbers that Can be Formed using Digits of a Given Number using recursion and backtracking.
Generate all possible strings formed by replacing letters with given respective symbols
This article will discuss to generate all possible strings formed by replacing letters with given respective symbols and the approach to solve this problem.
Recursion and Backtracking Algorithm With Practice Problem EASY
In this blog, we will learn about Recursion and Backtracking Algorithm With Practice Problems.

Stack

When talking about Data Structures and algorithms associated with them, we need to talk about Stacks. A stack is a linear data structure, which follows a particular order in which operations can be performed. These operations may be FILO (First In Last Out) or LIFO(Last In First Out). Stacks can be implemented using arrays and linked lists manually, while languages like C++, Java, and Python have built-in classes, STLs, and libraries to implement them. In this category, we will look into all operations and problems related to Stacks.
Stack in Python (LIFO Queue) EASY
Stack is an important data structure that is used in all programming languages. This article describes a stack in Python(LIFO Queue), in particular.
Difference Between Stack And Queue Data Structures EASY
Stacks and queues are fundamental data structures. Stacks follow LIFO, while queues adhere to FIFO. In this article, Understand their differences and usage in programming.
Python Stack Using Doubly Linked List MEDIUM
In this blog, we will see how to implement the stack data structure using a doubly-linked list in Python.
Difference Between Stack and Tree
In this blog, we'll go through the definitions of stack and tree, as well as the differences between the two.
Difference between Array, Queue and Stack MEDIUM
In this article, we will discuss the difference between Array, Queue, and Stack in detail.
Infix, Postfix, and Prefix Conversion EASY
This article discusses infix, Postfix, and Prefix conversion. Read the algorithm, examples, advantages, and disadvantages.
Peek() Operation in Stack EASY
This article demonstrates the peek operation in stack and its algorithm with its implementation.
Expression Evaluation Using Stack MEDIUM
Often, a program for expression evaluation using stack is asked in the coding rounds of interviews. This article discusses the solution to this problem.
What is Stack in C EASY
In this article, we will learn about the stack data structure, its operations, time complexity, types, applications & implementation using arrays & linked lists.
Mergeable Stack EASY
In this blog, we will discuss the logic of how to create a mergeable stack and display them and their implementation in C++.
Implement Stack using a Singly Linked List EASY
This article covers the implementation of a stack using a singly linked list with examples and its C++ code.
Author Spider
upvote
3 Thumbs Up
Implement Stack Using a Doubly-Linked List MEDIUM
This article covers the implementation of a stack using a doubly-linked list with examples and its C++ code, and its time and space complexity.
Author Spider
upvote
1 Thumbs Up
Remove Adjacent Duplicates MEDIUM
This article discussed one of the most elementary problems based on stack, i.e., Removing Adjacent Duplicates along with its implementation.
Delete Middle Element Of The Stack EASY
In this article, we’ll see how to delete middle element of a stack without using any additional data structure and implementation in C++ language.
Program to Insert an Element at the Bottom of a Stack MEDIUM
This article will brief you on how to insert an element at the Bottom of a Stack.
Author Urwashi27
upvote
0 Thumbs Up
Reversing a Stack MEDIUM
In this blog we will discuss different method to Reverse a stack along with codes in Java. Read on to learn how to reverse a stack.
Next Greater/Smaller Element using a Monotonic Queue MEDIUM
This blog covers an interview problem: find the Next greater/smaller element using a monotonic queue using various approaches along with the Java code.
Author Riya
upvote
1 Thumbs Up
Add Two Numbers Represented by Stacks MEDIUM
This blog has information on how to add two numbers represented by stacks and how to implement it.
Python Program to Reverse a Stack EASY
This blog will cover the question to reverse a Stack and discuss its Time and Space complexity along with its implementation in Python language.
Two stacks in an array EASY
In this blog, we will discuss the approach to store the elements of two stacks in an array.
Iterative Tower of Hanoi MEDIUM
In the following article, we discuss an iterative approach to the popular Tower Of Hanoi problem with its implementation in C++, Java, Python, and its complexities.
Design a Minimum Stack MEDIUM
This blog discusses the solution to the problem of minimum stack in which we have to return the smallest element of a stack. Read the blog to learn more!
Trapping Rainwater MEDIUM
The following article discusses the popular Trapping Rainwater problems along with its possible solutions form most intuitive to most optimal ones with their implementations.
Count Array Elements having at Least One Smaller Element on its Left and Right Side MEDIUM
This article explains the solution to the problem of counting array elements having at least one smaller element on its left and right side.
Minimize the Length of a given String by Removing Subsequences Forming Valid Parenthesis HARD
In this article, we’ll learn how to solve an interesting problem i.e. Minimize the Length of a given String by Removing Subsequences Forming Valid Parenthesis along with its implementation.
Diagonal Traverse ii MEDIUM
In this blog, we will build logic for the Diagonal traversal of integers and see the various implementations of this problem.
Reverse level order traversal EASY
This article will make you learn about the reverse level order traversal in the tree data structure. In the end, it will include some of the FAQs.
Minimize a Binary String by Repeatedly Removing Even-Length Substrings of the Same Characters HARD
This blog will cover the question to minimize a binary string by repeatedly removing even length substrings of the same characters and discussing its Time and Space complexity.
Minimize a String By Removing All Occurrences of Another String
This article will discuss the Minimize a string by removing all occurrences of another string problem and various ways to solve this problem, from the brute force approach to the efficient approach.
Print Stack Elements from Top to Bottom EASY
In this article, we will see the common stack problem of printing the stack elements from top to bottom in java, c++, and python with time and space complexities.
Smallest String Obtained By Removing All Occurrences of 01 and 11 from the Binary String HARD
This article discusses the Problem of obtaining the smallest string possible by removing all occurrences of 01 and 11 from a binary string along with its implementation.
Count of Strings that do not Contain Arc Intersection MEDIUM
This article explains the solution to the problem to find the count of strings that do not contain arc intersections along with the implementation in C++.
Minimize Length of a String by Removing Pairs of Consecutive Increasing or Decreasing Digits HARD
This article discusses the Problem of  Minimising Length of a String by Removing Pairs of Consecutive Increasing or Decreasing Digits
Special Stack Data Structure Design and Implementation MEDIUM
This blog is related to the famous Stack Problem "Special Stack Data Structure," which contains an additional getMin() operation.
Application of Stack in Data Structure EASY
In this article, we will cover Stack in Data Structure in detail, including the application of stack, its advantages and disadvantages.
Number of NGEs to the right
In this blog, we will discuss the approach to print the number of next greater elements to the right of the given index element.
K stacks in a single array EASY
In this blog, we will discuss the logic of how to implement k stacks in a single array and the code of it in c++.
Largest Rectangle in Histogram EASY
In this article, we’ll learn how to find the largest rectangle in a histogram.
Reverse a number using Stack EASY
In this article, we will discuss a very interesting problem: we have to reverse the decimal number given to us using the stack data structure.
Reverse a Linked List using Stack MEDIUM
This article covers the approach of reversing a linked list using stack data structure with complete explanation and its implementation in C++.
Author Spider
upvote
1 Thumbs Up
Count Subarrays for every Array Element in Which they are the Minimum MEDIUM
In this blog, we will discuss the problem of counting subarrays for every array element in which they are the minimum.
Check if stack elements are pairwise consecutive EASY
This article explains the problem “check if stack elements are pairwise consecutive” with an example.
Distance from Next Greater Element MEDIUM
In this article, we will discuss the problem distance from next greater element along with its implementation.
Convert Given Binary String S to all 1s by Changing all 0s to 1s in Range [i+1, i+K] if S[i] is ‘1’ MEDIUM
https://www.codingninjas.com/codestudio/library/convert-given-binary-string-s-to-all-1s-by-changing-all-0s-to-1s-in-range-i-1-i-k-if-s-i-is-1
Count of Groups of Consecutive 1s in a given Binary String MEDIUM
This blog will discuss the problem named count of groups of consecutive 1s in a given binary string with an example and implementation.
Check if a String Consisting Only of a, b, c can be made Empty by Removing Substring “abc” Recursively MEDIUM
This blog will cover the question to check if a string consisting only of a, b, c can be made empty by removing substring “abc” recursively and discussing its Time and Space complexity.
Maximum Range Length such that A[i] is Maximum in the given Range for all i from [1, N] MEDIUM
In this article, we will discuss the problem of Maximum range length such that A[i] is maximum in the given range for all i from [1, N] along with its implementation.
Check if a String can be Emptied by Removing all Subsequences of the Form “10” MEDIUM
This article discusses how to check if a string can be emptied by removing all the subsequences of the form "10" along with its implementation in java language.
Lexicographically Smallest String MEDIUM
This blog will discuss the problem to find the lexicographically smallest K-length subsequence from a given string in C++, Java, and Python language along with the time and space complexity.
Reverse an Array using Stack EASY
This blog will cover the question to reverse an array using a Stack and discuss its Time and Space complexity along with its implementation in java language.