摘要:
ChatRoom A stand alone ChatRoom in Martini Please Star https://github.com/renleimlj/ChatRoom Interface Usage install Martini go get github.com/go mart 阅读全文
摘要:
lc 538 Convert BST to Greater Tree [538 Convert BST to Greater Tree][1] Given a Binary Search Tree (BST) , convert it to a Greater Tree such that ever 阅读全文
摘要:
变量的解构赋值 学习资料:[ECMAScript 6 入门][1] 数组的解构赋值 基本用法 可以从数组中提取值,按照对应位置,对变量赋值。这种写法属于“模式匹配”。 let [a, b, c] = [1, 2, 3]; let [head, ...tail] = [1, 2, 3, 4]; hea 阅读全文
摘要:
let 和 const 命令 学习资料:[ECMAScript 6 入门][1] let 所声明的变量,只在let命令所在的代码块内有效。用途:循环计数器。 如果使用var,只有一个全局变量i: var a = []; for (var i = 0; i { Object.freeze(obj); 阅读全文
摘要:
lc 238 Product of Array Except Self [238 Product of Array Except Self][1] Given an array of n integers where n 1, nums, return an array output such th 阅读全文
摘要:
lc 5 Longest Palindromic Substring [5 Longest Palindromic Substring][1] Given a string s, find the longest palindromic substring in s. You may assume 阅读全文
摘要:
lc 338 Counting Bits [338 Counting Bits][1] Given a non negative integer number __num__. For every numbers i in the range __0 ≤ i ≤ num__ calculate th 阅读全文
摘要:
lc 406 Queue Reconstruction by Height [406 Queue Reconstruction by Height][1] Suppose you have a random list of people standing in a queue. Each perso 阅读全文
摘要:
lc 3 Longest Substring Without Repeating Characters [3 Longest Substring Without Repeating Characters][1] Given a string, find the length of the longe 阅读全文
摘要:
lc 529 Minesweeper [529 Minesweeper][1] Let's play the minesweeper game! You are given a 2D char matrix representing the game board. 'M' represents an 阅读全文