C++ Taskbook Level 9.1

Задание 1

Given an integer:

cppint num = 12345;

Find the smallest and largest digits in this number.

Задание 2

Given some URL:

cppstd::string url = "http://test.com/dir1/dir2/dir3/page.html";

Get the domain name from it:

cpp"test.com"
Задание 3

Given an array:

cpp{
  {2, 4, 5},
  {1, 2, 3},
  {0, 1, 1},
  {5, 7, 1},
}

Sort the array elements in ascending order of the sum of the subarray elements.