摘要: Write a function to find the longest common prefix(前缀) string amongst an array of strings. 注意strs[i][j]不要超出范围 阅读全文
posted @ 2017-03-02 10:02 Ci_pea 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 字符串的是从左边开始的 res,p 是元组 阅读全文
posted @ 2017-02-28 21:48 Ci_pea 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome(回文). Do this without extra space. 阅读全文
posted @ 2017-02-28 19:40 Ci_pea 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Note:The input is assumed to be a 32-bit signed integer. Yo 阅读全文
posted @ 2017-02-27 20:41 Ci_pea 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 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 would have ex 阅读全文
posted @ 2017-02-27 19:33 Ci_pea 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 这一周简单学习了一下Java语言,汇总如下: 【输入】Scanner in = new Scanner(System.in); 【输出】System.out.printLn(in.nextline()); 【常量】final int amount = 10; 【判断两个浮点数】由于浮点数有精度问题, 阅读全文
posted @ 2016-07-27 10:15 Ci_pea 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 应项目要求开始学习Java,目标是开发一个APP,其可调用蓝牙,周期搜索周围蓝牙的rssi并上传。 一开始学习遇到了许多问题,在这里总结一下: call requires api level 18 右键点击项目->Android tools ->Clear Link Markers.即可临时解决,但 阅读全文
posted @ 2016-07-26 09:40 Ci_pea 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 7月份又看了视频学了学C语言: sizeof()为静态运算符,()中不会执行运算; 二进制负数:正数 = 原码, 负数 = 反码+1; %o 输出八进制,%x输出十六进制,%e输出科学计数法,%p输出指针; 短路:不要把赋值,包括复合赋值组合放进表达式; int *const q = &i; 指针是 阅读全文
posted @ 2016-07-18 11:14 Ci_pea 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 做的最顺利的。。。。找到语句。。一加就好使。。感天动地啊。。。。 在主节点上通知从节点要收他的RSSI啦: 然后就会调用RSSI的回调函数: 在LCD上显示出来啦! 还可以在从节点广播的时候直接获取: 阅读全文
posted @ 2016-05-17 20:52 Ci_pea 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 蓝牙的串口出问题了,只能发不能收,本宝宝也不知道哪里出了原因。。每次改一丢丢,下到板子里发现不能用。。也不知道为什么。。傻不拉几的看程序,找问题。。看了快一周。。后来实验室的同学用万用表!!测出来是硬件的问题。。万用表在宝宝这里就是做实验才会想到的东西。。最后发现,原来是因为串口模块需要3.3伏的电 阅读全文
posted @ 2016-05-17 10:53 Ci_pea 阅读(134) 评论(0) 推荐(0) 编辑