linkedin Skip to Main Content
Just announced: We now support interviewing in spreadsheets!
Back to blog

Code Challenge: Python Unit Testing

Coding Challenges

Unit tests ideally test a small unit (or rather, amount) of code. For this code challenge, we have created 20 bad functions, write testcases to break them all! The reference function is count_islands which behaves as expected.

Challenge your assumptions and make sure you understand what count_islands actually does.

More resources

We have made available these extra resources to improve your Python coding skills:

Want to conduct interviews on this platform?

Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using this registration link!