Complete "longest common ..." examples (#100)
* no else return * fix var ref * fix importing/requiring dependencies * complete longest common examples
This commit is contained in:
committed by
Aditya Bhargava
parent
c23ca90b83
commit
5b675cc2e8
@@ -31,10 +31,11 @@ func search(name string) bool {
|
||||
if person_is_seller(person) {
|
||||
println(person + " is mango seller!")
|
||||
return true
|
||||
} else {
|
||||
search_queue = append(search_queue, graph[person]...)
|
||||
searched = append(searched, person)
|
||||
}
|
||||
|
||||
search_queue = append(search_queue, graph[person]...)
|
||||
searched = append(searched, person)
|
||||
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user