A complete zero-panic beginner's guide to launching, editing, and verifying your solutions in Google Colab and local Python.
Google Colab runs entirely in your web browser. You do not need to install Python, Jupyter, or Git on your machine.
Click the golden "Open in Google Colab" button at the top of this page or inside the GitHub repository.
Shift + Enter to execute the active cell and advance to the next one.▶ Play icon on the left border of the cell.Each problem has two cells: your starter template and an automated test suite. Replace the pass keyword with your code and run the test cell below it:
def contains_duplicate(nums: list[int]) -> bool:
seen = set()
for num in nums:
if num in seen:
return True
seen.add(num)
return False
When you run the test cell and see [PASS] All tests passed!, your solution is verified!
If you prefer an offline development environment on your laptop:
git clone https://github.com/evecount/algorithmic-thinking-starter.git
cd algorithmic-thinking-starter
python solutions.py
code .
Open notebooks/interactive_workbook.ipynb. VS Code will prompt you to install the Python/Jupyter extension. Select your Python kernel in the top-right and run cells locally!
If you are struggling to visualize how pointers move or how a Hash Map grows in memory:
Python requires consistent 4-space indentation. Verify all lines inside def, for, and if blocks align perfectly.
Occurs when arr[i] attempts to access an index beyond the array size. Always guard pointer loops: while left < right and ...
Your code returned an unexpected output for a specific edge case. Check if your solution handles empty strings or single-element lists properly.
If a cell runs indefinitely without stopping, your while loop forgot to increment left += 1 or decrement right -= 1.