摘要: 01-01 23:14:22.382 18108 18149 I Bth : BtWearDetection:changePlayStateIfNeeded. currentPlayState = 3, currentTime:3338138, activePlayer:com.netease.cl 阅读全文
posted @ 2022-06-21 22:15 Hala 阅读(10) 评论(0) 推荐(0) 编辑
摘要: /** * clear redundant files */ public static void clearRedundantFiles() { String path = "/data/update/"; File file = new File(path); if (!file.exists( 阅读全文
posted @ 2022-05-04 16:41 Hala 阅读(75) 评论(0) 推荐(0) 编辑
摘要: http://www.yxfzedu.com/rs_show/456 阅读全文
posted @ 2022-04-29 17:39 Hala 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 单调栈的性质 1、单调栈里的元素具有单调性,栈中的元素只能单调递增或者单调递减; 2、元素加入栈前,会在栈顶把破坏单调性的元素删除; 单调栈解题思路: 1、分析理解题目找到元素的单调性 2、遍历素有元素入栈; 3、在入栈过程中判断单调性,不满足的元素进行出栈; 阅读全文
posted @ 2022-01-03 11:49 Hala 阅读(53) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/340692819 https://blog.csdn.net/God__Rain/article/details/114439380 阅读全文
posted @ 2021-08-06 00:59 Hala 阅读(25) 评论(0) 推荐(0) 编辑
摘要: public static int binarySearch(int []array,int target){ //查找范围起点 int start=0; //查找范围终点 int end=array.length-1; //查找范围中位数 int mid; //迭代进行二分查找 while(sta 阅读全文
posted @ 2021-08-03 23:59 Hala 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 单调栈:https://www.cnblogs.com/liang24/p/14200734.html并查集:https://www.cnblogs.com/cyjb/p/UnionFindSets.html 滑动窗口法:https://www.cnblogs.com/shiji-note/p/14 阅读全文
posted @ 2021-03-16 22:03 Hala 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 大字节序(Big Endian):低地址存高位小字节序(Little Endian):高地址存地位int main(){ int x=1; char *temp = NULL; temp= (char *)&x; if (*temp =... 阅读全文
posted @ 2014-06-20 20:24 Hala 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 编写类String 的构造函数、析构函数和赋值函数,已知类String 的原型为:class String{public:String(const char *str = NULL); // 普通构造函数String(const String &other); // 拷贝构造函数~ String(v... 阅读全文
posted @ 2014-06-20 20:23 Hala 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 下面列举的是Klockwork告警中常见的告警形式,这些情况在编译阶段都不会报出来语法上的错误,并且在运行阶段执行到的概率很小。但是在某些场景下一旦执行到了这些语句,很可能引起进程的跑飞和挂起。1、没有对所有入参指针做有效性检查WORD32 Test(WORD32 *p,WORD32 *q){ WO... 阅读全文
posted @ 2014-04-26 09:55 Hala 阅读(2565) 评论(0) 推荐(0) 编辑