#!/usr/bin/env bash
# Check if type argument is provided
if [; then
fi
# Parse arguments
TYPE=
MAX_NUM=
# Validate type parameter
if ; then
fi
# Create download directory
DOWNLOAD_DIR="cs170_"
DOWNLOADED=0
FAILED=0
# Download files and solutions
for; do
# Format number as two digits (01, 02, ...)
num=
# Download main file
file_url="https://cs170.org/assets/pdf/.pdf"
if ; then
else
fi
# Download solution file
sol_url="https://cs170.org/assets/pdf/-sol.pdf"
if ; then
else
fi
done