Skip to content

Instantly share code, notes, and snippets.

@vu-hoang-kaligo
vu-hoang-kaligo / main.py
Last active November 11, 2024 04:32
Sample code
from dataclasses import dataclass
import json
import argparse
import requests
@dataclass
class Hotel:
id: str
destination_id: str

Hey there!

Thanks for taking the time to work on this assignment!

Through this exercise, we hope to acquaint you with some of our day-to-day work at Ascenda. We hope you'll make full use of the time limit, chew through the problem, and take a good shot at it. Don't worry -- this isn't a leetcode exercise, we'll focus more on clean code than memory optimization.

Background

In any hotels site like Kaligo.com operated by Ascenda, there's a lot of effort being made to present content in a clean & organised manner. Underneath the hood however, the data procurement process is complex and data is often mismatched & dirty.

{
"offers": [
{
"id": 1,
"title": "Offer 1",
"description": "Offer 1 description",
"category": 1,
"merchants": [
{
"id": 1,