Skip to content

Instantly share code, notes, and snippets.

View lgutie16's full-sized avatar

Linda J Gutiérrez lgutie16

  • Uruit
  • Medellín
View GitHub Profile
@lgutie16
lgutie16 / isSubsetOfMultiset.js
Created July 18, 2018 17:36
Find if a multiset is subset of another multiset using multiplicity
function isSubset(a, b){
subset = true
a.forEach(function(value) {
subset = (b.multiplicity(value) > a.multiplicity(value)) && subset
});
return subset
}
@lgutie16
lgutie16 / functions.js
Created October 21, 2017 20:40
Functions
//Agent key words
const agentKeyWords = [
"grabadas", "monitoreadas", "de acuerdo",
"ofrecemos", "ofrecer", "toma de datos", "Oportunidad", "llamada", "ofrecerle", "como esta",
"confirmar", "el motivo de esta llamada", "proceder", "podria", "me puede comentar", "me puede decir",
"adquirir", "tiene alguna duda", "tiene alguna inquietud", "comprende", "que duda tiene"
]
//Client key words
const clientKeyWords = [
@lgutie16
lgutie16 / CracklePop.js
Last active August 21, 2017 14:52
Code CracklePop
for (let i = 1; i < 101; i++) {
if(i%3 === 0 && i%5 === 0) console.log('CracklePop')
else if(i%3 === 0) console.log('Crackle')
else if(i%5 === 0) console.log('Pop')
else console.log(i)
}