Small challenges.
Stronger problem solving.
426 programming exercises and projects, from interview patterns to practical data automation.
Page 2 of 3 · 50 problems · Showing 25–48
25Measure binary-tree heightData Structures and Algorithms — Python · Python · Binary-tree traversalMediumPractice pack26Collect leaves left to rightData Structures and Algorithms — Python · Python · Binary-tree traversalMediumPractice pack27Validate a strict search treeData Structures and Algorithms — Python · Python · Binary search treesMediumPractice pack28Search a binary search treeData Structures and Algorithms — Python · Python · Binary search treesMediumPractice pack29Validate an array min-heapData Structures and Algorithms — Python · Python · Heaps and bounded selectionMediumPractice pack30Insert into a min-heapData Structures and Algorithms — Python · Python · Heaps and bounded selectionMediumPractice pack31Keep the k largest valuesData Structures and Algorithms — Python · Python · Heaps and bounded selectionMediumPractice pack32Build an undirected adjacency listData Structures and Algorithms — Python · Python · Graph representationsMediumPractice pack33Count directed incoming edgesData Structures and Algorithms — Python · Python · Graph representationsMediumPractice pack34Find unweighted shortest distancesData Structures and Algorithms — Python · Python · BFS, DFS and componentsMediumPractice pack35Traverse depth firstData Structures and Algorithms — Python · Python · BFS, DFS and componentsMediumPractice pack36Count undirected connected componentsData Structures and Algorithms — Python · Python · BFS, DFS and componentsMediumPractice pack37Produce a deterministic topological orderData Structures and Algorithms — Python · Python · Graph constraints and shortest pathsMediumPractice pack38Check graph bipartitenessData Structures and Algorithms — Python · Python · Graph constraints and shortest pathsMediumPractice pack39Find shortest paths with nonnegative weightsData Structures and Algorithms — Python · Python · Graph constraints and shortest pathsMediumPractice pack40Select nonoverlapping intervalsData Structures and Algorithms — Python · Python · Greedy choices and interval boundariesMediumPractice pack41Merge overlapping closed intervalsData Structures and Algorithms — Python · Python · Greedy choices and interval boundariesMediumPractice pack42Enumerate subsetsData Structures and Algorithms — Python · Python · Backtracking and output-sensitive costMediumPractice pack43Enumerate permutationsData Structures and Algorithms — Python · Python · Backtracking and output-sensitive costMediumPractice pack44Enumerate fixed-size combinationsData Structures and Algorithms — Python · Python · Backtracking and output-sensitive costMediumPractice pack45Count one-or-two-step pathsData Structures and Algorithms — Python · Python · One-dimensional dynamic programmingMediumPractice pack46Find minimum coin countData Structures and Algorithms — Python · Python · One-dimensional dynamic programmingMediumPractice pack47Maximize a nonadjacent sumData Structures and Algorithms — Python · Python · One-dimensional dynamic programmingMediumPractice pack48Count right-and-down grid pathsData Structures and Algorithms — Python · Python · Two-dimensional dynamic programmingMediumPractice pack
Free lessons and coding exercises
Find a starting point, read a worked example, and try matching exercises with hints and solutions. No account is needed for free previews.
Progress is for your own learning. Browser test results are not a verified assessment.