比較
「比較」を扱った67問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- C / WRITE · 2026-11-18 2列のキーで下限を探す 複合キー, 辞書式順序, 二分探索, lower_bound, 複合インデックス, composite key, lexicographic order, binary search
- C / DEBUG · 2026-11-18 ||でつないだ比較関数 比較関数, bsearch, 論理和の値, 複合キー, 辞書式順序, comparator, logical or, composite key
- C / DEBUG · 2026-11-17 同じ単語が別のキーになる 文字列の比較, ポインタの比較, strcmp, 単語の出現回数, 連想配列, string comparison, pointer comparison, word count
- C / WRITE · 2026-11-16 Morton順に並べる比較関数 qsortの比較関数, Morton順序, Z順序曲線, 符号なし整数の差, comparator, qsort, Morton code
- Rust / WRITE · 2026-11-15 桁数に上限のない自然順 自然順ソート, 自然順比較, 数字の連続, 桁数, 先頭の0, Ordering, タプルの比較, natural sort, natural order
- Rust / READ · 2026-11-15 数字入りの名前をsort 文字列の比較, 辞書式順序, バイト順, 自然順ソート, 大文字と小文字, lexicographic order, string sort
- C++ / DEBUG · 2026-11-09 12以下で最も重い組 ビットの判定, ビットマスク, ビット全探索, 部分集合の和, 2のi乗, bit test, bitmask, subset sum
- C / DEBUG · 2026-11-09 見つからない時の-1 戻り値の判定, 見つからないときの-1, 0は偽, 0以外は真, 番兵値, 線形探索, return value check, sentinel value, truthiness
- Rust / DEBUG · 2026-11-08 最新版を選ぶmax derive, 自動導出, Ord, PartialOrd, 辞書式順序, フィールドの宣言順, Iterator::max, derived ordering, lexicographic order
- C / READ · 2026-11-08 空範囲の最大要素の位置 最大要素, 空の範囲, 末尾の次を指すポインタ, ポインタの引き算, 同点の扱い, max element, empty range, one past the end
- C++ / READ · 2026-11-07 コピーした乱数エンジン 乱数エンジンのコピー, 内部状態, 擬似乱数の再現, std::mt19937, random engine copy, engine state, reproducible random numbers
- C / WRITE · 2026-10-27 挿入順の違う表を比べる ハッシュ表の等価判定, 線形探査, 枠の並び, hash table equality, linear probing
- C / DEBUG · 2026-10-27 同数なら小さいIDのはず ハッシュ表の走査順, 同点の扱い, 最頻値, tie-breaking, hash table iteration order
- Haskell / READ · 2026-10-25 近い候補を選ぶ組の比較 編集距離, レーベンシュタイン距離, 隣り合う文字の入れ替え, タプルの辞書式順序, minimum, Levenshtein distance, spelling suggestion, lexicographic order
- C++ / READ · 2026-10-24 文字列を比べるテスト テストの比較関数, const char* の比較, 配列からポインタへの変換, 文字列の等値比較, pointer comparison, string literal, expect_eq
- C++ / DEBUG · 2026-10-24 値が無いと通るテスト テストの判定, std::optional の比較, nullopt を見逃すテスト, from_chars, optional comparison, vacuous pass, test helper
- C / READ · 2026-10-24 2^53+1の往復 2^53, 倍精度で表せる整数, 通常の算術型変換, 最近接偶数丸め, usual arithmetic conversions, round half to even, double precision integer
- Haskell / WRITE · 2026-10-23 バージョンを比べるキー 導出された Ord, 構築子の宣言順, Maybe の順序, リストとタプルの辞書式比較, バージョン番号の比較, semantic versioning, derived Ord
- Haskell / READ · 2026-10-23 いちばん大きい優先度 導出された Ord, 構築子の宣言順, deriving Ord, derived instance, constructor order, maximum
- Haskell / DEBUG · 2026-10-23 名前で決まる優勝者 導出された Ord, フィールドの宣言順, レコードの比較, deriving Ord, field order, derived comparison
- C / WRITE · 2026-10-22 負の0を正の0に揃える 負のゼロの正規化, 符号付きゼロ, -0.0と+0.0, 浮動小数点数の比較, normalize negative zero, signed zero
- C / READ · 2026-10-22 下限0で止めたはずの値 負のゼロ, 符号付きゼロ, -0.0と+0.0, 浮動小数点数の比較, printfの%g, negative zero, signed zero, IEEE 754
- C / DEBUG · 2026-10-22 見つからない鏡像の点 負のゼロ, 符号付きゼロ, memcmpによる構造体の比較, 浮動小数点数のビット表現, negative zero, memcmp struct comparison, signed zero
- C / WRITE · 2026-10-21 相対誤差で比べるテスト 浮動小数点数の比較, 相対誤差, 許容誤差, 単体テストの期待値, relative tolerance, floating point comparison, approximately equal
- C++ / WRITE · 2026-10-18 接頭辞で引く単語の範囲 equal_range, 接頭辞検索, 射影, 辞書式順序, 前方一致, prefix search, projection, lexicographic order
- C / WRITE · 2026-10-17 qsortで長さ順、同長は元順 安定ソート, qsort, 比較関数, 元の位置で順位を決める, stable sort, qsort comparator, tie-breaking
- C / READ · 2026-10-17 2回並べ替えた順番 安定ソート, 不安定ソート, 挿入ソート, 複数キーの並べ替え, 等しい要素の順序, stable sort, insertion sort, multi-key sort
- C / DEBUG · 2026-10-17 同じ日付のログの順番 マージ, 安定性, 等しいときは左から取る, マージソート, stable merge, merge sort stability, tie-breaking
- Haskell / WRITE · 2026-10-16 長い順、同じ長さは辞書順 comparing, Ordering, sortBy, 比較関数の合成, 第2キー, Semigroup, tie-breaking, lexicographic order
- Haskell / READ · 2026-10-16 隣どうしのcompare compare, Ordering, LT EQ GT, zipWith, 隣り合う要素の比較, argument order, adjacent comparison
- Haskell / DEBUG · 2026-10-16 文字列のままの数値 comparing, Down, 文字列の比較, 辞書式順序, read, lexicographic order, string comparison, numeric sort
- C++ / DEBUG · 2026-10-15 時刻だけで探したつもり lower_bound, upper_bound, std::pair の比較, 辞書式順序, 射影, equal_range, lexicographic comparison, projection
- C / WRITE · 2026-10-11 比較して一致なら代入 比較と交換, 等値比較と代入, compare-and-swap, compare and exchange, atomic_compare_exchange_strong, CAS
- C / DEBUG · 2026-10-11 変化の回数が多すぎる 代入による型変換, float と double の比較, 0.1 の丸め, 通常の算術変換, assignment conversion, float double comparison, usual arithmetic conversions
- C++ / DEBUG · 2026-10-08 ENDで止まらない CRLF, 改行コード, std::getline, 行末の\r, 文字列の比較, carriage return, Windows line endings
- C / WRITE · 2026-10-08 2つのファイルを比べる getc, EOF, ファイルの比較, cmp, 一定のメモリで読む, compare two files, streaming comparison
- Rust / READ · 2026-10-04 同じ時刻の書き込み LWWレジスタ, 導出されたOrd, フィールド順の辞書式比較, 統合の可換性, last-writer-wins register, derive Ord
- Haskell / READ · 2026-10-01 中身でなく箱を比べる IORef の等値比較, 参照の同一性, 同値と同一, 別名, Eq IORef, reference equality, identity vs equality
- Rust / DEBUG · 2026-09-30 Noneで埋めた最小値の木 Option の順序, None < Some, 単位元, 最小値のセグメント木, Option ordering, identity element, next_power_of_two
- Haskell / WRITE · 2026-09-30 綴りを残して数える 大文字小文字を無視した集計, Map.fromListWith, 最初の綴り, toLower, case-insensitive count, first spelling, Data.Map
- Haskell / DEBUG · 2026-09-30 並べ替えの鍵とgroup group, groupBy, sortOn, 大文字小文字を無視したグループ化, case-insensitive grouping, Data.List
- C++ / WRITE · 2026-09-30 同時刻の予定を残す比較 std::set, 比較関数, std::tie, 辞書式比較, 同じ時刻の予定, comparator, lexicographic comparison, tie-breaker
- C++ / DEBUG · 2026-09-30 ポインタを並べるset std::set<const char*>, ポインタの比較, 文字列の比較, std::less, c_str, pointer comparison, string literal
- C++ / READ · 2026-09-26 最後の書き込みが勝つ LWWレジスタ, 最終書き込み勝ち, std::tie, 辞書順比較, タイムスタンプの同着, last-writer-wins, LWW register, lexicographic comparison
- Rust / DEBUG · 2026-09-21 符号なしの>=0 符号なし整数, 常に真, 比較, unsigned comparison
- Haskell / DEBUG · 2026-09-21 自分と比べるテスト 恒真, 期待値, テストの意味, tautological test
- Rust / DEBUG · 2026-09-19 比較は連鎖しない 比較の連鎖, a < b < c, コンパイルエラー, chained comparison
- C / WRITE · 2026-09-19 第2キーで同点処理 比較関数, タイブレーク, 第2キー, comparator
- C / READ · 2026-09-19 安全な比較関数 比較関数, 全順序, オーバーフロー, comparator
- C / DEBUG · 2026-09-19 引き算の比較関数 比較関数, 引き算, オーバーフロー, comparator overflow
- C / DEBUG · 2026-09-15 比較演算子の連鎖 比較の連鎖, 関係演算子, a < b < c, chained comparison
- Rust / WRITE · 2026-09-12 等値判定の行き過ぎ ループ条件, 等値比較, 行き過ぎ, loop guard
- Rust / DEBUG · 2026-09-12 derive忘れの比較 PartialEq, derive, 構造体の比較, derive
- C / READ · 2026-09-09 N+1を数えるループ N+1クエリの検出, 同じSQLの連続, strcmp, N+1 query detection, strcmp returns zero
- Rust / READ · 2026-09-07 参照同士の比較 参照の比較, 値の比較, PartialEq, reference comparison
- Rust / READ · 2026-09-01 範囲の先の列は絞れない 複合インデックス, 列の順序, 辞書式順序, BTreeSet::range, composite index, column order, lexicographic order
- Rust / DEBUG · 2026-09-01 先頭の列を飛ばした検索 複合インデックス, 先頭の列の省略, 辞書式順序, BTreeSet::range, composite index, leftmost prefix, lexicographic order
- C++ / READ · 2026-08-31 負の奇数の余り 剰余演算子, 負の数の余り, 奇数判定, ゼロ方向への切り捨て, modulo, remainder of negative numbers, odd check
- C / WRITE · 2026-08-30 時間が一定のバイト比較 定数時間比較, タイミング攻撃, XOR, 秘密情報の比較, constant-time comparison, timing side channel
- C / DEBUG · 2026-08-30 0のバイトで止まる比較 strncmp, memcmp, ダイジェストの比較, ハッシュ値, バイナリデータ, binary data, digest comparison
- C / WRITE · 2026-08-26 qsortで元の順を保つ qsortの比較関数, 安定ソート, 等しい要素の順序, ポインタの比較, comparator, stable sort, qsort
- C / DEBUG · 2026-08-26 等号で割り込む挿入ソート 挿入ソート, 安定ソート, 等しいキーの順序, 比較演算子, insertion sort, stable sort
- Haskell / READ · 2026-08-25 Ordは宣言順 deriving Ord, 宣言順, 比較, derived Ord
- C++ / WRITE · 2026-08-22 文字列の先頭一致 前方一致, starts_with, 部分文字列, prefix
- C / DEBUG · 2026-08-22 文字列をポインタ比較 strcmp, ポインタ比較, 文字列比較, string compare
- C / READ · 2026-08-21 符号つきと符号なしの比較 符号あり, 符号なし, 暗黙の型変換, signed unsigned comparison
- C++ / WRITE · 2026-08-20 ==を定義する 演算子の多重定義, 等値比較, operator==