03 2019 档案

摘要:题目:删除有序链表中的重复元素(难度:简单) Given a sorted linked list, delete all duplicates such that each element appear only once. 思路 应该属于链表的基本操作。因为链表是有序的,那么只需从头遍历,跳过相 阅读全文
posted @ 2019-03-18 17:36 星夜之夏 阅读(1524) 评论(0) 推荐(0) 编辑
摘要:题目:爬楼梯(难度:简单) You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct w 阅读全文
posted @ 2019-03-18 17:28 星夜之夏 阅读(151) 评论(0) 推荐(0) 编辑
摘要:题目:求x的平方根(难度:简单) Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non negative integer. Since the ret 阅读全文
posted @ 2019-03-18 17:04 星夜之夏 阅读(145) 评论(0) 推荐(0) 编辑
摘要:题目:二进制求和(难度:简单) Given two binary strings, return their sum (also a binary string). The input strings are both non empty and contains only characters 1 阅读全文
posted @ 2019-03-18 16:53 星夜之夏 阅读(165) 评论(0) 推荐(0) 编辑
摘要:题目:加一(难度:简单) Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most 阅读全文
posted @ 2019-03-16 21:50 星夜之夏 阅读(386) 评论(0) 推荐(0) 编辑
摘要:1. 引言 多线程对于需要处理耗时任务的应用很有用,一方面响应用户操作、更新界面显示,另一方面在“后台”进行耗时操作,比如大量运算、复制大文件、网络传输等。 使用Qt框架开发应用程序时,使用QThread类可以方便快捷地创建管理多线程。而多线程之间的通信也可使用Qt特有的“信号 槽”机制实现。 下面 阅读全文
posted @ 2019-03-02 22:18 星夜之夏 阅读(45293) 评论(9) 推荐(5) 编辑

点击右上角即可分享
微信分享提示