c++
sharply.hatenablog.com これの続き。 単純に高速なアルゴリズムを使う 例えば"ham"という文字列がある配列に含まれるか?という問いに対して、 some_list = ["spam", "ham", "eggs"] if "ham" in some_list というリスト検索ではO(log(n))ですが、Rubyにお…
sharply.hatenablog.com これの続き。 単純に高速なアルゴリズムを使う 例えば"ham"という文字列がある配列に含まれるか?という問いに対して、 some_list = ["spam", "ham", "eggs"] if "ham" in some_list というリスト検索ではO(log(n))ですが、Rubyにお…