i have cleared all the test cases
does it mean that my code is correct for every input???
Is it correct if all testcases cleared?
i myself have give some other inputs as testcases but not getting the desired output?
Then test files may contain weak test cases
please check and provide me the right answer of the same
please provide the ans of this question
dont hardcode the values.
u need to make it generic.
–Input N is the number of rows.Given pattern is seen as first spaces ,then numbers ,then spaces and then numbers again. Till middle row, number of numbers in one batch in a row is equal to row number. After middle row, number of numbers decreases each time by 1.The max value in the pattern is in the middle row which is (N/2 +1).
–So do the work of spaces first ,then that of numbers in decreasing order, then that of spaces and then that of numbers in increasing order.
take help from this-
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.