← All problemsSign in

Special numbers

Just as 221B is a special number for all those who are Sherlocked this problem also has special numbers. Consider Special numbers are those which have exactly three set bits. There is an array of N numbers with initial value 0. But ith bit of jth number can be flipped such that the value of that number does not exceed 1018 you need to output the length of longest subarray in the given range consis

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start