mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-14 22:18:46 +00:00
Update
This commit is contained in:
20
.github/ISSUE_TEMPLATE/ASSIGNMENT.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE/ASSIGNMENT.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Homework
|
||||||
|
about: Create a homework
|
||||||
|
title: "[Assignment TODO] TODO (due: TODO)"
|
||||||
|
labels: assignment
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
DESCRIPTION.
|
||||||
|
|
||||||
|
- Read the description [here](https://github.com/kaist-cp/cs220/blob/main/src/assignments/assignmentX.rs). You're going to fill out the `todo!()`s.
|
||||||
|
|
||||||
|
- You can grade your solution yourself by running `./scripts/grade-X.sh`.
|
||||||
|
|
||||||
|
- Submit your code [here](https://gg.kaist.ac.kr/assignment/GGX/).
|
||||||
|
|
||||||
|
- **IMPORTANT**: only the last submission counts. Please make sure the last submission succeeds.
|
||||||
|
|
||||||
|
- **IMPORTANT**: don't fork this repository. It'll be public!
|
||||||
@@ -4,9 +4,9 @@ title: '[Assignment #] (SUMMARIZE YOUR QUESTION AS CLEARLY AS POSSIBLE)'
|
|||||||
labels:
|
labels:
|
||||||
- question
|
- question
|
||||||
assignees:
|
assignees:
|
||||||
- woojinnn
|
- Lee-Janggun
|
||||||
- jirheee
|
- kingdoctor
|
||||||
- AnHaechan
|
- Jaewookim08
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ enum Yielded<T> {
|
|||||||
///
|
///
|
||||||
/// Reference:
|
/// Reference:
|
||||||
/// - [Python generator](https://python-reference.readthedocs.io/en/latest/docs/generator/)
|
/// - [Python generator](https://python-reference.readthedocs.io/en/latest/docs/generator/)
|
||||||
#[allow(missing_debug_implementations)]
|
#[derive(Debug)]
|
||||||
pub struct Generator<T, S> {
|
pub struct Generator<T, S> {
|
||||||
state: S,
|
state: S,
|
||||||
f: fn(&mut S) -> Yielded<T>,
|
f: fn(&mut S) -> Yielded<T>,
|
||||||
|
|||||||
Reference in New Issue
Block a user