wazzup
wazzup
全部文章
题解
归档
标签
去牛客网
登录
/
注册
wazzup的博客
全部文章
/ 题解
(共6篇)
题解 | #字符串加解密#
const line1 = readline() const line2 = readline() const ruleFun = (num, flag) => { // 加密 if(flag){ if(num === 57){ ret...
Javascript V8
2022-04-26
2
365
题解 | #在字符串中找出连续最长的数字串#
while(line = readline()){ // 最后加一个,防止最后一个是数字,使得判断不能够结尾 line += '|' // 判断字符是否为数字 const isNumber = letter => { let num = letter.c...
Javascript V8
2022-04-26
0
336
题解 | #字符串排序#
const line = readline() const LEN = line.length const nums = [] const others = [] let arr = new Array(26).fill('') let res = '' for(let i = 0; i < ...
Javascript V8
2022-04-26
0
314
题解 | #迷宫问题#
while(line = readline()){ const [m,n] = line.split(' ').map(item => item - 0) const arr = [] for(let i = 0; i < m; i++){ arr...
Javascript V8
2022-04-26
1
479
题解 | #矩阵乘法#
while(line = readline()){ let x = Number(line) let y = Number(readline()) let z = Number(readline()) const arr1 = [] const ar...
Javascript V8
2022-04-26
0
321
题解 | #找出字符串中第一个只出现一次的字符#
当字符串的 indexOf 和 lastIndexOf 指向一个下标时,说明这个字母就只有这一个,直接输出 function outputFirstLetter(str){ const len = str.length for(let i = 0; i< len; i++){ if(...
Javascript V8
2022-04-26
28
1174