3 ms·My brother had created fastest solution ( both in time and space complexity ) for this problem.by kofq 13y agoMy brother had created fastest solution ( both in time and space complexity ) for this problem.