借用
「借用」を扱った14問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Rust / WRITE · 2026-11-17 いちばん長い文字列を取り出す 所有権, ムーブ, 可変参照, Vec::remove, 要素を取り出す, ownership, move out of index, mutable reference
- Rust / DEBUG · 2026-11-17 送金で増える残高の合計 借用規則, 可変参照, エイリアス, 同じ要素への2つの参照, 合計の不変条件, borrow checker, mutable aliasing, invariant, Copy
- Rust / READ · 2026-11-13 返した参照と再借用 再借用, 可変参照, &mut は Copy ではない, 借用の終わり, ライフタイム省略, reborrow, mutable reference, non-lexical lifetimes
- Rust / DEBUG · 2026-11-09 再起動のたびに増える残高 WAL, ログの再生, 再起動, 冪等性, clone, std::mem::take, 借用, write-ahead log, replay, idempotent recovery
- Rust / WRITE · 2026-11-02 添字で指すアリーナの木 アリーナ, 添字で参照する木, インデックスベースの木, 可変借用, arena allocation, index-based tree, NodeId
- Rust / DEBUG · 2026-11-02 文の終わりまで残る借用 RefCell, 二重借用, 一時オブジェクトの寿命, BorrowMutError, already borrowed, temporary lifetime, arena allocation
- Rust / WRITE · 2026-10-28 借りた値を土台に作る 構造体更新記法, 借用からのムーブ, clone, 1つのフィールドだけ変えたコピー, functional update syntax, struct update
- Rust / DEBUG · 2026-10-14 ループの前に取った写し ワーシャル・フロイド法, 配列のコピー, 写しを取る位置, 借用規則, Floyd-Warshall, Copy array snapshot, borrow checker
- Rust / WRITE · 2026-10-05 人と仕事の最大マッチング 二部マッチング, 最大マッチング, 増加路, Kuhnの方法, bipartite matching, augmenting path, maximum matching
- Rust / WRITE · 2026-10-03 共有されたVecを併合 RefCellの二重借用, Rc::ptr_eq, 一時値の寿命, already borrowed, BorrowMutError, Rc aliasing
- Rust / DEBUG · 2026-10-03 在庫を足して合計 RefCellの借用ガード, already mutably borrowed, RefMutの寿命, BorrowError, borrow guard scope
- Rust / DEBUG · 2026-09-07 局所変数を返す ライフタイム, 局所変数, ダングリング, dangling reference
- Rust / DEBUG · 2026-08-21 可変と不変の同居 借用規則, 可変借用, 不変借用, borrow checker
- Rust / DEBUG · 2026-08-20 二重の可変借用 可変借用, 借用規則, borrow checker, mutable borrow