Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Create 27819.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetbhagat committed Nov 1, 2015
1 parent 4735340 commit 7990d1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/27819.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub fn anagrams_for(input: String, inputs: &[str]) -> Vec<&str> {
//vec![]; // either this line or the following crashes the compiler
Vec::new()
}

fn main(){
let inputs = ["hello", "world", "zombies", "pants"];
let outputs: Vec<&str> = vec![];
assert_eq!(anagrams_for("diaper", &inputs), outputs);
}

0 comments on commit 7990d1e

Please sign in to comment.