Rust DSA API Review

Rust DSA API Review

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What has access to the entry API?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (5)

Section 1

(5 cards)

What has access to the entry API?

Front

HashMap

Back

what can concat and join be called on?

Front

array slices

Back

min(), max(), and sum() and product() are all methods on what?

Front

iterators

Back

How do you mutate a value in a hashmap?

Front

let mut count = HashMap::new(); // later after filling it up count.entry(num).and_modify(|e| *e = i); We use and_modify which takes a closure, of which the element is the value at the key of num.

Back

What can enumerate() be called on?

Front

Only iterators

Back