Learn DSADSAContests
coding75 logo
LeetCode POTDPOTDSheets
coding75 Pro
coding75 logo
Dashboard
Learn DSA
Course RoadmapFlow
DSA Topic TreeNew 🚀
Contest SolutionsPractice
Practice Sheets
MasterclassesLive 👨🏻‍💻

coding75 ProPRO

Live Classes & Placement Guidance

coding75 logo

The premier developer platform for mastering Data Structures & Algorithms, exploring contest editorials, building ATS-ready resumes, and accelerating your tech career.

Connect & Community

DSA & Contests

  • Learn DSA
  • Contest Solutions
  • LeetCode POTDDaily
  • Practice Sheets
  • MasterclassesSoon

Interview Prep

  • Portfolio Projects
  • CS Fundamentals
  • System DesignSoon
  • Interview ExperiencesSoon
  • Mock InterviewsSoon

Career & Pro

  • Jobs & Internships
  • Resume BuilderATS
  • coding75 Pro
  • Submit Feedback
© 2026coding75•crackDSA™•Maa Lalita Edtech Private Limited. All Rights Reserved.
Privacy PolicyTerms & ConditionsContact Support
Registered Office: Kanpur 208021•Regional Office: Indiranagar, Bangalore, 560008
Maa Lalita Edtech Private Limited
Contests/CodeChef/Starters 127/Superincreasing
PrevNext
CodeChefCodeChef
3 Star
Starters 127

Superincreasing

ArrayMathPrefix Sum
Loading...
Solve on CodeChef

Problem Statement

Official algorithmic problem description and constraints.

Open on CodeChef

An array A of length N containing positive integers is said to be superincreasing if each element is strictly greater than the sum of all the previous elements.


That is, for each i from 2 to N, the condition Ai>A1​+A2+…+Ai−1should hold.

For example, A=[3,5,10,42] is a superincreasing array, while A=[1,2,3] is not (3=1+2, but it should be strictly greater than that).Chef had a superincreasing array A of length N with him a long time ago, but has forgotten all its elements now.

The only piece of information he recalls is that the value X occurred at index K of the array, i.e, AK​=X.

Can you tell Chef if he recalls correctly?

That is, does there exist a superincreasing array A of length N such that AK=X?

Solutions & Walkthrough

Detailed video explanations, mathematical intuition, and clean C++ implementation code.

Connecting secure classroom stream...
Back to Starters 127
Previous ProblemNext Problem