Loading exercise...

Exercise: Shortest Exact Segment

These two problems give you another chance to choose an approach without a pattern label. Read the constraints closely, especially which values can appear and whether the input is ordered. Try an example that includes a boundary case before you commit to a plan. Then explain what information you need to keep and what work you can avoid repeating.

Become a Member to join the conversation.