<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[DallasSeller的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/DallasSeller</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; DallasSeller]]></copyright><item><title><![CDATA[[机械键盘]Filco87 奶酪绿 FKBN87MRL/ECW2 开箱]]></title><link>https://blog.csdn.net/DallasSeller/article/details/55002554</link><guid>https://blog.csdn.net/DallasSeller/article/details/55002554</guid><author>DallasSeller</author><pubDate>Sun, 12 Feb 2017 17:54:20 +0800</pubDate><description><![CDATA[关于键盘要算有点价值的键盘，这是第四把了。之前买的第一把就是Cherry的机械键盘王者3494。到后来觉得键盘太大了，换了第二把PokerII，再到后来觉得有线键盘比较舒服，又中意ThinkPad的小红点，于是入手ThinkPad的小红点蓝牙键盘，这个键盘是充电式，而不是上电池的，蓝牙得非常纯粹，但是这个键盘和ThinkPad笔记本上的键盘手感完全不在一个档次。到现在，都说Filco好，又因为很后悔]]></description><category></category></item><item><title><![CDATA[[Orange‘s：一个操作系统的实现]第一天：环境配置]]></title><link>https://blog.csdn.net/DallasSeller/article/details/45337819</link><guid>https://blog.csdn.net/DallasSeller/article/details/45337819</guid><author>DallasSeller</author><pubDate>Tue, 28 Apr 2015 16:33:06 +0800</pubDate><description><![CDATA[前言：环境介绍电脑：Macbook Air 2014年早期版 
系统：OS X 10.10.3虚拟机：由于在Mac上编译Bochs一直不通过，原因在sourceforge上有说：sourceforge.net/p/bochs/bugs/1344 /1360，这两个地址说他们的程序员没有开发mac下的，所以会编译不通过。我不想多折腾，用VirtualBox，同时也是免费的。去官网下载VirtualBo]]></description><category></category></item><item><title><![CDATA[［十天学会Linux Shell］第一天：小试牛刀]]></title><link>https://blog.csdn.net/DallasSeller/article/details/45227351</link><guid>https://blog.csdn.net/DallasSeller/article/details/45227351</guid><author>DallasSeller</author><pubDate>Thu, 23 Apr 2015 21:20:59 +0800</pubDate><description><![CDATA[十天学会Linux Shell系列文章，在看完之后让你的工作效率提升不少。]]></description><category></category></item><item><title><![CDATA[2015年找实习心得&总结]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44926319</link><guid>https://blog.csdn.net/DallasSeller/article/details/44926319</guid><author>DallasSeller</author><pubDate>Tue, 07 Apr 2015 21:43:58 +0800</pubDate><description><![CDATA[1、CVTE一家做电视的公司吧？给的福利很好的样子，不过对招的人没什么要求，我们这个专业好多人去了。那天下午在大学城中心酒店咖啡厅面试，人很多，等了快两个小时。进去一个面试官对3个人。 
进去自我介绍，然后讲自己感觉最好的项目，然后问会有什么原因让你不能来实习。 
这个过去太久远没有什么好说的，感觉他是不想招我们，我们在官网上还做了45分钟的题目。后来只有实验室一个做java的收到了第二天的技术笔试]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Symmetric Tree]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44812513</link><guid>https://blog.csdn.net/DallasSeller/article/details/44812513</guid><author>DallasSeller</author><pubDate>Wed, 01 Apr 2015 20:25:08 +0800</pubDate><description><![CDATA[Symmetric Tree
这题在剑指Offer上有，思路也是采用书上的。使用两个遍历顺序，两个顺序是对称的。这样就是实现了判断对称与否，一个使用先序，一个使用先序中先遍历右子树。
代码如下：
    bool isSymmetric(TreeNode *root) {
        return isSymmetric(root, root);    
    }
    bool i]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Valid Number]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44785763</link><guid>https://blog.csdn.net/DallasSeller/article/details/44785763</guid><author>DallasSeller</author><pubDate>Tue, 31 Mar 2015 21:07:26 +0800</pubDate><description><![CDATA[Valid Number


我的思路：
1、这题是判断一个字符串是否是一个数字。这题在剑指Offer上有，我这边的代码主体是参考了那上面的，针对LeetCode的另一些特殊情况，有修改。
2、思路如下：如果是空字符串，返回否。接着，跳过前面的空格，如果当前字符是正负号，那么下一个，如果结束了，就返回错误，没有就去扫描数字的长度，接着扫描空格的长度，如果没有空格，而且没有结束，判断是否是]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Min Stack]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44195337</link><guid>https://blog.csdn.net/DallasSeller/article/details/44195337</guid><author>DallasSeller</author><pubDate>Wed, 11 Mar 2015 10:28:16 +0800</pubDate><description><![CDATA[Min Stack我的思路： 
1、最小栈要求能在O(1)时间内取到栈内最小值。 
2、定义两个栈，一个用来保存最小值。在入栈的时候如果当前值比最小栈的值还要小就Push，如果不是就算了。在出栈的时候，如果出栈元素等于最小栈栈顶元素，最小栈也出栈，否则算了。public:
    void push(int x) {
        if (!data.empty()) {]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Length of Last Word && Excel Sheet Column Title]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44195245</link><guid>https://blog.csdn.net/DallasSeller/article/details/44195245</guid><author>DallasSeller</author><pubDate>Wed, 11 Mar 2015 10:22:18 +0800</pubDate><description><![CDATA[Length of Last Word1、计算最后一个字符的长度 
2、两个指针移动。    int lengthOfLastWord(const char *s) {
        int p1 = 0, p2 = 0, ans = 0;
        bool flag = false;
        while (s[p1] != '\0') {
            if (!fla]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Count and Say && Valid Palindrome && Longest Common Prefix]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44195109</link><guid>https://blog.csdn.net/DallasSeller/article/details/44195109</guid><author>DallasSeller</author><pubDate>Wed, 11 Mar 2015 10:13:23 +0800</pubDate><description><![CDATA[Count and Say 我的思路： 
1、数着说，1叫做11，11叫做21（两个1），接着往下数21叫做1211，不断往下数n代，求结果。 
2、刚看到Discuss区一个5ms的有3个赞同，我的2ms。    string countAndSay(int n) {
        string ans("1");
        if (n == 1)
            return a]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]ZigZag Conversion && Valid Sudoku && String to Integer (atoi)]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44194791</link><guid>https://blog.csdn.net/DallasSeller/article/details/44194791</guid><author>DallasSeller</author><pubDate>Wed, 11 Mar 2015 09:51:17 +0800</pubDate><description><![CDATA[ZigZag Conversion我的思路： 
1、将一个锯齿状排列的字符串拉成一条线，输入到一个新的字符串中。 
2、只要弄清楚循环的特征，算好nRows的变化给循环带来的变化，还是很容易完成。    string convert(string s, int nRows) {
        string ans;        for (int i = 1; i <= nRows; i++)]]></description><category></category></item><item><title><![CDATA[[LeetCode OJ]Implement strStr()]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44194111</link><guid>https://blog.csdn.net/DallasSeller/article/details/44194111</guid><author>DallasSeller</author><pubDate>Wed, 11 Mar 2015 09:01:15 +0800</pubDate><description><![CDATA[Implement strStr()我的思路： 
1、实现字符串匹配算法。 
2、我知道比较出名的是KMP算法，在算法导论上有。 
3、思路是先算出needle字符串中相同前缀后缀的长度，然后在主函数中依据这个信息来加速匹配过程。class Solution {
public:
    int strStr(char *haystack, char *needle) {
        int hl]]></description><category></category></item><item><title><![CDATA[Number of 1 Bits && Rotate Array && Reverse Bits]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44180833</link><guid>https://blog.csdn.net/DallasSeller/article/details/44180833</guid><author>DallasSeller</author><pubDate>Tue, 10 Mar 2015 21:01:34 +0800</pubDate><description><![CDATA[Number of 1 Bits

我的思路：
1、这题是找出一个二进制数中有多少个1。
2、我想是和1相与，然后循环移位一直32次，让一个数来计数就可以了。
代码如下：
    int hammingWeight(uint32_t n) {
        int ans = 0;
        int i = 32;
        while (i--) {]]></description><category></category></item><item><title><![CDATA[Compare Version Numbers]]></title><link>https://blog.csdn.net/DallasSeller/article/details/44020035</link><guid>https://blog.csdn.net/DallasSeller/article/details/44020035</guid><author>DallasSeller</author><pubDate>Mon, 02 Mar 2015 16:36:45 +0800</pubDate><description><![CDATA[Compare Version Numbers  
思路： 
1、比较版本的题目。 
2、用”.”来判断数字，写一个用来处理中间数字的函数。当两个字符串都到达末尾的时候就结束。class Solution {
public:
    int compareVersion(string version1, string version2) {
        int i = 0, j = 0;]]></description><category></category></item><item><title><![CDATA[Rotate List]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43817617</link><guid>https://blog.csdn.net/DallasSeller/article/details/43817617</guid><author>DallasSeller</author><pubDate>Sat, 14 Feb 2015 15:30:30 +0800</pubDate><description><![CDATA[Rotate List 
我的思路： 
1、将一个链表旋转，这个和找出倒数第几个数差不多。 
2、改成循环链表，得到链表长度，便可以得到结果。ListNode *rotateRight(ListNode *head, int k) {
    if (head == NULL)
        return head;
    ListNode *tail = head;
    int len =]]></description><category></category></item><item><title><![CDATA[Insertion Sort List && Remove Duplicates from Sorted List II && Intersection of Two Linked Lists]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43489323</link><guid>https://blog.csdn.net/DallasSeller/article/details/43489323</guid><author>DallasSeller</author><pubDate>Wed, 04 Feb 2015 17:38:42 +0800</pubDate><description><![CDATA[Insertion Sort List

1、插入排序，用了个头节点。
2、天气太冷，冻得写出来的代码就是翔。
    ListNode *insertionSortList(ListNode *head) {
        if (head == NULL)
            return NULL;
        ListNode *p = head->next;]]></description><category></category></item><item><title><![CDATA[Remove Duplicates from Sorted List && Merge Two Sorted Lists && Linked List Cycle && Remove Nth Node]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43452079</link><guid>https://blog.csdn.net/DallasSeller/article/details/43452079</guid><author>DallasSeller</author><pubDate>Tue, 03 Feb 2015 17:05:43 +0800</pubDate><description><![CDATA[Remove Duplicates from Sorted List
1、已排序的链表删除相同的数据。
    ListNode *deleteDuplicates(ListNode *head) {
        ListNode *p = head;
        int temp;
        
        while (p != NULL) {
            te]]></description><category></category></item><item><title><![CDATA[Single Number && Single Number II && Factorial Trailing Zeroes && Pow(x, n) && Add Two Numbers]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43376273</link><guid>https://blog.csdn.net/DallasSeller/article/details/43376273</guid><author>DallasSeller</author><pubDate>Sun, 01 Feb 2015 22:00:32 +0800</pubDate><description><![CDATA[Single Number
1、异或交换性质
    int singleNumber(int A[], int n) {
        int ans = A[0];
        for (int i = 1; i < n; i++)
            ans ^=A[i];
        return ans;
    }]]></description><category></category></item><item><title><![CDATA[Excel Sheet Column Number && Roman to Integer && Integer to Roman && Reverse Integer && Palindrome N]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43371579</link><guid>https://blog.csdn.net/DallasSeller/article/details/43371579</guid><author>DallasSeller</author><pubDate>Sun, 01 Feb 2015 14:38:35 +0800</pubDate><description><![CDATA[Excel Sheet Column Number
我的思路：
1、进制转换。
代码如下：
    int titleToNumber(string s) {
        int ans = 0;
        
        for (int i = 0; i < s.size(); i++) 
            ans = ans * 26 + s[i] - 64; 

]]></description><category></category></item><item><title><![CDATA[Search a 2D Matrix]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43341807</link><guid>https://blog.csdn.net/DallasSeller/article/details/43341807</guid><author>DallasSeller</author><pubDate>Sat, 31 Jan 2015 16:19:36 +0800</pubDate><description><![CDATA[Search a 2D Matrix


我的思路：
1、在一个排好序的二维数组中找目标数，返回成功或者失败。
2、二分查找，首先在列上找值，定位到哪一行之后，在行内二分查找。复杂度是log(n) + log(m)。
代码如下：
   bool searchMatrix(vector > &matrix, int target) {
    	int n = matrix.size(]]></description><category></category></item><item><title><![CDATA[Rotate Image]]></title><link>https://blog.csdn.net/DallasSeller/article/details/43311833</link><guid>https://blog.csdn.net/DallasSeller/article/details/43311833</guid><author>DallasSeller</author><pubDate>Fri, 30 Jan 2015 20:08:29 +0800</pubDate><description><![CDATA[Rotate Image


我的思路：
1、顺时针将n * n的矩阵在旋转90度，空间复杂度O(1)。
2、双重循环，单个循环内将每条边的数据赋值，使用一个临时变量保存最后一个要赋值的数据值。
3、写好每个控制变量，6ms过，讨论区还有一些其他方法，都差不多。考虑好矩阵旋转的特性。
代码如下：
    void rotate(vector > &matrix) {
    	in]]></description><category></category></item></channel></rss>