keerthanabharani95
BAN USER- 0of 0 votes
AnswersGiven a string consisting only of digits, find the missing number. For instance, given the string 596597598600601602 the missing number is 599. You may assume all the numbers are positive integers and the sequence increases by one at each number except the missing number. The numbers will have no more than six digits and the string will have no more than four hundred characters.
- keerthanabharani95 in India
Your task is to write a function to find the missing number in the sequence. If there should no missing number whatsoever, return a value of -1| Report Duplicate | Flag | PURGE
xyz - 0of 0 votes
AnswersJSON PARSING ( Print all the data from a Json String).
- keerthanabharani95 in India
Input : {'firstname' : 'abc'}
Output : firstname -> abc
Input : {'firstname' : 'abc', 'lastname' : 'Lincoln'}
Output : firstname -> abc lastname -> Lincoln
Input : {'address' : '365 KG', 'lastname' : 'Lincoln'}
Output : address -> 365 KG lastname -> Lincoln
Ideally, you must parse the JSON string into a map data, and then print out the elements of the map. Among other things, it will help print out the data in alphabetical order as well.| Report Duplicate | Flag | PURGE
xyz