learntosolveit/source/python/design_sorted_loop.rst at feb4 · uthcode/learntosolveit · GitHub
Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 482 Bytes

File metadata and controls

34 lines (19 loc) · 482 Bytes

Sorted Loop

Question

Measure the sorted builtin function performance.

Solution

.. literalinclude:: ../../languages/python/design_sorted_loop.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/design_sorted_loop.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`design_sorted_loop.py`
   * :python-better-explain:`design_sorted_loop.rst`