geeksforgeeks
search icon
  • Courses
  • Tutorials
  • Interview Prep
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Similar Topics
Web Technologies32.1K+ articles
DSA20.7K+ articles
Interview Experiences14.5K+ articles
Amazon1.9K+ articles
Microsoft810+ articles
Samsung317+ articles
Accolite306+ articles
MakeMyTrip214+ articles
Snapdeal166+ articles
Hike99+ articles

FactSet

123+ posts
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
article_image
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
article_image
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
123456789
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved