please help it you need some info about code please tell me
Without seeing your code, it’s impossible to say.
2 Likes
just wait few sec
https://www.codechef.com/viewsolution/36119284
this is the code please don’t provide hint for solving
it would be great help if you just explain why this is happening
I am giving input then this is happening.
Please tell us the input you are providing.
In future, please post all this information (if applicable) in your very first post - people are bound to ask for it
2 Likes
1
4 2 3 10
7 7 7
9 4 10
10 10 9
9 9
the above input
sir, is there need to make more efficient code
int arr1[n-1];
You’re declaring an array of length n - 1
before you’ve initialised n
, which is Undefined Behaviour i.e. anything can happen.
1 Like
Oo… Thanks a lot sir
1 Like