Merge two sorted arrays
Merge two sorted arrays into one sorted array.
Merge intervals
Merge all overlapping intervals and return a sorted result.
Interleave Two Lists
Write a function that interleaves two lists element by element, preserving order.
Count Smaller Numbers
Given an integer list, return for each position how many later elements are smaller than it.
Merge Sorted Array In Place
Write a function that merges two sorted arrays into the first array in-place, keeping the result sorted.
Sort List Merge Sort
Write a function that sorts a list of integers using the merge sort algorithm.
Showing 1–6 of 6 challenges · Lists & Arrays
Lists & Arrays — Python coding challenges
What you will find here
This page lists lists & arrays challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.