mirror of
https://github.com/kmc7468/cs220.git
synced 2026-11-04 08:10:33 +09:00
Update assignment 09
This commit is contained in:
1 parent
12e9658d67
commit
62a9e5c8bc
2 files changed
+6
-1
No files matched your search
@@ -7,6 +7,8 @@
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use itertools::*;
|
||||
|
||||
/// Returns whether the given sequence is a fibonacci sequence starts from the given sequence's first two terms.
|
||||
///
|
||||
/// Returns `true` if the length of sequence is less or equal than 2.
|
||||
@@ -35,6 +37,8 @@ pub fn sigma<T, F: Fn(T) -> i64>(inner: impl Iterator<Item = T>, f: F) -> i64 {
|
||||
|
||||
/// Alternate elements from three iterators until they have run out.
|
||||
///
|
||||
/// You can assume that the number of elements of three iterators are same.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_mut)]
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unreachable_code)]
|
||||
|
||||
pub mod assignment01;
|
||||
mod assignment01_grade;
|
||||
|
||||
Reference in new issue
Block a user