Skip to content

RGGH/missing_gap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust

Use closure in a function

  • iterate from 1..seq.len()
  • use hashmap to find number(gap) that occurs just once

we could use 3 functions ideally - but for codewars it was simpler to make 1 function and use a closure plus I wanted to practice using closures more!