Wednesday, February 18, 2009
Tuesday, February 17, 2009
Saturday, February 14, 2009
Thursday, February 12, 2009
Wednesday, February 11, 2009
Friday, February 6, 2009
說回那兩個程式
1)num = (num - (num%2))/2
why don't num/2
it is so strange -_________________-
2)for (int i = 0; i <= ch.length() -1; i++)
why I start from the first character?
the question ask "the last occurrence", why i don't search form the end
and once 'x' is found, return the position
then everything is done.
actually, i never think in this way.
-_____________________________-
Posted by
roy
at
2:05 PM
0
comments
Labels:
Normal Day
Wednesday, February 4, 2009

昨天去了見工,除去兩次見暑期工的經驗外,
第一次真正好formal咁面試,
表現......麻麻-_-
期實直頭可以話係差添-__-
一開始,筆試:
第一版,程式語言的知識
詳列十多種程式語言剔熟練程度1-5
Very familiarize: None
familiarize:C++
OK:Java
not familiarize:
Basic,SQL
no knowledge:others not above, such as API,J2EE,Oracle,UML,etc
第二版,寫程式,兩題
1)given a decimal number, write a function to count the number of bits in binary representation
MY ANS:
int binary_bits(int num)
{
int no_bits=0;
while (num != 0)
{
num = (num - (num%2))/2;
no_bits++;
};
return no_bits+1;
}
2)given a array of character, write a function to find the position of 'x' in the array
MY ANS:
int find_position(char * ch)
{
int position = -1;
char * head = ch;
for (int i=0; i <= ch.length()-1;i++) { if (*head == 'x') position = head - ch; head++; }; return position; } 回答完後,覆了一次,按電話通知那人說"我搞定了"(我可不知他姓什名誰,他也沒自我介紹) 他進來,看了一次,中途另一人拿了部notebook進來並坐下工作 他看後唸唸有詞地說,"這樣做?" 接著把答卷給了另一人看 接著便開始發問了 "先介紹下你自己" my mine blank a second 接著我開始自我介紹... "你為什麼應徵這份工" 我答... "EIE 讀什麼的" 我答... "不如你解釋下這兩個程式" 我解... 接著他介紹了一下他們公司 說這是第一輪面試 問我有沒有問題 我答-暫時沒有 接著握手後便送了我出去了
Posted by
roy
at
1:42 PM
0
comments
Labels:
Normal Day
Friday, January 30, 2009
Monday, January 26, 2009
Friday, January 23, 2009
Sunday, January 18, 2009
Saturday, January 17, 2009
Wednesday, January 14, 2009
名言
蘇格拉底:『The only thing I know, is I know nothing.』
邱吉爾:『If you're going through hell, keep going.』
Someone:『It was the spring of hope,it was the winter of despair。』
Posted by
roy
at
2:49 PM
0
comments
Labels:
Normal Day
Monday, December 29, 2008
Wednesday, December 24, 2008
Merry Christmas to all!
#Music:Trans-Siberian Orchestra "Wizards of Winter"
Posted by
roy
at
11:50 PM
0
comments
Labels:
Normal Day
Thursday, December 18, 2008
may be the first electric car you would like to buy?
Posted by
roy
at
10:46 PM
0
comments
Labels:
Normal Day
Wednesday, December 17, 2008
Sunday, December 14, 2008
Posted by
roy
at
10:01 PM
0
comments
Labels:
Normal Day
Sunday, December 7, 2008
Thursday, December 4, 2008
為你創造牽手機會的筆
人體大約是2000000歐姆,鉛筆裡石墨畫出的線大約是每英尺1歐姆,
當鉛筆在不斷塗鴉的時候,人體和畫出的圖案組合成的電阻就在不斷變化。
所以,玩這個筆有兩個要點:1)人體的一部分要接觸紙上已有的圖案,
2)筆必須在人接觸的那個圖案上繼續畫。
滿足這兩點,這只筆才會發音。
source
well, i just want to say, this is Engineering.
simple but interesting.
Posted by
roy
at
11:06 PM
0
comments
Labels:
great,
Normal Day





