Help me out there


hello @shivammishra20121999
yeah i m here( i know u r going to ask this😂 ).
what logic u r applying

@aman212yadav i approach is same like no of subarray whose sum is equal to k

@shivammishra20121999
check now(link updated)->

@aman212yadav [0 1 1]
1
how ans will be 4

[0-> 1] ( 2 paths)
[1] (2 paths) //starts and end at same node

@aman212yadav ohokk thNK U