Skip to content
BingeCoder
LearnDSARoadmapsAI Coding
Search lessonsStudio
LearnDSARoadmapsAI CodingSearchStudio
Home/Practice

Practice problems

Choose a topic, work through an example, and reveal a hint or worked answer when you’re ready.

All topicsPythonJavaJavaScriptData structures & algorithmsProgramming fundamentalsAI-assisted coding

Showing 21–35 of 35 problems

DS

Adjacency lists and matrices

Which neighbor lists change?

Intermediate
DS

Counting sort

What are the counts for 0, 1, 2, and 3?

Intermediate
DS

Dijkstra’s shortest paths

Find the cost of the cheapest route from A to B along the listed directed edges.

Advanced
DS

Dynamic programming

Count ordered ways to climb exactly n stairs, using one- or two-stair moves.

Advanced
DS

Tries and prefix search

Is ca a stored word, a prefix, or both?

Advanced
DS

Union-find and connected groups

Which items share a group with A?

Advanced
DS

Topological sorting

Give one valid order.

Advanced
DS

Greedy interval scheduling

Which intervals does earliest finish select?

Advanced
DS

Minimum spanning trees

What is the cost of the minimum spanning tree?

Advanced
DS

Bellman–Ford and negative edges

What distance should replace 8?

Advanced
DS

0/1 knapsack

What is the highest value?

Advanced
DS

Longest common subsequence

Give a longest common subsequence.

Advanced
DS

Fenwick trees and dynamic prefix sums

Which indexes are read using i -= i & -i?

Advanced
DS

Segment trees and range queries

What is the new sum at the root?

Advanced
DS

Monotonic stacks

What is the next greater value for 1?

Advanced
Page 2 of 2
Previous
BingeCoder
Studio Privacy