441-arranging-coins
DevGod needs to write a blog entry for this problem!
/**
* @param {number} n
* @return {number}
*/
var arrangeCoins = function(n) {
return Math.floor((Math.sqrt(8 * n + 1) - 1) / 2);
};
/**
* @param {number} n
* @return {number}
*/
var arrangeCoins = function(n) {
return Math.floor((Math.sqrt(8 * n + 1) - 1) / 2);
};