• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






乘风有时

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2017年8月20日

[LeetCode]Top K Frequent Elements
摘要: 题目:Top K Frequent Elements Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return 阅读全文
posted @ 2017-08-20 23:07 乘风有时 阅读(151) 评论(0) 推荐(0)
 

2017年8月16日

uboot学习之BL3的流程
摘要: BL2的最后通过汇编调用了board_init_r函数,此时进入BL3的阶段,此时的主要工作: 这一阶段涉及的文件及任务如下 arch/arm/lib/board.c 1. board_init_r()是进入定制板目录的入口common/main.c 2. main_loop()中关闭中断,执行命令 阅读全文
posted @ 2017-08-16 12:53 乘风有时 阅读(1848) 评论(0) 推荐(0)
 

2017年8月14日

uboot学习之uboot.bin的运行流程
摘要: 上篇博客:http://www.cnblogs.com/yeqluofwupheng/p/7347925.html 讲到uboot-spl的工作流程,接下来简述一下uboot.bin的工作流程,这对应BL2的流程。 BL2的主要文件和任务流程如下: arch/arm/cpu/armv7/start. 阅读全文
posted @ 2017-08-14 23:44 乘风有时 阅读(2931) 评论(0) 推荐(0)
 

2017年8月12日

[LeetCode]Reverse String
摘要: 题目:Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". 题意:逆置字符串 思 阅读全文
posted @ 2017-08-12 17:07 乘风有时 阅读(323) 评论(0) 推荐(1)
 
[LeetCode]Integer Break
摘要: 题目:Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Retur 阅读全文
posted @ 2017-08-12 16:55 乘风有时 阅读(155) 评论(0) 推荐(0)
 

2017年8月11日

uboot学习之uboot-spl的程序流程分析
摘要: uboot-spl的程序流程主要包含下面的几个函数: _start->reset->save_boot_params->cpu_init_crit->lowlevel_init->_main->board_init_f 在armv7架构的uboot-spl,主要需要做如下事情 关闭中断,svc模式 阅读全文
posted @ 2017-08-11 20:53 乘风有时 阅读(3767) 评论(0) 推荐(0)
 
[LeetCode]Power of N
摘要: 题目:Power of Two Given an integer, write a function to determine if it is a power of two. 题意:判断一个数是否是2的k次方数。 思路: 2的次方数使用2进制表示则必然只有最高位是1其他都是0; 这样判断一个数最多 阅读全文
posted @ 2017-08-11 20:05 乘风有时 阅读(216) 评论(0) 推荐(0)
 

2017年8月10日

uboot学习之uboot启动流程简述
摘要: 一、uboot启动分为了三个阶段BL0、BL1、BL2;BL0表示上电后运行ROM中固化的一段程序,其中ROM中的程序是厂家写进去的,所以具体功能可能根据厂家芯片而有所不同。功能如下: BL0需要将BL1加载到对应的RAM上,这就涉及到它的启动模式,详细如下:1.OneNand Boot模式 要了解 阅读全文
posted @ 2017-08-10 23:13 乘风有时 阅读(2629) 评论(0) 推荐(2)
 
[LeetCode]Palindrome Pairs
摘要: 题目:Palindrome Pairs Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two wo 阅读全文
posted @ 2017-08-10 22:51 乘风有时 阅读(186) 评论(0) 推荐(0)
 

2017年8月9日

[LeetCode]Gray Code
摘要: 题目:Gray Code 给定格雷码的位数,输出所有的格雷码对应的十进制数。 思路: 000 0 001 1 011 3 010 2 110 6 111 7 101 5 100 4 前四个和后四个的前两位对称,前两个和后两个的第一位是对称的。 如此,可看出,格雷码有一定的对称性。 阅读全文
posted @ 2017-08-09 16:03 乘风有时 阅读(174) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页