上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: C++智能指针简单剖析 C++智能指针unique_ptr详解与示例 C++智能指针shared_ptr详解与示例 阅读全文
posted @ 2020-12-02 23:18 hunter-w 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and 阅读全文
posted @ 2020-11-06 22:43 hunter-w 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 多进程和多线程简介 多进程概念 当前的操作系统都是多任务OS 每个独立执行的任务就是一个进程 多进程的优点 可以同时运行多个任务 程序因IO堵塞时,可以释放CPU,让CPU为其他程序服务 当系统有多个CPU时,可以为多个程序同时服务 多进程的缺点 太笨重,不好管理 太笨重,不好切换 多线程概念 一个 阅读全文
posted @ 2020-11-05 00:35 hunter-w 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.length 阅读全文
posted @ 2020-11-04 00:41 hunter-w 阅读(36) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/DswCnblog/p/5629165.html 阅读全文
posted @ 2020-10-30 12:58 hunter-w 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 题目说明 给你一个整数数组 arr,请你帮忙统计数组中每个数的出现次数。 如果每个数的出现次数都是独一无二的,就返回 true;否则返回 false。 示例 1: 输入:arr = [1,2,2,1,1,3] 输出:true 解释:在该数组中,1 出现了 3 次,2 出现了 2 次,3 只出现了 1 阅读全文
posted @ 2020-10-29 00:01 hunter-w 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 转载自拷贝构造函数和移动构造函数 C++11之前,对象的拷贝控制由三个函数决定:拷贝构造函数(Copy Constructor)、拷贝赋值运算符(Copy Assignment operator)和析构函数(Destructor)。 C++11之后,新增加了两个函数:移动构造函数(Move Cons 阅读全文
posted @ 2020-10-27 12:43 hunter-w 阅读(1830) 评论(2) 推荐(2) 编辑
摘要: 从4行代码看右值引用 阅读全文
posted @ 2020-10-27 12:39 hunter-w 阅读(124) 评论(0) 推荐(0) 编辑
摘要: XML简介 XML基本概念 XML(eXtensible Markup Language) 可扩展标记语言:意义+数据 标签可自行定义,具有自我描述性 纯文本表示,跨系统/平台/语言 W3C标准 常规语法 任何的起始标签都必须有一个结束标签 简化写法,例如,可以写成 大小写敏感 每个文件都要有一个根 阅读全文
posted @ 2020-10-27 00:56 hunter-w 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Java字符编码 源文件编码:采用UTF-8编码 程序内部采用UTF-16编码存储所有字符(不是程序员控制) 和外界(文本文件)的输入输出尽量采用UTF-8编码,不能使用一种编码写入,换另一种编码读取 Charset编码类、InputStreamReader/OutputStreamWriter指定 阅读全文
posted @ 2020-10-24 00:52 hunter-w 阅读(279) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页