摘要: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59). Each LED represents 阅读全文
posted @ 2019-04-30 16:16 星之眷属 阅读(181) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wuyuegb2312/p/3273337.html#intro https://www.cnblogs.com/bigmoyan/p/4521683.html 阅读全文
posted @ 2019-04-30 14:45 星之眷属 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 因为在题目中说要call很多次sumRange,所以每次单独的循环 阅读全文
posted @ 2019-04-30 13:38 星之眷属 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 顺序栈: 链栈: 链队列: 阅读全文
posted @ 2019-04-29 21:07 星之眷属 阅读(836) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/rekent/p/6822743.html https://blog.csdn.net/qingtian_1993/article/details/81529947 阅读全文
posted @ 2019-04-29 20:56 星之眷属 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 找第k个大的数 快速排序排好然后找第k个: quickSelect sort: 用sort()排序 用纯纯的QuickSort排序: 阅读全文
posted @ 2019-04-29 17:55 星之眷属 阅读(152) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Yaokai_AssultMaster/article/details/68878950 https://blog.csdn.net/mrbcy/article/details/65442164 https://blog.csdn.net/morewind 阅读全文
posted @ 2019-04-29 16:36 星之眷属 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 分饼干:因为饼干大小和孩子的食欲度不一定是按大小顺序排列的,所以开始要排序一下,然后从最小的饼干依次从食欲小的孩子开始看,如果他愿意吃,就++,看下一个小孩子,这回拿的就是大一点的饼干了。 Example 1: 阅读全文
posted @ 2019-04-28 17:06 星之眷属 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 首先初始化整个画面 void init(void) { glClearColor (0.0, 0.0, 0.0, 0.0); glShadeModel (GL_FLAT); } 绘制机器人头部 glScalef (1.6, 2.0, 1.0); glutWireCube (1.0); glPopMa 阅读全文
posted @ 2019-04-28 15:34 星之眷属 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 整个二叉排序树的定义: 二叉排序树节点的定义: 二叉查找树的contains操作: 二叉查找树的findMax 和findMin操作,一个recursion一个非recursion 二叉排序树的插入: 二叉排序树的删 除: 阅读全文
posted @ 2019-04-27 22:38 星之眷属 阅读(175) 评论(0) 推荐(0) 编辑