摘要:
描述:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is: 阅读全文
摘要:
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.先贴我昨天不成功的代码:function count(n){ le 阅读全文
摘要:
描述:给定一个整数 n ,你需要找到与它最近的回文数(不包括自身)。“最近的”定义为两个整数差的绝对值最小。代码:/** * @param {string} n * @return {string} */ var nearestPalindromic = function(n) { n = pars 阅读全文