Totally correct, please don't get me wrong :) Just explaining reason why I replied that way. Feedback of any kind is always welcome, that is the way we grow as people :)
Type: Posts; User: trueacumen
Totally correct, please don't get me wrong :) Just explaining reason why I replied that way. Feedback of any kind is always welcome, that is the way we grow as people :)
Hi Json,
Appreciate you pointing that. I totally understand that I am doing in O(n^2) and we can do using hashing in O(n) space and O(n) time OR O(nlogn) time and constant space by sorting. But...
Yeah pretty simple, still
Acumen
Lucid forums