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
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
1.9k+ articles
Searching
1.7k+ articles
School Programming
1.4k+ articles
Matrix
1.2k+ articles
array-traversal-question
86 posts
Popular Articles
Recent Articles
Breadth First Traversal ( BFS ) on a 2D array
Last Updated: 31 May 2021
Given a matrix of size M x N consisting of integers, the task is to print the matrix elements using Breadth-First Search traversal.Examples:
...read more
Graph
Matrix
Technical Scripter
Competitive Programming
BFS
array-traversal-question
Technical Scripter 2020
DSA
Chocolate Distribution Problem | Set 2
Last Updated: 14 December 2021
Given an array A[] consisting of N integers, where each value represents the marks of the ith student, the task is to find the minimum numbe
...read more
Arrays
Flipkart
Mathematical
interview-preparation
array-traversal-question
DSA
Rearrange array by interchanging positions of even and odd elements in the given array
Last Updated: 02 March 2022
Given an array arr[] of N positive integers with an equal number of even and odd elements. The task is to use in-place swapping to interchan
...read more
Arrays
Google
Searching
interview-preparation
array-rearrange
School Programming
two-pointer-algorithm
array-traversal-question
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Algorithms
1.9k+ articles
Searching
1.7k+ articles
School Programming
1.4k+ articles
Matrix
1.2k+ articles
Search insert position of K in a sorted array
Last Updated: 03 March 2025
Given a 0-based sorted arrayarr[] consisting ofndistinct integers and an integerk, the task is to find the index of k, if it is present in t
...read more
Arrays
Binary Search
Searching
array-rearrange
array-traversal-question
DSA
Check Sudoku solution is valid or not
Last Updated: 07 October 2024
Given a solution of Sudoku puzzle, the task is to check whether the given sudoku solution is valid or not. A valid solution requires that ea
...read more
Greedy
Pattern Searching
Searching
Matrix
frequency-counting
array-traversal-question
submatrix
DSA
Search an element in a reverse sorted array
Last Updated: 29 March 2024
Given an array arr[] sorted in decreasing order, and an integer X, the task is to check if X is present in the given array or not. If X is p
...read more
Arrays
Binary Search
Algorithms
Searching
Sorting
array-traversal-question
DSA
Find all matrix elements which are minimum in their row and maximum in their column
Last Updated: 28 December 2022
Given a matrix mat[][] of size M * N, the task is to find all matrix elements which are minimum in their respective row and maximum in their
...read more
Searching
Hash
Matrix
cpp-unordered_set
array-traversal-question
DSA
Sum of non-diagonal parts of a square Matrix
Last Updated: 12 November 2023
\Given a square matrix of size N X N, the task is to find the sum of all elements at each portion when the matrix is divided into four parts
...read more
Arrays
Analysis of Algorithms
Mathematical
Matrix
Puzzles
School Programming
C++ Programs
array-traversal-question
DSA
C/C++ Puzzles
Move all zeros to start and ones to end in an Array of random integers
Last Updated: 02 August 2022
Given an array arr[] of random integers, the task is to push all the zero's in the array to the start and all the one's to the end of the ar
...read more
Arrays
Greedy
Constructive Algorithms
array-traversal-question
DSA
Find the first maximum length even word from a string
Last Updated: 21 September 2023
Given a string of words separated by spaces. The task is to find the first maximum length even word from the string. Eg: “You are given an
...read more
Strings
Goldman Sachs
Data Structures
array-traversal-question
DSA
Array element with minimum sum of absolute differences
Last Updated: 23 November 2023
Given an array arr[] of N integers, the task is to find an element x from the array such that |arr[0] - x| + |arr[1] - x| + |arr[2] - x| + .
...read more
Arrays
Sorting
C++ Programs
median-finding
array-traversal-question
DSA
Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
Last Updated: 13 January 2022
Given an array arr[] of non-negative integers, the task is to count pairs of indices (i, j such that arr[i] * arr[j] arr[i] + arr[j] where
...read more
Algorithms
Technical Scripter
Technical Scripter 2018
array-traversal-question
DSA
Largest palindromic number in an array
Last Updated: 21 September 2023
Given an array of non-negative integers arr[]. The task is to find the largest number in the array which is palindrome. If no such number ex
...read more
Arrays
Mathematical
palindrome
array-traversal-question
DSA
Students with maximum average score of three subjects
Last Updated: 16 October 2023
Given a file containing data of student name and marks scored by him/her in 3 subjects. The task is to find the list of students having the
...read more
Arrays
Strings
Java Programs
array-traversal-question
DSA
Subtraction in the Array
Last Updated: 01 August 2022
Given an integer k and an array arr[], the task is to repeat the following operation exactly k times:Find the minimum non-zero element in th
...read more
Arrays
Sorting
array-traversal-question
DSA
1
2
3
4
5
6
>>
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 !