I love solving such problems on Hackerrank. They are not timed but they do run against several test cases. So it gives you practice to code against all the edge cases.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.