原创 101. Symmetric Tree

/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; *

原创 88. Merge Sorted Array

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume

原创 15. 3Sum

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets i

原创 67. Add Binary

Given two binary strings, return their sum (also a binary string). For example, a = “11” b = “1” Return “100”. p

原创 58. Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last w

原创 18. 4Sum

Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all u

原创 jupyter notebook安裝

### 1.首先將自己的電腦升級到python3 ### 安裝brew   ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/ins

原创 數組扁平化並去重排序

 題目 var arr=[ [1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 9, [11, 12, [12, 13, [14] ] ] ], 10]; 1 .  Array.from(new Set(arr.fl

原创 jQuery實現九宮格抽獎遊戲

# 九宮格抽獎遊戲 本項目在github [鏈接]([https://github.com/freya0608/squaredUp](https://github.com/freya0608/squaredUp)   1.  前端佈局

原创 react+koa實現圖片上傳功能

技術棧 koa2 + react16.8 github 地址[鏈接](https://github.com/freya0608/react-imgUpload.git)  項目步驟    前端開發     1.創建`react app

原创 設計模式-適配器模式

class Adaptee { specificRequest(){ return '德國標準插頭' } } class Target { constructor(){ this.

原创 設計模式-觀察者模式

// 主題,接收狀態變化,觸發每個觀察者 class Subject { constructor() { this.state = 0 this.observers = [] }

原创 plop的用法

每次寫重複的代碼是不是很浪費時間呢?接下來介紹一款用命令行就可以自動生成代碼的工具。 plop的介紹 https://www.npmjs.com/package/plop 1.在項目中安裝plop; npm install --save

原创 好用的chrome工具

chrome有很多適合開發使用的插件: json-handle是一款將數據轉爲json的插件,每次在瀏覽器打開的數據,都會被轉爲json,清晰方便查看。 Restlet Client與postman類似,是後端開發人員必備的插件。

原创 設計模式-工廠模式

class Product { constructor(name){ this.name = name; } init(){ alert('init'); } fu