MCPcopy Create free account
hub / github.com/HarshCasper/NeoAlgo / contiguous_sub_array

Function contiguous_sub_array

C-Plus-Plus/cp/SubArrayWithGivenSum.cpp:39–65  ·  view source on GitHub ↗

* Function to print the index range of subarray equal to the given sum. If no such subarray found, print -1. * @param arr array to check * @param size size of an array * @param original_sum sum to match with the sum of all elements of a sub array. * @return void and prints index ranges if sum of sub array equal to the given * sum, else prints -1. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected