摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2020-04-21 07:31 闲云潭影 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 描述 根据每日 气温列表,请重新生成一个列表,对应位置的输入是你需要再等待多久温度才会升高超过该日的天数。如果之后都不会升高,请在该位置用 0来代替。 例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 [1, 1, 4 阅读全文
posted @ 2020-04-19 17:07 闲云潭影 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O 阅读全文
posted @ 2020-04-19 11:06 闲云潭影 阅读(534) 评论(0) 推荐(0) 编辑
摘要: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' 阅读全文
posted @ 2020-04-15 15:04 闲云潭影 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be ch 阅读全文
posted @ 2020-04-15 07:23 闲云潭影 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 英文版本的GCC请在linux terminal 中写入man gcc 去查看 GCC 格式: gcc [-c | -S | -E][-std = standard] [-g][-pg][-Olevel] [-Wwarning][-pendantic] [-Idir][-Ldir] [-Dmacro 阅读全文
posted @ 2020-03-06 05:09 闲云潭影 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一直uboot的过程: 1. 选择是什么架构的单片机或者平台 在总的make file 里面 2. 更改时钟配置 3. 更改串口相关的时钟配置 4. 选用适当的norflash 5.选用适当的nandflash 1. 100ask24x0_config : unconfig@(MKCONFIG)(M 阅读全文
posted @ 2020-02-13 09:52 闲云潭影 阅读(215) 评论(0) 推荐(0) 编辑
摘要: static ulong get_PLLCLK(int pllreg) { S3C24X0_CLOCK_POWER* const clk_power = S3C24X0_GetBase_CLOCK_POWER(); ulong r, m, p, s; if (pllreg == MPLL) r = 阅读全文
posted @ 2020-02-12 11:07 闲云潭影 阅读(755) 评论(0) 推荐(0) 编辑
摘要: git init : 在给定的文件夹下面初始化git 即给这个文件夹加入一个.git 文件夹 git add . : 当文件被改一动的时候把所有改动的文件加入缓存序列 git commit -m "TXT" 把改动的文件放入上传的序列中, 且加上注释 git branch XXX: 创建一个分支 g 阅读全文
posted @ 2020-02-10 04:26 闲云潭影 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 此bootloader是根据韦东山先生的开发板而制定的 是一个最小的boot系统 必须首先把内核拷nandflash里面才行。 我们先一步步的完成这个小的bootloader 1. 首先我们需要关闭看门狗: ldr r0, 0x53000000 //this is the address of wa 阅读全文
posted @ 2020-01-07 11:15 闲云潭影 阅读(366) 评论(0) 推荐(0) 编辑