This file contains 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
{ | |
"git.autofetch": true, | |
"git.enableSmartCommit": true, | |
"git.confirmSync": false, | |
"security.workspace.trust.untrustedFiles": "open", | |
"terminal.integrated.fontSize": 15, | |
"terminal.integrated.defaultProfile.osx": "zsh", |
This file contains 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
const a = [1, 2, 3, 4, 2, 1] | |
const b = [3, 2, 5, 3] | |
function intersection(a, b) { | |
let numbers = new Set() | |
let contador =0; | |
for(var i=0; i < a.length -1; i++) { | |
for(var j=0; j < b.length -1; j++) { |
This file contains 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
/* Dada uma lista de documentos e seus respectivos status, escreva um código que informe qual é o status encontrado com maior frequência e o status encontrado com menor frequência na lista. | |
Exemplo de input: | |
[{"id":1,"status":"CI"},{"id":2,"status":"EE"},{"id":3,"status":"EP"},{"id":4,"status":"ES"},{"id":5,"status":"ER"},{"id":6,"status":"ET"},{"id":7,"status":"CI"},{"id":8,"status":"EE"}] */ | |
const lista = [ | |
{"id":1,"status":"CI"}, | |
{"id":2,"status":"EE"}, | |
{"id":3,"status":"EP"}, | |
{"id":4,"status":"ES"}, | |
{"id":5,"status":"ER"}, |