- 博客(71)
- 资源 (15)
- 收藏
- 关注
原创 解决Ubuntu14.04 LTS中Chrome死机的问题
1. 通过命令行启动 google-chrome –disable-gpu2. 通过点击图标启动进入/usr/share/applications cd /usr/share/applications编辑Chrome的desktop文件: vim google-chrome.desktop在所有的Exec命令后面添加–disable-gpu选项: Exec=/usr/bin/g
2016-01-06 20:04:57
1603
转载 Virtual, Linear, and Physical Addresses
link: http://www.on-time.com/rtos-32-docs/rttarget-32/programming-manual/x86-cpu/protected-mode/virtual-linear-and-physical-addresses.htm_____________________________________________________________
2015-06-19 20:38:52
706
转载 UML序列图总结
转载请注明出处:htt://blog.youkuaiyun.com/tianhai110 序列图主要用于展示对象之间交互的顺序。序列图将交互关系表示为一个二维图。纵向是时间轴,时间沿竖线向下延伸。横向轴代表了在协作中各独立对象的类元角色。类元角色用生命线表示。当对象存在时,角色用一条虚线表示,当对象的过程处于激活状态时,生命线是一个双道线。消息用从一个对象的生命线到另一个对象生命线的箭头表示。
2015-02-07 10:42:52
695
转载 UML类图几种关系的总结
http://blog.youkuaiyun.com/tianhai110/article/details/6339565 ____________________________________________________在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggrega
2015-02-07 10:31:37
465
转载 How to statically link Qt 4
原文地址:http://www.formortals.com/how-to-statically-link-qt-4/————————————————————————————————How to statically link Qt 4September 4, 2009Charles N. Burns25 CommentsMake your entire
2015-01-30 11:40:41
682
转载 SQL 多表联合查询
很少用join,这次学学,并备忘两篇文章!转自:http://hcx-2008.javaeye.com/blog/285661连接查询 通过连接运算符可以实现多个表查询。连接是关系数据库模型的主要特点,也是它区别于其它类型数据库管理系统的一个标志。 在关系数据库管理系统中,表建立时各数据之间的关系不必确定,常把一个实体的所有信息存放在一个表中。当检索数据时,通过连接操作查询
2015-01-11 23:41:29
3005
转载 Linux下vim中文乱码的解决方法
在vim中编辑一个中文文本时,有时候看起来有乱码,以前都是修修补补的弄没有乱码了就不管了,这个问题一直都很困扰我。突然想到这个问题,于是想把它给解决掉,在网上查了许久,有很多这方面的资料,但是说得不是很到位,经过了一天的折腾,将vim卸载了很多次,也安装了很多次,并做了一些小测试,今天终于搞定了。 1、下载 可到http://www.vim.org/下载最新的7.3版本的vim源码
2014-10-29 14:03:04
582
转载 用GDB调试程序(二)
GDB的命令概貌———————启动gdb后,就你被带入gdb的调试环境中,就可以使用gdb的命令开始调试程序了,gdb的命令可以使用help命令来查看,如下所示: /home/hchen> gdb GNU gdb 5.1.1 Copyright 2002 Free Software Foundation, Inc. GDB is free softw
2014-10-01 23:31:30
438
转载 用GDB调试程序(一)
用GDB调试程序GDB概述————GDB是GNU开源组织发布的一个强大的UNIX下的程序调试工具。或许,各位比较喜欢那种图形界面方式的,像VC、BCB等IDE的调试,但如果你是在UNIX平台下做软件,你会发现GDB这个调试工具有比VC、BCB的图形化调试器更强大的功能。所谓“寸有所长,尺有所短”就是这个道理。一般来说,GDB主要帮忙你完成下面四个方面的功能: 1、启动你的
2014-10-01 23:29:49
483
转载 Trie树:应用于统计和排序
1. 什么是trie树 1.Trie树 (特例结构树) Trie树,又称单词查找树、字典树,是一种树形结构,是一种哈希树的变种,是一种用于快速检索的多叉树结构。典型应用是用于统计和排序大量的字符串(但不仅限于字符串),所以经常被搜索引擎系统用于文本词频统计。它的优点是:最大限度地减少无谓的字符串比较,查询效率比哈希表高。 Trie的核心思想是空间换时间。利用
2014-09-26 22:49:15
644
转载 从set/map谈到hashtable/hash_map/hash_set
1、从set/map谈到hashtable/hash_map/hash_set 稍后本文第二部分中将多次提到hash_map/hash_set,下面稍稍介绍下这些容器,以作为基础准备。一般来说,STL容器分两种: 序列式容器(vector/list/deque/stack/queue/heap), 关联式容器。关联式容器又分为set(集合)和map(映射表)两大
2014-09-25 20:18:20
637
转载 Installing C++11 on Ubuntu 12.04 LTS
原文地址:http://clark.ws/2013/08/26/installing-c11-on-ubuntu-12-04-lts/Installing C++11 on Ubuntu 12.04 LTSAugust 26, 2013 byColin Clark ·1 CommentI used to code in C. In fact, I wrote a lo
2014-09-25 10:44:19
844
原创 【LeetCode】Binary Tree Level Order Traversal II
题目:Binary Tree Level Order Traversal IITotal Accepted: 18664 Total Submissions: 59503 Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from le
2014-09-23 21:26:19
522
原创 【LeetCode】Best Time to Buy and Sell Stock III
https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/这题
2014-09-23 18:57:27
515
原创 【LeetCode】Best Time to Buy and Sell Stock II
https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/每笔赚钱交易都做:
2014-09-23 18:51:29
491
原创 【LeetCode】Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),
2014-09-23 18:48:54
508
原创 【LeetCode】Word Break
Given a string s and a dictionary of words dict, determine ifs can be segmented into a space-separated sequence of one or more dictionary words.For example, givens = "leetcode",dict = ["leet",
2014-09-23 18:41:50
502
原创 【LeetCode】Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路: 首先利用快慢在
2014-08-28 00:00:25
485
原创 【LeetCode】Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For example,Given {1,2,3,4}, reorder it to {1,4
2014-08-27 23:34:02
375
原创 【UVaOJ】133 - The Dole Queue
The Dole Queue In a serious attempt to downsize (reduce) the dole queue, The NewNational Green Labour Rhinoceros Party has decided on the followingstrategy. Every day all dole applicants
2014-08-16 00:07:38
604
原创 【UVaOJ】101 - The Blocks Problem
The Blocks Problem Background Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AIstudy of planning and rob
2014-08-15 17:34:44
480
原创 【UVaOJ】127 - "Accordian" Patience
``Accordian'' Patience You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:Deal cards one by one in a row from left to right, not ove
2014-08-15 16:06:10
511
原创 【LeetCode】LRU Cache
LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:get and set.get(key) - Get the value (will always be positive)
2014-08-13 23:24:56
449
原创 【LeetCode】Reverse Words in a String
题目地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/描述: 给定一个字符串S, 以单词为单位逆序输出,如输入:"the sky is blue",则输出“blue is sky the". 单词的定义:连续的非空白字符序列。 输入字符可以以空白字符开头和结尾
2014-07-25 23:52:47
608
转载 算法-求二进制数中1的个数
算法-求二进制数中1的个数问题描述任意给定一个32位无符号整数n,求n的二进制表示中1的个数,比如n = 5(0101)时,返回2,n = 15(1111)时,返回4这也是一道比较经典的题目了,相信不少人面试的时候可能遇到过这道题吧,下面介绍了几种方法来实现这道题,相信很多人可能见过下面的算法,但我相信很少有人见到本文中所有的算法。如果您上头上有更好的算法,或者本文没有提到
2014-03-05 21:06:56
635
原创 [LeetCode] Evaluate Reverse Polish Notation
题目:http://oj.leetcode.com/problems/evaluate-reverse-polish-notation/Evaluate Reverse Polish Notation Total Accepted: 5988 Total Submissions: 31842My SubmissionsEvaluate t
2014-02-21 00:19:08
580
原创 【LeetCode】Binary Tree Preorder Traversal
地址:http://oj.leetcode.com/problems/binary-tree-preorder-traversal/Binary Tree Preorder Traversal Total Accepted: 9880 Total Submissions: 28874My SubmissionsGiven a binary tre
2014-02-20 21:47:07
509
原创 【LeetCode】Binary Tree Level Order Traversal
地址:http://oj.leetcode.com/problems/binary-tree-level-order-traversal/#Binary Tree Level Order Traversal Total Accepted: 7502 Total Submissions: 24956My SubmissionsGiven a
2014-02-20 21:32:14
495
原创 【LeetCode】Linked List Cycle
题目地址:http://oj.leetcode.com/problems/linked-list-cycle/解法:没有说不可以改变节点里的值,所以我是对每个经过的节点里的变量val,赋予一个特殊值,然后通过判断是否会遇到这个特殊值来判断是否存在环。** * Definition for singly-linked list. * struct ListNode
2014-02-20 20:20:56
486
原创 【UVaOJ】712 - S-Trees
S-Trees A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function . Each path of the S-tree begins at the root node and consists of n+1 nodes. E
2014-01-06 20:49:52
626
原创 【UVaOJ】196 - Spreadsheet
Spreadsheet In 1979, Dan Bricklin and Bob Frankston wrote VisiCalc, the first spreadsheet application. It became a huge success and, at that time, was the killer application for the Apple
2014-01-05 17:19:47
742
转载 Qt creator常用快捷键
原文地址:http://www.cnblogs.com/mikewolf2002/archive/2012/02/03/2336474.htmlF2 跳转到函数定义Shift+F2 声明和定义之间切换F4 头文件和源文件之间切换Ctrl+1 欢迎模式Ctrl+2 编辑模式Ctrl+3
2014-01-03 15:00:35
615
原创 【UVaOJ】 657 - The die is cast
InterGames is a high-tech startup company that specializes in developing technology that allows users to play games over the Internet. A market analysis has alerted them to the fact that games of chan
2014-01-03 00:25:52
695
原创 【UVaOJ】401 Palindromes
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string
2013-12-25 13:32:20
632
SPI, 6800,8080
2013-10-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人