Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
DSA
22.3k+ articles
Experiences
16.9k+ articles
Interview Experiences
13.5k+ articles
Arrays
6.4k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
Accolite
290+ articles
Adobe
270+ articles
MakeMyTrip
200+ articles
SAP Labs
190+ articles
Paytm
190+ posts
Popular Articles
Recent Articles
Coin Change - Minimum Coins to Make Sum
Last Updated: 15 November 2024
Given an array of coins[] of size n and a target value sum, where coins[i] represent the coins of different denominations. You have an infin
...read more
Amazon
Morgan Stanley
Oracle
Samsung
Snapdeal
Paytm
Accolite
Synopsys
Dynamic Programming
Mathematical
dp-coin-change
DSA
C Program to Check for Palindrome String
Last Updated: 03 January 2025
A string is said to be palindrome if the reverse of the string is the same as the string. In this article, we will learn how to check whethe
...read more
Strings
Morgan Stanley
Paytm
FactSet
palindrome
C Language
TCS
C-String
C Programs
C Basic Programs
DSA
Basic Coding Problems
Move all zeros to end of array
Last Updated: 15 November 2024
Given an array of integers arr[], the task is to move all the zeros to the end of the array while maintaining the relative order of all non-
...read more
Arrays
Amazon
Samsung
Paytm
Linkedin
SAP Labs
Bloomberg
DSA
Similar Topics
DSA
22.3k+ articles
Experiences
16.9k+ articles
Interview Experiences
13.5k+ articles
Arrays
6.4k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
Accolite
290+ articles
Adobe
270+ articles
MakeMyTrip
200+ articles
SAP Labs
190+ articles
Stock Buy and Sell - Multiple Transaction Allowed
Last Updated: 17 December 2024
Given an array prices[] of size n denoting the cost of stock on each day, the task is to find the maximum total profit if we can buy and sel
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Directi
Samsung
Goldman Sachs
Walmart
Paytm
Accolite
Hike
Sapient
SAP Labs
MakeMyTrip
Quikr
Ola Cabs
Pubmatic
Swiggy
DSA
Convert Infix expression to Postfix expression
Last Updated: 06 December 2024
Write a program to convert an Infix expression to Postfix form.Infix expression: The expression of the form "a operator b" (a + b) i.e., whe
...read more
Amazon
Samsung
VMWare
Paytm
Stack
expression-evaluation
DSA
Merge Sort - Data Structure and Algorithms Tutorials
Last Updated: 02 January 2025
Merge sort is a sorting algorithm that follows the divide-and-conquer approach. It works by recursively dividing the input array into sma
...read more
Microsoft
Amazon
Oracle
Qualcomm
Goldman Sachs
Snapdeal
Paytm
Target Corporation
Grofers
Divide and Conquer
Sorting
Boomerang Commerce
Merge Sort
DSA
Number of Islands
Last Updated: 17 August 2024
Given a binary 2D matrix, find the number of islands. A group of connected 1s forms an island. For example, the below matrix contains 4 isla
...read more
Microsoft
Amazon
Samsung
D-E-Shaw
Citrix
Graph
Snapdeal
Paytm
Linkedin
Informatica
Visa
Ola Cabs
Opera
Matrix
Streamoid Technologies
DFS
graph-connectivity
DSA
Coin Change - Count Ways to Make Sum
Last Updated: 16 November 2024
Given an integerarray of coins[] of size nrepresenting different types of denominations and an integer sum, the task is to count all combina
...read more
Microsoft
Morgan Stanley
Samsung
Snapdeal
Paytm
Accolite
Dynamic Programming
Greedy
Mathematical
DSA
Print a given matrix in spiral form
Last Updated: 21 December 2024
Given a matrix mat[][] of size m x n, the task is to print all elements of the matrix in spiral form.Examples:Input:mat[][] = [[1, 2, 3,
...read more
Microsoft
Amazon
Morgan Stanley
Oracle
D-E-Shaw
Snapdeal
Paytm
Accolite
Zoho
Nagarro
MAQ Software
BrowserStack
MakeMyTrip
nearbuy
Matrix
Amazon-Question
Snapdeal-Question
spiral
pattern-printing
Arrays
DSA
Basic Coding Problems
Rat in a Maze
Last Updated: 18 July 2024
We have discussed Backtracking and Knight's tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be solve
...read more
Amazon
Flipkart
Drishti-Soft
Yatra.com
Expedia
Paytm
MakeMyTrip
Visa
Grofers
Numerify
Backtracking
Matrix
Zycus
DSA
Find duplicates in O(n) time and O(n) extra space
Last Updated: 24 December 2024
Given an array arr[] of n elements that contains elements from 0 to n-1, with any of these numbers appearing any number of times. The task i
...read more
Arrays
Amazon
Qualcomm
Paytm
Zoho
DSA
Sort an array of 0s, 1s and 2s - Dutch National Flag Problem
Last Updated: 14 October 2024
Given an array arr[] consisting of only 0s, 1s, and 2s. The task is to sort the array, i.e., put all 0s first, then all 1s and all 2s in las
...read more
Arrays
Microsoft
Amazon
Adobe
Morgan Stanley
Qualcomm
Walmart
Yatra.com
Snapdeal
Paytm
Hike
MAQ Software
SAP Labs
MakeMyTrip
Ola Cabs
Sorting
DSA
Merge Sort for Linked Lists
Last Updated: 19 September 2024
Given asingly linked list, The task is tosortthe linked list innon-decreasingorder usingmerge sort.Examples: Input: 40 - 20 - 60 - 10 - 50 -
...read more
Linked List
Microsoft
Adobe
Paytm
Accolite
MAQ Software
Sorting
Veritas
Merge Sort
Linked-List-Sorting
DSA
Reverse words in a string
Last Updated: 26 September 2024
Given a string str, the task is to reverse the order of the words in the given string. Notethatstrmay contain leading or trailing dots(.) or
...read more
Strings
Microsoft
Amazon
Adobe
Morgan Stanley
Goldman Sachs
Cisco
Paytm
Accolite
Payu
Zoho
MAQ Software
SAP Labs
MakeMyTrip
Reverse
Wipro
school-programming
CBSE - Class 11
DSA
Search in a Sorted and Rotated Array
Last Updated: 07 December 2024
Given a sorted and rotated array arr[] of n distinct elements, the task is to find the index of given key in the array. If the key is not pr
...read more
Arrays
Microsoft
Amazon
Adobe
Flipkart
Samsung
D-E-Shaw
Snapdeal
Paytm
Hike
BankBazaar
SAP Labs
MakeMyTrip
Binary Search
FactSet
Searching
Times Internet
rotation
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !