LeetCode Weekly Contest 26
No one has replied
I think so,it's meaningless
looks like bfs?
This is slightly faster.
So cool. Thank you @StefanPochmann
I have similar solution and same problem. Here is my code:
Please, let me know if you find the reason/solution?
we can change
for (int k=0;k<M.length;k++)
for (int k=student;k<M.length;k++)
no need to start from 0, can start from 'student'.
@雾里看花cjj yeah, I also think should consider the situation that a or b is null, because if a == null, a.length() will throw exception
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.