8/40
Part 2 of 7 · Two statesLearn and do

Deleting one element can join two increasing runs into one

A prep site's question bank lists, for a Netflix data scientist coding round, the longest strictly increasing run you can get by deleting at most one element (1 source). A run here is a stretch of consecutive elements where each is larger than the one before it.

Predict

Delete at most one element of 4, 7, 5, 6, 8, 3, 9, 10. What's the longest strictly increasing run you can get?

Pick an answer above to see the rest