Skip to content

Instantly share code, notes, and snippets.

View riniculous's full-sized avatar

Nicholaus Ames riniculous

  • Depends
  • El Venado
View GitHub Profile
function sortPackage(width: number, height: number, length: number, mass: number): string {
const volume = width * height * length;
const isBulky = volume >= 1000000 || width >= 150 || height >= 150 || length >= 150;
const isHeavy = mass >= 20;
if (isBulky && isHeavy) {
return "REJECTED";
} else if (isBulky || isHeavy) {
return "SPECIAL";
} else {
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.2 (Debian 11.2-1.pgdg90+1)
-- Dumped by pg_dump version 11.2 (Debian 11.2-1.pgdg90+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
5047 444d 5001 0d00 0408 0101 0100 0000
0021 0000 0000 0100 0000 0016 0000 0000
1300 0000 0001 0000 0000 7700 0000 0000
0000 0000 0800 0000 706f 7374 6772 6573
001d 0000 0031 312e 3220 2844 6562 6961
6e20 3131 2e32 2d31 2e70 6764 6739 302b
3129 001d 0000 0031 312e 3220 2844 6562
6961 6e20 3131 2e32 2d31 2e70 6764 6739
302b 3129 0091 0000 0000 f70c 0000 0000
0000 0000 0100 0000 3000 0100 0000 3000