摘要: A car travels from a starting position to a destination which is target miles east of the starting position. Along the way, there are gas stations. Ea 阅读全文
posted @ 2018-12-18 12:34 yuxihong 阅读(157) 评论(0) 推荐(0) 编辑
摘要: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo 阅读全文
posted @ 2018-12-18 10:58 yuxihong 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 因为最近的工作要和Horovod打交道,所以分析了Horovod的源码。在这里记一笔。 Horovod有几个亮点,第一,它不依托于某个框架,自己通过MPI建立了一套分布式系统,完成了allreduce, allgather等collective operations通信工作. 第二,发现了Tenso 阅读全文
posted @ 2018-12-18 01:09 yuxihong 阅读(3738) 评论(0) 推荐(0) 编辑
摘要: Given an Android 3x3 key lock screen and two integers m and n, where 1 ≤ m ≤ n ≤ 9, count the total number of unlock patterns of the Android lock scre 阅读全文
posted @ 2018-12-18 00:07 yuxihong 阅读(139) 评论(0) 推荐(0) 编辑