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

Опубликовано: 02 Апрель 2020
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн "Make Array Consecutive 2" - Codesignal #6 - JAVA Solution длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Joshua 02 Апрель 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,237 раз и оно понравилось 21 зрителям. Приятного просмотра!