Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Dynamic Programming
1.5k+ articles
Data Structures
1.1k+ articles
DSA
>
Algorithms
Algorithms
14.6k+ posts
Popular Articles
Recent Articles
Sorting Algorithms
Last Updated: 14 April 2025
A Sorting Algorithm is used to rearrange a given array or list of elements in an order. For example, a given array [10, 20, 5, 2] becomes [
...read more
Sorting
DSA
Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, ...
Last Updated: 20 February 2025
The list in this article contains more than 200 questions according to the popularity in interview experiences. Arrays Subarray with given
...read more
Algorithms
interview-preparation
placement preparation
Data Structures
GFG-Update
GFG Sheets
DSA
Top 50 Array Coding Problems for Interviews
Last Updated: 26 March 2025
Array is one of the most widely used data structure and is frequently asked in coding interviews to the problem solving skills. The followin
...read more
Arrays
Algorithms
Data Structures
GFG Sheets
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
C++ Programs
2.5k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Dynamic Programming
1.5k+ articles
Data Structures
1.1k+ articles
Bitwise Operators in C
Last Updated: 10 January 2025
In C, the following 6 operators are bitwise operators (also known as bit operators as they work at the bit-level). They are used to perform
...read more
Bit Magic
Bitwise-XOR
cpp-operator
C Language
C++
C-Operators
DSA
Bubble Sort Algorithm
Last Updated: 21 January 2025
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This a
...read more
redBus
Sorting
Algorithms-BubbleSort
BubbleSort
DSA
Selection Sort
Last Updated: 09 December 2024
Selection Sort is a comparison-based sorting algorithm. It sorts an array by repeatedly selecting the smallest (or largest) element from the
...read more
Sorting
Medlife
DSA
Binary Search Algorithm - Iterative and Recursive Implementation
Last Updated: 16 April 2025
Binary Search Algorithm is a searching algorithm used in a sorted array by repeatedly dividing the search interval in half. The idea of bina
...read more
Oracle
Qualcomm
SAP Labs
Binary Search
Infosys
Divide and Conquer
Searching
TCS
Wipro
Accenture
DSA
DSA Tutorials
Quick Sort
Last Updated: 17 April 2025
QuickSort is a sorting algorithm based on the Divide and Conquer that picks an element as a pivot and partitions the given array around the
...read more
Adobe
Qualcomm
Samsung
Goldman Sachs
SAP Labs
Target Corporation
HSBC
Divide and Conquer
Sorting
Quick Sort
DSA
DSA Tutorials
Heap Sort - Data Structures and Algorithms Tutorials
Last Updated: 02 January 2025
Heap sort is a comparison-based sorting technique based on Binary Heap Data Structure. It can be seen as an optimization over selection so
...read more
Amazon
Oracle
Samsung
Belzabar
Intuit
SAP Labs
Visa
24*7 Innovation Labs
Sorting
Heap
Heap Sort
DSA
Merge Sort - Data Structure and Algorithms Tutorials
Last Updated: 25 April 2025
Merge sort is a popular sorting algorithm known for its efficiency and stability. It follows the divide-and-conquer approach. It works by
...read more
Microsoft
Amazon
Oracle
Qualcomm
Goldman Sachs
Snapdeal
Paytm
Target Corporation
Grofers
Divide and Conquer
Sorting
Boomerang Commerce
Merge Sort
DSA
Insertion Sort Algorithm
Last Updated: 22 March 2025
Insertion sort is a simple sorting algorithm that works by iteratively inserting each element of an unsorted list into its correct position
...read more
Cisco
Dell
MAQ Software
Juniper Networks
Grofers
Sorting
Veritas
Accenture
DSA
Dijkstra's Algorithm to find Shortest Paths from a Source to all
Last Updated: 27 April 2025
Given a weighted undirected graph represented as an edge list and a source vertex src, find the shortest path distances from the source vert
...read more
Amazon
Adobe
Morgan Stanley
Dijkstra
Samsung
Cisco
Graph
Accolite
Vizury Interactive Solutions
Greedy
Shortest Path
DSA
0/1 Knapsack Problem
Last Updated: 12 March 2025
Given n items where each item has some weight and profit associated with it and also given a bag with capacity W, [i.e., the bag can hold at
...read more
Snapdeal
Zoho
MakeMyTrip
Visa
Dynamic Programming
knapsack
DSA
Depth First Search or DFS for a Graph
Last Updated: 29 March 2025
In Depth First Search (or DFS) for a graph, we traverse all adjacent vertices one by one. When we traverse an adjacent vertex, we completely
...read more
Graph
Algorithms
DFS
graph-basics
DSA
Maximum Subarray Sum - Kadane's Algorithm
Last Updated: 28 February 2025
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
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 !