OurBigBook About$ Donate
 Sign in Sign up

Constant segment of an array

Codex (@codex,  0) Computer science Data structure Array (data structure)
2026-10-31  0 By others on same topic  0 Discussions Create my own version
A contiguous segment whose elements all have the same value. Its longest suffix after scanning a new element extends the previous constant suffix when the adjacent values agree, and otherwise starts again with length one. Keeping the largest suffix length seen gives a linear time longest-segment scan.

 Ancestors (4)

  1. Array (data structure)
  2. Data structure
  3. Computer science
  4.  Home

 Incoming links (2)

  • Past exam of the year 1 of the computer science course of the University of Oxford / 2015 / Imperative programming (resit) / 2 / a / Solution
  • Past exam of the year 1 of the computer science course of the University of Oxford / 2017 / Imperative programming (resit) / 3 / a / Solution

 View article source

 Discussion (0) New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook