Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
file=path/to/file
bucket=your-bucket
resource="/${bucket}/${file}"
contentType="application/x-compressed-tar"
dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`"
stringToSign="GET
${contentType}
${dateValue}
${resource}"
@umeshblader3
umeshblader3 / backend_task.md
Created July 14, 2022 16:17 — forked from seahyc/backend_task.md
Make explicit what more or less mean

Buying Frenzy

You are building a backend service and a database for a food delivery platform, with the following 2 raw datasets:

  1. Restaurants data

Link: https://gist.github.com/seahyc/b9ebbe264f8633a1bf167cc6a90d4b57

This dataset contains a list of restaurants with their menus and prices, as well as their cash balances. This cash balance is the amount of money the restaurants hold in their merchant accounts on this platform. It increases by the respective dish price whenever a user purchases a dish from them.