From 26bc95d05726cd49e2d48f3308b96a7a75950e5d Mon Sep 17 00:00:00 2001 From: Minseong Jang Date: Fri, 2 Sep 2022 21:37:34 +0900 Subject: [PATCH] Update assignment 2 description --- src/assignments/assignment02.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assignments/assignment02.rs b/src/assignments/assignment02.rs index 9ea8614..cd60e55 100644 --- a/src/assignments/assignment02.rs +++ b/src/assignments/assignment02.rs @@ -38,7 +38,7 @@ pub(crate) fn gcd(lhs: u64, rhs: u64) -> u64 { todo!() } -/// Returns the array of nC0, nC1, nC2, ..., nCn, where nCk = n! / (k! * (n-k)!). +/// Returns the array of nC0, nC1, nC2, ..., nCn, where nCk = n! / (k! * (n-k)!). (We assume the absence of integer overflow.) pub(crate) fn chooses(n: u64) -> Vec { todo!() } @@ -126,7 +126,7 @@ const FIBONACCI_MAT: Mat2 = Mat2 { /// The vector used for calculating Fibonacci numbers. const FIBONACCI_VEC: Vec2 = Vec2 { a: 1, b: 0 }; -/// Calculates the Fibonacci number. +/// Calculates the Fibonacci number. (We assume the absence of integer overflow.) /// /// Consult for matrix computation of Fibonacci numbers. pub(crate) fn fibonacci(n: u64) -> u64 {