Browse Source

first pass exam rust

content-update
Chris 3 years ago
parent
commit
e3421e7d18
  1. 2
      subjects/display_table/README.md
  2. 2
      subjects/filter_table/README.md
  3. 5
      subjects/flat_tree/README.md

2
subjects/display_table/README.md

@ -37,7 +37,7 @@ impl Table {
### Usage ### Usage
Here is a possible test for your function: Here is a possible program to test your function:
```rust ```rust
fn main() { fn main() {

2
subjects/filter_table/README.md

@ -46,7 +46,7 @@ impl Table {
### Usage ### Usage
Here is a possible test for your function: Here is a possible program to test your function:
```rust ```rust
fn main() { fn main() {

5
subjects/flat_tree/README.md

@ -2,18 +2,19 @@
### Instructions ### Instructions
- Define the functions `flatten_tree` that receives a std::collections::BTreeSet and returns a new `Vec` with the elements in the binary tree in order. - Define the functions `flatten_tree` which receives a `std::collections::BTreeSet` and returns a new `Vec` with the elements of the binary tree in order.
### Expected function ### Expected function
```rust ```rust
pub fn flatten_tree<T: ToOwned<Owned = T>>(tree: &BTreeSet<T>) -> Vec<T> { pub fn flatten_tree<T: ToOwned<Owned = T>>(tree: &BTreeSet<T>) -> Vec<T> {
} }
``` ```
### Usage ### Usage
Here is a possible test for your function: Here is a possible program to test your function:
```rust ```rust
fn main() { fn main() {

Loading…
Cancel
Save