← All problemsSign in

Shivani and its Array Love

Shivani is a 10-year small girl.She loves to play with the array. She invented a new game with this.The game is - An array of n number and a number k is given. She will select continuous subarray whose sum is less than or equal to k. Your task is to help Shivani.So you have to find the number of possibilities will she will select such type of subarray. Input The First line contains N space-sepa

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