|
|
back to boardOnly sort array and use binary search... Who can help??? How you passed first test? use sort and binary search would timelimit at #11 my code: [code deleted] Edited by moderator 22.02.2006 22:05 how about trie tree? (mle) use sort and binary search would timelimit at #11 Why tle11? Its only: n log n You try to use other sort procedure(not qsort)? Maybe in 11 test qsort works n*n(unreal?)... First I have WA1 but then I found my mistake... Check this- +aaaa +a ?a Right answer is: a a aaaa My program gives right answer for this test! Try this test: +eee +eef +eed ?e answer: e eed eee eef Try this test: +eee +eef +eed ?e answer: e eed eee eef My program get right answer for this test... I dont understand whats wrong... Sorry for post code but i cant find mistake... Maybe you can??? [code deleted] Edited by moderator 22.02.2006 22:08 |
|
|