Can leetcode provide an option where we can run our solution against all testcases for suboptimal approach also ?
It may not get accepted, but at least we know the solution is correct. Also helps in prototyping other solutions which may not be feasible for passing the time expectations.