RUBYの宿題教えてください。at TECH
RUBYの宿題教えてください。 - 暇つぶし2ch29:デフォルトの名無しさん
05/01/25 21:56:55
def qsort(s, first, last)
if first < last then
pivot = s[last]
i = first
j = last - 1
while true do
while i < last && s[i] < pivot do
i += 1
end
while j >= first && s[i] >pivot do
j -= 1
end
if i >= j then
break
end

つづきます。


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch