Skip to content

Instantly share code, notes, and snippets.

View youssef06's full-sized avatar

Youssef youssef06

  • Tangier, Morocco
View GitHub Profile
var cache = new Map()
function getCoinsChange(n, coins) {
if(coins.indexOf(n) != -1)
return 1
var cacheKey = JSON.stringify({n, coins})
if(!cache.has(cacheKey))
{