Loading...

The Chain Builder

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

Implement a singly linked list class from scratch. It must support inserting a new value at the end of the list, and finding whether a value exists in the list. The class should expose an insert(val) method and a find(val) method that returns True or False.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.