エイリアシング
「エイリアシング」を扱った24問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Rust / DEBUG · 2026-11-17 送金で増える残高の合計 借用規則, 可変参照, エイリアス, 同じ要素への2つの参照, 合計の不変条件, borrow checker, mutable aliasing, invariant, Copy
- Zig / READ · 2026-11-10 コピーした割り当て器 FixedBufferAllocator, std.mem.Allocator, アロケータのコピー, 確保位置, 領域の重なり, allocator interface, copied allocator state, aliasing
- Zig / DEBUG · 2026-11-09 そろってしまうラベル スライス, バッファの使い回し, std.mem.print, bufPrint, 配列とスライス, エイリアス, slice, reused buffer, aliasing
- Zig / DEBUG · 2026-11-08 対角線だけ塗るマス目 @splat, 配列の初期化, スライスのコピー, 同じバッファを共有, 二次元配列, エイリアシング, array of slices, shared buffer, aliasing
- Zig / DEBUG · 2026-11-05 先頭の棚に集める在庫 構造体のメソッド, selfと引数のエイリアシング, 同じ構造体を指す2つのポインタ, 代入の順序, struct method, pointer aliasing, self-assignment
- Zig / DEBUG · 2026-10-30 120が370に化ける std.mem.print, バッファの共有, スライスの別名, 上書き, buffer reuse, slice aliasing, formatting into a buffer
- C++ / READ · 2026-10-29 tieを束縛して書き込む 構造化束縛, std::tie, 参照のタプル, 交換の失敗, structured binding, tuple of references, aliasing
- C++ / DEBUG · 2026-10-25 minmaxで並べ替え 構造化束縛, std::minmax, 参照の組, 別名による上書き, structured binding, aliasing, pair of references
- C / DEBUG · 2026-10-15 逆順にしたつもりの配列 メタモルフィックテスト, ポインタと配列, 配列のコピー, エイリアス, metamorphic testing, aliasing, array copy
- C / WRITE · 2026-10-07 自分とも交換できるXOR XORによる値の交換, 一時変数を使わない交換, 同じ変数との交換, XOR swap, swap without a temporary variable
- C / READ · 2026-10-07 2回反転した文字列 XORによる値の交換, 自分自身との交換, 文字列の反転, ヌル終端, XOR swap, self swap, reverse a string in place
- C / DEBUG · 2026-10-07 先頭を二度使うと0 XORによる値の交換, 自分自身との交換, 最近使った要素を先頭へ, XOR swap, self swap, move to front
- Rust / WRITE · 2026-10-03 共有されたVecを併合 RefCellの二重借用, Rc::ptr_eq, 一時値の寿命, already borrowed, BorrowMutError, Rc aliasing
- C++ / WRITE · 2026-10-03 先頭と等しい値を消す std::eraseと参照, auto{x}, 値のコピー, decay-copy, std::erase with element reference, auto(x) prvalue copy
- Haskell / WRITE · 2026-10-01 同じ箱は一度だけ IORef の重複を除く, 参照の同一性, 同値と同一, 別名, nub, reference equality, aliasing, identity vs equality
- Haskell / READ · 2026-10-01 中身でなく箱を比べる IORef の等値比較, 参照の同一性, 同値と同一, 別名, Eq IORef, reference equality, identity vs equality
- Haskell / DEBUG · 2026-10-01 自分への振替で増える 同じ IORef を2回渡す, 別名, 読んでから書く, 自分への振替, aliasing, self transfer, stale read
- C / READ · 2026-09-27 行を共有するint ** 2次元配列, ポインタのポインタ, 行ポインタの配列, int **, 2D array, pointer to pointer, array of pointers
- C / WRITE · 2026-09-26 重なる範囲をずらす 重なりのあるコピー, memmove, memcpy, 配列への挿入, overlapping copy, array insertion
- C / READ · 2026-09-26 自分自身を足し込む エイリアシング, 同じ変数へのポインタ, ポインタ引数, aliasing, pointer aliasing
- C / DEBUG · 2026-09-26 基準が途中で変わる エイリアシング, 配列の先頭を基準にする, ループ中の書き換え, aliasing, in-place update
- Zig / DEBUG · 2026-08-31 使い回した行バッファ splitScalar, スライス, バッファの使い回し, 別名, 共有されたメモリ, slice aliasing, buffer reuse, borrowed slice
- Zig / WRITE · 2026-08-30 重なるスライスへの挿入 スライスの別名, 重なるコピー, @memmove, @memcpy, 挿入, overlapping copy, aliasing slices
- Zig / DEBUG · 2026-08-28 回したはずの点が崩れる 結果の置き場所, result location semantics, 匿名構造体リテラルへの代入, 自分自身を読む代入, 点の回転, aliasing, struct field swap