linkedin Skip to Main Content

Our 2023 “State of Tech Hiring” report is live! Check it out.


Tiny Interview: Python Unit Testing

Coding Challenges

Unit tests ideally test a small unit (or rather, amount) of code. For this tiny interview, 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.

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!