Registry / Library

library · v0.1.1
Bin First Fit
Find the first container with remaining capacity for a nonnegative item. Return minus one if no container fits.
Use Bin First Fit
use vendor::bin_first_fit::bin_first_fit;
Run the example
nest demo bin_first_fit@0.1.1
blyxc native-run bin_first_fit-demo/main.blyx
Example source and expected output
use vendor::bin_first_fit::bin_first_fit;
fn main() {
println!(bin_first_fit([2,9,6],5.0));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 34c777c127 | bd62b6c60a0f8cbfd2f6a53f552b655bd842d2bf34751d13370a2ec931a7daf0 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | fb4cf3377feb299a096c0bfe0cd505bbc4038408b0aa426eaebd1ef8c0a64fb7 |