9.7 投简历
9.21 笔试
平台:牛客;时间:120min;总分:120分
题型:单选3*5分=15分;不定项3*5分=15分;填空1*20分=20分;编程20分+25分+25分=70分
总体来说挺简单的,选择都是常见的前端题目
选择涉及知识点:flex、浏览器缓存等
填空题hhh,20分的空,给了四张图,哪张图是去哪儿校园嗨玩校园卡学生认证后正在审核的界面……
编程a了2.6/3(附个人解答)
编程题1:
个人解答(过了60%,不知道为啥……
function transform(text) {
let reg = /[0-9]/
for (let i = 0; i < text.length; i++) {
if (text[i] == "元") {
let k = i - 1, res = ""
while (k >= 0 && reg.test(text[k])) {
res = text[k] + res
k--
}
text = text.slice(0, k + 1) + geshi(res) + text.slice(i + 1)
}
}
return text.replace("零圆", "零圆整")
function geshi(str) {
let nums = new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖")
let sbq = new Array("", "拾", "佰", "仟")
let wyz = new Array("", "万", "亿", "兆")
let dw = "圆"
编程题2: