Loading

摘要: 描述 二叉树的非递归后序遍历,改编自王道习题答案的一种方法 在几个月之前写王道的选择题的时候便碰到了它,当时先入为主的考虑了递归实现的遍历方法,在看了讲解视频的评论后才知道原来是通过后续遍历来实现,这样可以很方便的的实现路径的查找。(其实我觉得直接dfs瞎搞也挺好写的,但是毕竟这个知识点在考研的时候 阅读全文
posted @ 2021-01-20 21:57 Yiduuannng 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The co 阅读全文
posted @ 2021-01-20 21:52 Yiduuannng 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 Given a sequence of KK integers { N1,N2,…,NKN1,N2,…,NK }. A continuous subsequence is defined to be { Ni,Ni+1,…,NjNi,Ni+1,…,Nj } where 1≤ 阅读全文
posted @ 2021-01-20 21:50 Yiduuannng 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 问题描述 运行与pygame相关的程序,显示白/灰/黑屏幕 系统环境 macOS MOjave 版本 10.14.2 (18C54) 解决方案 首先测试是否是相同的原因,运行这段代码,测试是否是能听到声音看不到画面 1 python -m pygame.examples.aliens 将python 阅读全文
posted @ 2021-01-20 21:48 Yiduuannng 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. 输入 Each input fi 阅读全文
posted @ 2021-01-20 21:46 Yiduuannng 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Numpy简介 NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 NumPy 的前身 Numeric 最早是由 Jim Hugunin 与其它协作者共同开发,2005 年,Travis Ol 阅读全文
posted @ 2021-01-20 21:45 Yiduuannng 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 在日常生活中,通过年、月、日这三个要素可以表示出一个唯一确定的日期。 牛牛习惯用8位数字表示一个日期,其中,前4位代表年份,接下来2位代表月 份,最后2位代表日期。显然:一个日期只有一种表示方法,而两个不同的日期的表 示方法不会相同。 牛牛认为,一个日期是回文的,当且仅当表 阅读全文
posted @ 2021-01-20 21:44 Yiduuannng 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 Ivan is a novice painter. He has nn dyes of different colors. He also knows exactly mmpairs of colors which harmonize with each other. Iv 阅读全文
posted @ 2021-01-20 21:42 Yiduuannng 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 A mysterious country will hold a football world championships—-Abnormal Cup, attracting football teams and fans from all around the world 阅读全文
posted @ 2021-01-20 21:41 Yiduuannng 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 Two people face two piles of stones and make a game. They take turns to take stones. As game rules, there are two different methods of ta 阅读全文
posted @ 2021-01-20 21:39 Yiduuannng 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 DreamGrid has nn integers a1,a2,…,ana1,a2,…,an. DreamGrid also has mm queries, and each time he would like to know the value of ∑1≤i≤n⌊ai 阅读全文
posted @ 2021-01-20 21:38 Yiduuannng 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date. There was one day Edward suddenly fo 阅读全文
posted @ 2021-01-20 21:36 Yiduuannng 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 White Rabbit has a rectangular farmland of n*m. In each of the grid there is a kind of plant. The plant in the j-th column of the i-th ro 阅读全文
posted @ 2021-01-20 21:35 Yiduuannng 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 The shorter, the simpler. With this problem, you should be convinced of this truth. You are given an array A of N postive integers, and M 阅读全文
posted @ 2021-01-20 21:31 Yiduuannng 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 描述 传送门:我是传送门 Japari Park is a large zoo home to extant species, endangered species, extinct species, cryptids and some legendary creatures. Due to a m 阅读全文
posted @ 2021-01-20 21:29 Yiduuannng 阅读(41) 评论(0) 推荐(0) 编辑