Módulo Memória#27
Open
lvolcov wants to merge 4 commits into
Open
Conversation
Contributor
Author
|
Percebi só agora que tem respostas que pedem pra apertar o mesmo número apertado em etapas anteriores e outras que pedem pra apertar a mesma posição apertada em etapas anteriores, eu tava fazendo todos esses casos retornando o mesmo número apertado, vou subir um commit arrumando isso e arrumando as descrições dos testes. |
…as em etapas anteriores e retornando erro caso a etapa atual nao tenha 5 itens. #12
jampow
previously approved these changes
Feb 8, 2021
| @@ -0,0 +1,58 @@ | |||
| /** | |||
| * Função que resolve o módulo Memória | |||
| * @param {string[]} previousStep - Array que traz as arrays das interações anteriores e suas respostas | |||
Contributor
There was a problem hiding this comment.
Não entendi, o tipo é um Array de strings, mas na descrição vc diz q é um Array de arrays... 🤔
| throw 'CURRENT_STEP_INCOMPLETED' | ||
| } | ||
| let answer | ||
| switch(previousSteps.length) { |
Contributor
There was a problem hiding this comment.
trocar switchcases aninhados por objeto como no módulo genius
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.
#12