Codility's MaxCounters Coding Interview - Part 2
HTML-код
- Опубликовано: 29 сен 2024
- Coding interview here: app.codility.c...
Problem from the Counting Elements section.
Please support me through my Udemy courses:
Pass your coding interview in,
Java : www.udemy.com/...
Python: www.udemy.com/...
Ruby: www.udemy.com/...
JavaScript: www.udemy.com/...
Multithreading in,
Go Lang: www.udemy.com/...
Python: www.udemy.com/...
Java: www.udemy.com/...
Learn Dynamic Programming in,
Java: www.udemy.com/...
Python: www.udemy.com/...
Ruby: www.udemy.com/...
Blog: www.cutajarjame...
In first approach, what if we initialise a new array of ints all with the same value which is the max counter value? In that case we would not need to go trough the all elements.
Thank you so much, this helped my thought process a lot! keep it up