Problem 2190 · Easy

Most Frequent Number Following Key In an Array

Find the value that most often appears directly after a given key in the array. The visual marks each key occurrence and tallies the value that follows it.

Open the interactive visualisation