diff --git a/aio.html b/aio.html index 6c92a9a..8d634a2 100644 --- a/aio.html +++ b/aio.html @@ -755,7 +755,7 @@

Exercise (5 minutes)

-
+
  • What tools and techniques would be required?
  • @@ -1550,7 +1550,7 @@

    SH< -
    +

    If you are unable to install line_profiler via pip on MacOS. Instead it can be installed via @@ -1913,7 +1913,7 @@

    Exercise 1: BubbleSort

    -
    +
    • Remember that the code needs to be moved into a method decorated @@ -1933,7 +1933,7 @@

      Give me a hint

      -
      +

      If you chose to profile the whole code, it may look like this:

      @@ -2053,7 +2053,7 @@

      Exercise 2: Predator Prey

      -
      +
      • Remember that the function needs to be decorated with @@ -2075,7 +2075,7 @@

        Give me a hint

        -
        +

        First the function must be decorated

        @@ -2567,7 +2567,7 @@

        This episode is challenging!

        it doesn’t, it will re-allocate a larger array, copy across the elements, and deallocate the old array. The item to be appended is then copied to the end and the counter which tracks the list’s length is -incremnted.

        +increemnted.

        The amount the internal array grows by is dependent on the particular list implementation’s growth factor. CPython for example uses newsize + (newsize >> 3) + 6, which works out to an over allocation of roughly ~12.5%.

        @@ -2821,7 +2821,7 @@

        PYTHON