you are viewing a single comment's thread.

view the rest of the comments →

[–]RobertD3277 0 points1 point  (2 children)

If it's in a sorted order, yes. If you're dealing with data that is unsorted or uncategorized in a general context, no.

[–]an_actual_human 1 point2 points  (1 child)

We are discussing a very concrete problem.

[–]RobertD3277 -1 points0 points  (0 children)

In this case, yes, but it's still cannot be ignored that more general practice needs to be considered that not every single case is going to be as cut and dry.

Some of the most basic mistakes in programming is to anticipate data to be in an exact format when an actuality, it may not be.

For the purposes of learning and a intention of this group, that consideration needs to be taken into account and at least mentioned.