Google/Alphabet Online Assessment
550

Got this Question from Google on this site (hiredassessments.typeform.com
It's an approach To online assessments I've never seen before.

can someone code the entire solution to these kind of questions for future reference
"""
let flightJSON = """
{ "names"': ["Hugo", "Ken", "Fran", "Johno", "Eve", "Kendall", "Kenedy"], "seats": ["1A", "2A", "3A", "4A", "5A", "6A", "7A"]}
"""
"""

/// Load the above JSON string into a usable struct
/// Create a data structure to associate a name with a seat number. names and numbers array will be of same size.
/// You can assume that the name at nth index of names array has a seat number at the nth index of seats.
/// Search a seat number based on the name, it should return all names matching a prefix.
/// e.g. searching for "ken" should return seats for Ken, Kendall, Kennedy

///print(findSeatFor (name: "Ken" ) )|

Comments (4)