摘要:
##知识点 1.Go是一个快速的、静态类型的编译型语言,感觉却像动态类型的解释型语言(所以还是编译型语言) 2.Less can be more(少即是多) 3.并发编程方面Golang使用一种称为goroutine的协程作为并发执行单元 4.协程又称微线程,比线程更轻量、开销更小,性能更高,一个线 阅读全文
摘要:
##1108 Finding Average (20 分) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicat 阅读全文
摘要:
##1107 Social Clusters (30 分) When register on a social network, you are always asked to specify your hobbies in order to find some potential friends 阅读全文
摘要:
##1105 Spiral Matrix (25 分) This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral mat 阅读全文
摘要:
##1102 Invert a Binary Tree (25 分) The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but 阅读全文
摘要:
##1167 Cartesian Tree (30 分) A Cartesian tree is a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inord 阅读全文
摘要:
##1166 Summit (25 分) A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The idea 阅读全文
摘要:
###1165 Block Reversing (25 分) Given a singly linked list L. Let us consider every K nodes as a block (if there are less than K nodes at the end of th 阅读全文