Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.7K+ articles
Interview Experiences
14.5K+ articles
Amazon
1.9K+ articles
Microsoft
810+ articles
Samsung
317+ articles
Accolite
306+ articles
MakeMyTrip
214+ articles
Snapdeal
166+ articles
Hike
99+ articles
FactSet
123+ posts
Recent Articles
Check for Power of 2
Last Updated: 21 March 2026
Given a positive integer n, check whether it is a power of 2 or not.Examples: Input : n = 16Output : trueExplanation: 24 = 16 Input : n = 42Output : falseExplanation: 42...
read more
Bit Magic
Mathematical
DSA
Qualcomm
Samsung
SAP Labs
FactSet
Majority Element
Last Updated: 28 March 2026
Given an array arr[] of size n, find the element that appears more than ⌊n/2⌋ times. If no such element exists, return -1.Examples:Input: arr[] = [1, 1, 2, 1, 3, 5, 1]Outp...
read more
DSA
Arrays
Majority Element
Moore's Voting Algorithm
Microsoft
Amazon
Samsung
D-E-Shaw
Accolite
MakeMyTrip
FactSet
Two Sum - Pair with given Sum
Last Updated: 17 September 2026
Given an array arr[] of n integers and a target value, check if there exists a pair whose sum equals the target. Examples: Input: arr[] = [0, -1, 2, -3, 1], target = -2Out...
read more
Backtracking
Hash
Recursion
DSA
Arrays
Microsoft
Amazon
Morgan Stanley
Flipkart
Accolite
Zoho
Hike
SAP Labs
CarWale
FactSet
Infosys
Amazon-Question
CarWale-Question
ABCO
Wipro
2Sum
1
2
3
4
5
6
7
8
9