3890. Integers With Multiple Sum of Two Cubes
You are given an integer n. An integer x is considered good if there exist at least two distinct pairs (a, b) such that: - a and b are positive integers. - a <= b - x = a3 + b3 Return an array containing all good integers less than or equal to n, sorted in ascending order. Example 1: Input: n = 4104 Output: [1729,4104] Explanation: Among integers less than or equal to 4104, the good in
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start