linkedin Skip to Main Content
left arrow Back to blog

Code Challenge: Python Longest Subarray

1 Minute Read

In a street with colored houses, you want to take a picture containing the most houses, but without any duplicate colors. In this code challenge, you are tasked with finding the longest possible sub-array containing only unique values.

Please check the sandbox below for further instructions:

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