Skip to content

Instantly share code, notes, and snippets.

View Jubin369's full-sized avatar
🚀
Working from home

Jubin Ayoob Jubin369

🚀
Working from home
View GitHub Profile
anonymous
anonymous / index.html
Created February 1, 2018 17:27
The Memory Games
<div id="root"></div>
@mesterum
mesterum / no-repeats-please.js
Last active May 11, 2020 12:34
freeCodeCamp Algorithm Challenge Guide: No Repeats Please
function permAlone(str) {
if(str=='') return 1
const bag=new Map()
for(const c of str){
bag.set(c,(bag.get(c)||0)+1)
}
const essence=[]
for(let v of bag.values()){
essence[--v]=(essence[v]||0)+1
}