Codility's MaxCounters Coding Interview - Part 4

Coding interview here: app.codility.com/programmers/...
Problem from the Counting Elements section.
Please support me through my Udemy courses:
Pass your coding interview in,
Java : www.udemy.com/course/beat-the...
Python: www.udemy.com/course/beat-the...
Ruby: www.udemy.com/course/beat-the...
JavaScript: www.udemy.com/course/beat-the...
Multithreading in,
Go Lang: www.udemy.com/course/multithr...
Python: www.udemy.com/course/parallel...
Java: www.udemy.com/course/master-p...
Learn Dynamic Programming in,
Java: www.udemy.com/course/dynamic-...
Python: www.udemy.com/course/dynamic-...
Ruby: www.udemy.com/course/dynamic-...
Blog: www.cutajarjames.com

Пікірлер: 2

  • @scrapz000
    @scrapz0003 жыл бұрын

    clear explanation great video, patiently waiting for the next video :)

  • @CyberMew
    @CyberMew3 жыл бұрын

    I still don't get it. How would this work and what's the rationale for it? What's the intuition for this? Update: nvm I found out part 3. Basically idea is that when the time comes, we 'save' the 'column' they are all supposed to be in (i.e. the leading/furthest position) and update those who are below the 'column' later, AFTER everything is done. Otherwise those after the 'column' should proceed as per normal. This works because it doesn't matter the positions before the 'column' as we don't care about it.