My solution if failing for testcase1, but its passing in my local machine.
Can you please help.
Array-Wave print Column Wise Failing TC1
m,n = map(int,input().split(" β))
array = []
for i in range(m):
array.append(list(map(int,input().split(β "))))
for i in range(n):
if i%2 == 0:
for j in range(m):
print(array[j][i],end=", β)
else:
for j in range(m-1,-1,-1):
print(array[j][i],end=β, ")
print(βENDβ)
This same issue is happening for array wave Row wise sort where only the first test-case is failing.
will you please send your code in java.
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.