Question

Backtracking is an algorithmic technique often used for problems that involve:

A Finding the shortest path in a graph.
B Optimizing a single objective function with local choices.
C Exploring all possible solutions to a problem by systematically trying and undoing choices.
D Sorting elements in linear time.
E Merging sorted subarrays.
Practice Next

Hey! Ask a query