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
Arrays
6.4k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
interview-preparation
340+ articles
Accolite
290+ articles
MakeMyTrip
200+ articles
Snapdeal
150+ articles
VMWare
110+ articles
Hike
99 articles
Amazon-Question
37 posts
Popular Articles
Recent Articles
Javascript Program for Largest Sum Contiguous Subarray
Last Updated: 30 August 2024
Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers that has the largest sum.Kadane'
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Samsung
D-E-Shaw
Walmart
VMWare
Snapdeal
Accolite
Payu
Zoho
Hike
MakeMyTrip
Visa
Housing.com
Ola Cabs
24*7 Innovation Labs
MetLife
FactSet
Teradata
Dynamic Programming
OYO
Amazon-Question
Visa-Question
subarray
Web Technologies
JavaScript
subarray-sum
DSA
Maximum Tip Calculator
Last Updated: 15 February 2023
Rahul and Ankit are the only two waiters in the Royal Restaurant. Today, the restaurant received N orders. The amount of tips may differ whe
...read more
Arrays
Amazon
Dynamic Programming
Hash
Amazon-Question
interview-preparation
knapsack
Recursion
DSA
Maximize profit possible by selling M products such that profit of a product is the number of products left of that supplier
Last Updated: 24 June 2024
Given an array arr[] consisting of N positive integers, such that arr[i] represents the number of products the ith supplier has and a positi
...read more
Arrays
Greedy
Mathematical
Heap
Amazon-Question
interview-preparation
priority-queue
DSA
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Amazon
1.8k+ articles
Microsoft
790+ articles
interview-preparation
340+ articles
Accolite
290+ articles
MakeMyTrip
200+ articles
Snapdeal
150+ articles
VMWare
110+ articles
Hike
99+ articles
Minimum time required to schedule K processes
Last Updated: 30 June 2023
Content Removed....
...read more
Arrays
Amazon
Mathematical
Heap
Hash
Amazon-Question
interview-preparation
DSA
Minimum moves required to come out of a grid safely
Last Updated: 16 July 2021
Given a grid mat[][] of size M * N, consisting of only 0s, 1s, and 2s, where 0 represents empty place, 1 represents a person and 2 represent
...read more
Amazon
Queue
Searching
Matrix
Amazon-Question
interview-preparation
BFS
DSA
Lexicographically largest string possible consisting of at most K consecutive similar characters
Last Updated: 28 December 2022
Given a string S and an integer K, the task is to generate lexicographically the largest string possible from the given string, by removing
...read more
Strings
Amazon
Greedy
Searching
Hash
Amazon-Question
frequency-counting
DSA
Implement Undo and Redo features of a Text Editor
Last Updated: 27 August 2021
Given an array of strings Q[], consisting of queries of the following types:“WRITE Xâ€: Write a character X into the document.“UNDOâ€:
...read more
Arrays
Strings
Amazon
Stack
Amazon-Question
interview-preparation
Data Structures
cpp-stack
DSA
Merge two unsorted linked lists to get a sorted list
Last Updated: 27 December 2021
Given two unsorted Linked List, the task is to merge them to get a sorted singly linked list.Examples:Input: List 1 = 3 - 1 - 5, List 2 = 6-
...read more
Linked List
Interview Experiences
Algorithms
Sorting
Competitive Programming
Internship
Amazon-Question
interview-preparation
Programming Language
C++
Data Structures
Placements
CS - Placements
C++ Programs
DSA
Experiences
Find i’th index character in a binary string obtained after n iterations | Set 2
Last Updated: 29 November 2023
Given a decimal number m, convert it into a binary string and apply n iterations, in each iteration 0 becomes “01†and 1 becomes “10â€
...read more
Bit Magic
Amazon
Algorithms
Amazon-Question
math
Algorithms-Bit Algorithms
DSA
Check if two trees are Mirror
Last Updated: 24 September 2024
Given two Binary Trees, the task is to check if two trees are mirror of each other or not. For two trees ‘a’ and ‘b’ to be mirror im
...read more
Tree
Amazon
D-E-Shaw
Hike
MakeMyTrip
Stack
Queue
STL
Amazon-Question
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
Reverse a Linked List in groups of given size
Last Updated: 12 September 2024
Given aSingly linked listcontainingnnodes. The task is toreverseevery group ofknodes in the list.If the number of nodes is not a multiple of
...read more
Linked List
Microsoft
Amazon
Adobe
VMWare
Snapdeal
Paytm
Accolite
Hike
SAP Labs
MakeMyTrip
Amazon-Question
Yatra.com-Question
Snapdeal-Question
Reverse
DSA
Invert Binary Tree - Change to Mirror Tree
Last Updated: 06 January 2025
Given a binary tree, the task is to convert the binary tree to its Mirror tree. Mirror of a Binary Tree T is another Binary Tree M(T) with l
...read more
Tree
Trees
Mirror Tree
Convert to Mirror
Get the Mirror
Microsoft
eBay
Amazon
Adobe
Morgan Stanley
Samsung
VMWare
Myntra
Belzabar
Snapdeal
Paytm
Accolite
SAP Labs
tree-traversal
Ola Cabs
Amazon-Question
Snapdeal-Question
Paytm-Question
Myntra-Question
eBay-Question
Prop-Tiger-Question
Belzabar-Question
OLA-Question
VMWare-Question
cpp-queue
DSA
Maximum Subarray Sum - Kadane's Algorithm
Last Updated: 11 September 2024
Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.Examples:Input: arr[] = {2, 3, -8, 7, -1,
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Samsung
D-E-Shaw
Walmart
VMWare
Snapdeal
Accolite
Payu
Zoho
Hike
MakeMyTrip
Visa
Housing.com
Ola Cabs
24*7 Innovation Labs
MetLife
FactSet
Teradata
Dynamic Programming
OYO
Amazon-Question
Visa-Question
subarray
subarray-sum
DSA
Two Sum - Pair with given Sum
Last Updated: 21 December 2024
Given an array arr[] of n integers and a target value, the task is to find whether there is a pair of elements in the array whose sum is equ
...read more
Arrays
Microsoft
Amazon
Morgan Stanley
Flipkart
Accolite
Zoho
Hike
SAP Labs
CarWale
FactSet
Infosys
Backtracking
Hash
Amazon-Question
CarWale-Question
ABCO
Recursion
Wipro
DSA
2Sum
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
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 !