LeetHack

Practice code. Learn by doing.

Algorithm and SQL challenges that run in your browser, with remote runners and AI hints when you need them.

Code · medium

Packing for a Trip

Optimize the items to pack for a trip based on their utility and weight.

Dynamic ProgrammingKnapsack
Code · medium

Remove Duplicates from Sorted Linked List

Given the head of a sorted linked list, remove all duplicates so that each element appears only once. Return the modified linked list

Linked List
Code · medium

Generate Prime Numbers

Efficient Techniques for Finding Prime Numbers

MathematicsNumber Theory
SQL · medium

Top Scorers: Identify High-Achieving Students

Retrieve details of students scoring 85 or more in any subject, ranked by their grades in descending order.

whereorder by