这种东西要做梦都梦到 min/max heap
bucket sort
topological sort
binary tree preorder/inorder/postorder traversal
binary tree level traversal BFS
binary tree vertical order traversal
combination/permutation
最终我觉得像下面的,这种题要达到闭眼秒杀的程度One shot
word search 1
word search 2
word break 1
word break 2
word ladder 1
word ladder 2
LIS
LRU
sort color
insert & delete in O1
rob house 1
rob house 2
rob house 3
2 sum
3 sum
4 sum
Sunday, December 31, 2017
Wednesday, December 27, 2017
Truffle
Development
How to bootstrap a contract:truffle init
truffle create contract NewContract
truffle create migration NewContract
truffle create test NewContract
truffle migrate --reset
Console:
How to get into console:
truffle console
How to call a contract's function in Truffle Terminal:
FlipCoin.deployed().then(function(instance){app = instance})
app.adopt(23) . //call method on contract class
How to check balance of an address in Truffle Terminal:
web3.eth.getBalance("0x627306090abaB3A6e1400e9345bC60c78a8BEf57")
web3.eth contains lots of methods
FlipCoin.deployed().then(function(instance){app = instance})
app.adopt(23) . //call method on contract class
How to check balance of an address in Truffle Terminal:
web3.eth.getBalance("0x627306090abaB3A6e1400e9345bC60c78a8BEf57")
web3.eth contains lots of methods
Subscribe to:
Comments (Atom)