<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>“hemono” 的评论</title>
	<atom:link href="http://www.hemono.com/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.hemono.com</link>
	<description>常记溪亭日暮，沉醉不知归路……</description>
	<lastBuildDate>Mon, 26 Jul 2010 02:10:44 +0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>hemon 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-919</link>
		<dc:creator>hemon</dc:creator>
		<pubDate>Mon, 26 Jul 2010 02:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-919</guid>
		<description>@nomyself 
使用了正则表达式，你知道算法复杂度是多少吗？不使用它你还能不能完成？
if(/\b$word\b/){
}</description>
		<content:encoded><![CDATA[<p>@nomyself<br />
使用了正则表达式，你知道算法复杂度是多少吗？不使用它你还能不能完成？<br />
if(/\b$word\b/){<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>nomyself 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-917</link>
		<dc:creator>nomyself</dc:creator>
		<pubDate>Sat, 24 Jul 2010 09:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-917</guid>
		<description>用perl写了个，是找第一个出现的单词，分不分大小写？
&lt;code&gt;
#/usr/bin/perl

my $word = $ARGV[0];
open(FILE, &#039;file&#039;) &#124;&#124; die &quot;open file error : $!\n&quot;;
while(){
        chomp;
        if(/\b$word\b/){
                $line = $.;
                $colum = 1;
                @words = split;
                foreach(@words){
                        if($_ !~ /\b$word\b/){
                                $colum += 1;
                        }
                        else{
                                print &quot;$word : $line,$colum\n&quot;;
                                last;
                        }
                }
        last;
        }
}
close FILE;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>用perl写了个，是找第一个出现的单词，分不分大小写？<br />
<code><br />
#/usr/bin/perl</p>
<p>my $word = $ARGV[0];<br />
open(FILE, 'file') || die "open file error : $!\n";<br />
while(){<br />
        chomp;<br />
        if(/\b$word\b/){<br />
                $line = $.;<br />
                $colum = 1;<br />
                @words = split;<br />
                foreach(@words){<br />
                        if($_ !~ /\b$word\b/){<br />
                                $colum += 1;<br />
                        }<br />
                        else{<br />
                                print "$word : $line,$colum\n";<br />
                                last;<br />
                        }<br />
                }<br />
        last;<br />
        }<br />
}<br />
close FILE;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>腾讯php程序员面试题目答案 &#171; 排头兵 @ Talk 关于 腾讯php程序员面试题目——设计任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=205&#038;cpage=1#comment-908</link>
		<dc:creator>腾讯php程序员面试题目答案 &#171; 排头兵 @ Talk</dc:creator>
		<pubDate>Sat, 17 Jul 2010 09:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=205#comment-908</guid>
		<description>[...] 在我鸦片师兄的博客看到他对腾讯面试题的解答,我心血来潮,在他的基础上面提出了自己的解法，主要是受他的启发，利用令牌算法优化了一下. [...]</description>
		<content:encoded><![CDATA[<p>[...] 在我鸦片师兄的博客看到他对腾讯面试题的解答,我心血来潮,在他的基础上面提出了自己的解法，主要是受他的启发，利用令牌算法优化了一下. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>王凯 关于 江西电信，如狗天翼！ 的评论</title>
		<link>http://www.hemono.com/?p=225&#038;cpage=1#comment-893</link>
		<dc:creator>王凯</dc:creator>
		<pubDate>Tue, 06 Jul 2010 08:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=225#comment-893</guid>
		<description>反戈</description>
		<content:encoded><![CDATA[<p>反戈</p>
]]></content:encoded>
	</item>
	<item>
		<title>淘宝网购物 关于 江西电信，如狗天翼！ 的评论</title>
		<link>http://www.hemono.com/?p=225&#038;cpage=1#comment-892</link>
		<dc:creator>淘宝网购物</dc:creator>
		<pubDate>Mon, 05 Jul 2010 12:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=225#comment-892</guid>
		<description>沙发~~~</description>
		<content:encoded><![CDATA[<p>沙发~~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>huangming 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-883</link>
		<dc:creator>huangming</dc:creator>
		<pubDate>Fri, 18 Jun 2010 11:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-883</guid>
		<description>哈哈！把所有想到的方法都测试一下看哪个高效</description>
		<content:encoded><![CDATA[<p>哈哈！把所有想到的方法都测试一下看哪个高效</p>
]]></content:encoded>
	</item>
	<item>
		<title>hemon 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-882</link>
		<dc:creator>hemon</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-882</guid>
		<description>每个单词的结果生成一个文件，以后查询的直接按单词读文件名，哈哈……</description>
		<content:encoded><![CDATA[<p>每个单词的结果生成一个文件，以后查询的直接按单词读文件名，哈哈……</p>
]]></content:encoded>
	</item>
	<item>
		<title>hemon 关于 腾讯php程序员面试题目——设计任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=205&#038;cpage=1#comment-881</link>
		<dc:creator>hemon</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=205#comment-881</guid>
		<description>顶paitoubing，这样就更快了，把坏人都列出来，直接毙掉，哈哈……</description>
		<content:encoded><![CDATA[<p>顶paitoubing，这样就更快了，把坏人都列出来，直接毙掉，哈哈……</p>
]]></content:encoded>
	</item>
	<item>
		<title>hemon 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-880</link>
		<dc:creator>hemon</dc:creator>
		<pubDate>Fri, 18 Jun 2010 09:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-880</guid>
		<description>切分就要遍历一遍文本，不过你查找一个单词也是要遍历文本的，所以建立倒排索引还是很经济的。</description>
		<content:encoded><![CDATA[<p>切分就要遍历一遍文本，不过你查找一个单词也是要遍历文本的，所以建立倒排索引还是很经济的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>huangming 关于 腾讯php程序员面试题目——编程任务（答） 的评论</title>
		<link>http://www.hemono.com/?p=194&#038;cpage=1#comment-879</link>
		<dc:creator>huangming</dc:creator>
		<pubDate>Fri, 18 Jun 2010 08:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.hemono.com/?p=194#comment-879</guid>
		<description>哦 我好像理解错了 涛哥是说存到文本里 因为数组的话这么多的数据开销太大</description>
		<content:encoded><![CDATA[<p>哦 我好像理解错了 涛哥是说存到文本里 因为数组的话这么多的数据开销太大</p>
]]></content:encoded>
	</item>
</channel>
</rss>
