my.huang


  • Home

  • Categories

  • Archives

  • Tags

如何优雅地关闭channel

Posted on 2017-12-13 |
referenced: http://www.tapirgames.com/blog/golang-channel-closing 文章首先说明了一个问题:对于go语言中的channel,官方没有给出一个内建的fun closed(c chan T) bool方法来检查一个管道是不是已经关闭了.然后 ...
Read more »

386. lexicographical numbers

Posted on 2017-12-09 |
Given an integer n, return 1 ~ n in lexicographical order.For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9].Please optimize your algorit ...
Read more »

123. best time buy and sell stock III

Posted on 2017-12-09 |
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may comple ...
Read more »

Golang code walk: share memory by communicating

Posted on 2017-12-04 |
Go example code中的 urlpoll.go实现在这里. Go interfacesChannelExample usage here. Channel is a FIFO queue, the send and receive sequence will always be the s ...
Read more »

rails basic

Posted on 2017-04-12 |
The RESTfulConsider a basic rails controller where you have a series of actions: index, show, new, create, etc. It’s OK when in the starting period th ...
Read more »
123
Moyuan Huang

Moyuan Huang

manners maketh man.

11 posts
5 tags
LinkedIn GitHub
© 2018 Moyuan Huang
Powered by Hexo
Theme - NexT.Pisces