Has anyone tried this in BASH ? How can we test the bash script for this problem w.r.t time & mem ?
You can't solve that problem in Bash, the whole point is that only 3 (esoteric) languages are allowed, otherwise there is nothing interesting about this problem.
Ah, yes.. makes sense. Thanks!