摘要: ChatRoom A stand alone ChatRoom in Martini Please Star https://github.com/renleimlj/ChatRoom Interface Usage install Martini go get github.com/go mart 阅读全文
posted @ 2017-11-05 10:30 三石宝宝 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-11-03 00:04 三石宝宝 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 变量的解构赋值 学习资料:[ECMAScript 6 入门][1] 数组的解构赋值 基本用法 可以从数组中提取值,按照对应位置,对变量赋值。这种写法属于“模式匹配”。 let [a, b, c] = [1, 2, 3]; let [head, ...tail] = [1, 2, 3, 4]; hea 阅读全文
posted @ 2017-11-02 17:08 三石宝宝 阅读(172) 评论(0) 推荐(0) 编辑
摘要: let 和 const 命令 学习资料:[ECMAScript 6 入门][1] let 所声明的变量,只在let命令所在的代码块内有效。用途:循环计数器。 如果使用var,只有一个全局变量i: var a = []; for (var i = 0; i { Object.freeze(obj); 阅读全文
posted @ 2017-11-01 13:21 三石宝宝 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-30 14:37 三石宝宝 阅读(118) 评论(0) 推荐(0) 编辑
摘要: lc 5 Longest Palindromic Substring [5 Longest Palindromic Substring][1] Given a string s, find the longest palindromic substring in s. You may assume 阅读全文
posted @ 2017-10-28 00:44 三石宝宝 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-24 11:03 三石宝宝 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-19 23:59 三石宝宝 阅读(151) 评论(0) 推荐(0) 编辑
摘要: lc 3 Longest Substring Without Repeating Characters [3 Longest Substring Without Repeating Characters][1] Given a string, find the length of the longe 阅读全文
posted @ 2017-10-16 12:44 三石宝宝 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-13 00:04 三石宝宝 阅读(140) 评论(0) 推荐(0) 编辑