VMware | Phone | Validate JSON
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-01-30Added By Anonymous
Source: Link
Company: VMware
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Experience:
Position: New Grad Validate a json and return true or false. Example:
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Experience:
Position: New Grad Validate a json and return true or false. Example:
Input:
{
"glossary":{
"title":"exampleglossary",
"GlossDiv":{
"title":"S",
"GlossList":{
"GlossEntry":{
"ID":"SGML",
"SortAs":"SGML",
"GlossTerm":"StandardGeneralizedMarkupLanguage",
"Acronym":"SGML",
"Abbrev":"ISO8879:1986",
"GlossDef":{
"para":"Ameta-markuplanguage,usedtocreatemarkuplanguagessuchasDocBook.",
"GlossSeeAlso":[
"GML",
"XML"
]
},
"GlossSee":"markup"
}
}
}
}
}
Output: true
Second Phone screen: Print all palindrome substrings, spiral matrix