linkedin Skip to Main Content
left arrow Back to blog

Code Challenge: Python Unit Testing

1 Minute Read

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!

Trending Articles

Hire with confidence.

See why engineering teams trust CoderPad to evaluate developers with realistic, AI-ready hiring workflows.

Request a demo