Bongo_Android_Interview_Test
Question#1: Write a function that detects if two strings are anagram e.g. ‘bleat’ and ‘table’ are anagrams but ‘eat’ and ‘tar’ are not.
Solution: Please check "Problem#1" folder
Question#2: Explain the design pattern used in following:
interface Vehicle {
int set_num_of_wheels()
int set_num_of_passengers()
boolean has_gas()
}
- a) Explain how you can use the pattern to create car and plane class?
- b) Use a different design pattern for this solution.