Not getting Expected output

Question //Print subarrays whose sum is 10 using java
//
//
//[2, 3, 5, 4, 1, 5, 3]
//
 
Expected output: Subarray: 2 3 5 Subarray: 5 4 1 Subarray: 4 1 

Recieved output:

SubArray found from index-11to2
SubArray found from index11to4
SubArray found from index21to5

Process finished with exit code 0

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🚨

Bug Report

Date

15 days ago

Subscribe to post

Get notified by email when there are changes.