美子201907141638983
美子201907141638983
全部文章
题解
归档
标签
去牛客网
登录
/
注册
美子201907141638983的博客
全部文章
/ 题解
(共46篇)
题解 | #找出字符串中第一个只出现一次的字符#
1 const getUnique = (s) =>{ for(let i of s){ &...
Javascript Node
2022-05-08
5
230
题解 | #进制转换#
const transform = (s) =>{ return parseInt(s,16); } const readline = require('readl...
Javascript Node
2022-05-08
0
322
题解 | #字符串排序#
const sort = (s) =>{ let cs = s.sort(); cs.forEach(i=>{  ...
Javascript Node
2022-05-08
0
239
题解 | #统计字符#
const count = (n) =>{ let num = 0; let az = 0; &n...
Javascript Node
2022-05-08
2
357
题解 | #查找组成一个偶数最接近的两个素数#
const isPrime = (n) =>{ if(n >= 2){ for(le...
Javascript Node
2022-05-08
3
269
题解 | #截取字符串#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin,...
Javascript Node
2022-05-08
1
325
题解 | #字符个数统计#
const readline = require('readline'); const rl = readline.createInterface({ input:process.stdin, output:process.stdout });...
Javascript Node
2022-05-08
0
266
题解 | #字符串反转#
const reverseStr = (s) =>{ return s.trim().split('').reverse().join(''); } const readline&nbs...
Javascript Node
2022-05-08
0
354
题解 | #密码强度等级#
const countScore = (password) => { let score = 0;// 总得分 &nbs...
Javascript Node
2022-05-08
2
337
题解 | #等差数列#
const count = (n) =>{ return n * 2 + n *(n-1) * 3 / 2...
Javascript Node
2022-05-07
1
326
首页
上一页
1
2
3
4
5
下一页
末页