Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Sorting
1.8K+ articles
Tree
1.4K+ articles
Graph
953+ articles
Queue
371+ articles
Heap
280+ articles
math
137+ articles
Data Structures-Array
136+ posts
Recent Articles
Popular Articles
Real-life Applications of Data Structures and Algorithms (DSA)
Last Updated: 31 July 2024
You may have heard that DSA is primarily used in the field of computer science. Although DSA is most commonly used in the computing field, its application is not restricte...
read more
Linked List
Tree
Graph
Stack
Queue
Heap
Hash
Matrix
Data Structures
DSA
Arrays
Data Structures
Data Structures-Binary Trees
Data Structures-Tree Traversals
Data Structures-Linked List
Data Structures-Stack
Data Structures-Queue
Data Structures-Graph
Data Structures-Balanced Binary Search Trees
Data Structures-Hash
Data Structures-Array
Data Structures-Misc
Data Structures-B and B+ Trees
Data Structures-Heap
Find number of prime sorted subarrays
Last Updated: 22 August 2023
Given an array arr[] of length N, the task is to find the number of subarrays that consists of prime numbers in ascending order.Examples:Input: arr[] = [8, 5, 6, 3, 7]Outp...
read more
Sorting
DSA
Arrays
Prime Number
subarray
sliding-window
Data Structures-Array
Sequence Transformation by Cyclic Shifting
Last Updated: 03 October 2023
Given two arrays of positive integers A[] and B[], both of length N, the task is to determine whether it is possible to transform sequence A into sequence B by repeating t...
read more
Competitive Programming
DSA
Arrays
Data Structures-Array
Minimum operations for balancing Array difference
Last Updated: 23 December 2023
Given an integer array A[] consisting of N integers, find the minimum number of operations needed to reduce the difference between the smallest and largest elements in the...
read more
Sorting
Competitive Programming
DSA
Arrays
Data Structures-Array
top-dsa-problems
Determining Mobile Phone Charging Time Based on Rates
Last Updated: 05 December 2023
Given an initial charge amount C in a mobile phone, it undergoes varying charging rates per minute, as specified within specific ranges 'Rate' based on the current charge ...
read more
DSA
Arrays
MakeMyTrip
math
Data Structures-Array
Minimize the Sum of Absolute Costs of an Array Optimally
Last Updated: 18 January 2024
Given an array arr[] of costs, your task is to minimize the sum of the absolute differences between consecutive costs by performing following operation at most once. Opera...
read more
DSA
prefix-sum
math
Data Structures-Array
suffix-sum
1
2
3
4
...
10
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 !