2481-minimum-cuts-to-divide-a-circle
DevGod needs to write a blog entry for this problem!
/**
* @param {number} n
* @return {number}
*/
var numberOfCuts = function(n) {
if(n==1){return 0;}
return n%2==1?n:Math.floor(n/2);
};
/**
* @param {number} n
* @return {number}
*/
var numberOfCuts = function(n) {
if(n==1){return 0;}
return n%2==1?n:Math.floor(n/2);
};