优秀的阿二
优秀的阿二
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
优秀的阿二的博客
全部文章
(共47篇)
题解 | #修改 this 指向#
function bindThis(f, oTarget) { return function(){ return f.apply(oTarget,arguments) } }
2023-07-16
0
243
题解 | #数组去重#
Array.prototype.uniq = function () { return [...new Set(this)] }
2023-07-16
0
196
题解 | #计数#
function count(arr, item) { return arr.filter(i=>i==item).length }
2023-07-16
0
265
题解 | #无重复数组#
const _getUniqueNums = (start,end,n) => { // 补全代码 let arr = []; while(n){ let i...
2023-07-16
0
210
题解 | #无重复数组#
{"html":"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <meta charset=\"UTF-8\"...
2023-07-16
0
246
题解 | #反转链表#
/* * function ListNode(x){ * this.val = x; * this.next = null; * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param head ListN...
2023-07-15
0
175
题解 | #【模板】链表#
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () =...
2023-07-15
0
163
题解 | #【模板】循环队列#
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () =...
2023-07-15
0
200
题解 | #【模板】队列#
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () =...
2023-07-15
0
187
题解 | #点击消除#
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () =...
2023-07-14
0
229
首页
上一页
1
2
3
4
5
下一页
末页