摘要: 最近在看《The C Programming Language》这本书,看到一个关于随机数的知识点,有种豁然开朗的感觉。以前总靠死记硬背,也不明白为啥是这样,而且总把srand()遗漏。相信你看了也有同样的感觉。书中是这么说的: 标准库中包含一个可移植的实现伪随机数发生器的函数srand以及一个初始 阅读全文
posted @ 2019-03-19 17:23 梅花五瓣 阅读(2725) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input wou 阅读全文
posted @ 2019-03-19 17:19 梅花五瓣 阅读(264) 评论(0) 推荐(0) 编辑