Skip to content
ComputerCS
Start learning

Computer Science and Entrepreneurship · Practice

Programming challenge bank

219 Python coding challenges, retained alongside the full PECTAA curriculum. Filter the existing Python challenge bank by its mapped textbook unit, run visible and hidden tests, and keep your solved record and code drafts.

219 challenges6 difficulty tiers0 solved0 attempted0 XP earned

Loading saved progress…

Open full IDE

Algorithms and Problem Solving · hard · 40 XP

Merge Two Sorted Lists

2 tests

Read two sorted lists and merge them into one sorted list without calling sort() or sorted(). Input layout: line 1 is n, line 2 holds the n values of list A, line 3 is m, line 4 holds the m values of list B. Walk two pointers, always taking the smaller current value, and take from A on ties. Print the merged list space-separated on one line. n or m may be 0 (the matching value line is then empty).

Python IDE

Python development workspace

Write, run, debug and manage Python projects directly in your browser.

Editor
python3 — ready
Terminal readyRun your Python file. Output, errors and input echoes will appear here.
Nerdlyy Agent · DisabledDisabled while you work through a lab or practice task so your attempt stays independent.

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.