Блог пользователя code_fille

Автор code_fille, 11 лет назад, По-английски

Link to problem:- http://www.codechef.com/problems/SUBARRAY

Link to solution:- http://www.codechef.com/viewsolution/7071035 Can anyone tell me the testcase my code gives wrong output for.

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
11 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I have an excellent advice. Write stress test for your solution. Just make solution in O(n2) or O(n3) (it is not important, the simpler the better solution) and ran it against yours for many small random test cases.))) This approach is better than asking people to understand your code.