Re: [問題] 字串比較的問題
有個用空間換取時間的方法,
用String 作hash建表。
再直接對HASH後的內容處理:P
這個問題讓我想到State Pattern
不過要用在指令判定上 這可能不太適用..;p
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone everything
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.171.121.11
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 2 之 8 篇):