赵永盛

Results 6 comments of 赵永盛

TypeScript ``` function findRepeatedDnaSequences(s: string): string[] { const ret: Set = new Set(); const n = s.length; const map = { 'A': 0, 'G': 1, 'C': 2, 'T': 3, };...

js 的 map 天然具有 hash + 顺序的特性,可以用来实现 LRU,但是本文的思路值得学习,还是以本文答案为准吧 ```typescript /* * @lc app=leetcode.cn id=146 lang=typescript * * [146] LRU 缓存 * 利用 Map 键具有顺序的特性 */ // @lc code=start class LRUCache...

起始可以把整个链表的值放入一个数组,然后判断是否回文数组也可以 ```typescript function isPalindrome(head: ListNode | null): boolean { if (head === null || head.next === null) { return true; } const arr = []; let cur = head; while...

恢复浏览器默认的代理配置 的 一种模式

8899 不支持本机以外的其它主机访问?