Q:(B)將資料2、1、4、5、3 依序插入空的二元搜尋數(binary search tree),再以前
序追蹤(
preorder traversal)其結果為?
(A)12345
(B)21435
(C)21453
(D)54321
桃園縣98年國民中學新進教師甄選【專門科目:電腦】試題#2191
求以下程式的時間複雜度:
for(i=1;i<n;i++)
{
for(j=1;j<n;j=j+i)
x=x+i;
}
答案是nΣ1/n=nθ(logn)=Θ(nlogn)
本信件可能包含中華電信股份有限公司機密資訊,非指定之收件者,請勿蒐集、處理或利用本信件內容,並請銷毀此信件.如為指定收件者,應確實保護郵件中本公司之營業機密及個人資料,不得任意傳佈或揭露,並應自行確認本郵件之附檔與超連結之安全性,以共同善盡資訊安全與個資保護責任.
Please be advised that this email message (including any attachments) contains confidential information and may be legally privileged. If you are not the intended recipient, please destroy this message and all attachments from your system and do not further collect, process, or use them. Chunghwa Telecom and all its subsidiaries and associated companies shall not be liable for the improper or incomplete transmission of the information contained in this email nor for any delay in its receipt or damage to your system. If you are the intended recipient, please protect the confidential and/or personal information contained in this email with due care. Any unauthorized use, disclosure or distribution of this message in whole or in part is strictly prohibited. Also, please self-inspect attachments and hyperlinks contained in this email to ensure the information security and to protect personal information.
Subscribe to:
Post Comments (Atom)
熱門必看
-
https://botexam.tabf.org.tw/tw/ptc_101cht/BotFAQ.asp
-
http://www.hfu.edu.tw/~lib/srvc/exam1/exam1.htm#mis
-
包括 計算機概論 資訊概論 資料結構 資料庫 演算法 程式設計 等問題皆可發問
-
https://ictjournal.itri.org.tw/content/Messagess/contents.aspx?&MmmID=654304432061644411&CatID=654313611231473607&MSID=654526020...
-
http://web.hk.edu.tw/~aar/Html/Exam/contents.html
-
作者 huangyuhung (yuhung) 看板 Gov_owned 標題 [心得] 中鋼機械面試流程分享 時間 Sat Jul 27 15:28:39 2019 在這個版上接受大家的資訊獲益良多,也是時候投桃報李了,因為還在面試官轟炸的餘波 中,所以敘述如...
-
9/9 空 37 空 原因: 財報年減42%,新聞卻騙人說月增62%誘多出貨,加上前一陣子又漲了一段。 9/10 驗證11:00,跌到36。 預估: KD死亡交叉,第一波跌幅會到前波漲幅一半,約34.6。 以上是事後諸葛推論,未實際操作。 9/23 這個月...
-
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID) .setSmallIcon(R.drawable.notification_icon) ...
No comments:
Post a Comment