This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |