1299. Replace Elements with Greatest Element on Right Side#50
Open
GrishinAnton wants to merge 1 commit into
Open
1299. Replace Elements with Greatest Element on Right Side#50GrishinAnton wants to merge 1 commit into
GrishinAnton wants to merge 1 commit into
Conversation
Collaborator
Кажись, не совсем. Справа от 17, самый большой 18, заменяем 17 на него. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что-то пошла пара непонимания условий задач:) Или на такое описание попадаюсь.
Заменить элемент справа от текущего на самый большой. Если я правильно понял:
[17,18,5,4,6,1]
Справа от 17, самый большой 18, заменяем 17 на него.
Справа от 18 самый большой 6, заменяем начиная с 18 все на 6 до 6.
Справа от 6 самый большой 1. Заменяем все на 1.
Потом добавляем в конец -1
Так?