"Make Array Consecutive 2" - Codesignal #6 - JAVA Solution

Publicado el: 02 abril 2020
en el canal de: Joshua
2,237
21

Try these popular Algorithm and Java books:
1. Cracking the Coding Interview: 150 Programming Questions and Solutions
https://amzn.to/37emg3w
2. Introduction to Algorithms
https://amzn.to/356uJmC
3. Java Pocket Guide: Instant Help for Java Programmers
https://amzn.to/3k6ajAt
*As an Amazon Associate I earn from qualifying purchases.
*******************************************************************************************
Like and Subscribe if you enjoy my content!
Or give advice or alternative solutions in the comments below!
Problem: https://app.codesignal.com/arcade/int...

Ratiorg got statues of different sizes as a present from CodeMaster for his birthday, each statue having an non-negative integer size.

Since he likes to make things perfect, he wants to arrange them from smallest to largest so that each statue will be bigger than the previous one exactly by 1.

He may need some additional statues to be able to accomplish that. Help him figure out the minimum number of additional statues needed.

More CodeSignal:    • CodeSignal  

More LeetCode:    • Leetcode  

More HackerRank:    • HackerRank  

*******************************************************************************************

Follow me on:
Twitter -   / joshuacadavez  
LinkedIn -   / joshuacadavez  
GitHub - https://github.com/JoshuaTheEngineer


En esta página del sitio puede ver el video en línea "Make Array Consecutive 2" - Codesignal #6 - JAVA Solution de Duración hora minuto segunda en buena calidad , que subió el usuario Joshua 02 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,237 veces y le gustó 21 a los espectadores. Disfruta viendo!