Following is the data set to work on =>
{
176 : [
{
"price" : 120,
"features" : ["breakfast", "refundable"],
"availbility" : 5
}
],
177 : [
{
"price" : 130,
"features" : ["breakfast"],
"availbility" : 1
},
{
"price" : 140,
"features" : ["breakfast", "refundable", "wifi"],
"availbility" : 3
}
],
178 : [
{
"price" : 130,
"features" : ["breakfast"],
"availbility" : 2
},
{
"price" : 140,
"features" : ["breakfast", "refundable", "wifi"],
"availbility" : 10
}
]
}Given above data map set, design an algorithm to get below output for below given input
I/P =>
{
"checkin" : 176,
"checkout" : 178,
"features" : ["breakfast"]
"rooms" : 1
}o/P =>
[
{
"price" : 250,
"features" : ["breakfast"],
"availbility" : 1
},
{
"price" : 260,
"features" : ["breakfast", "refundable"],
"availbility" : 3
}
]how would you approach this question? I actually couldn't understand the input and output