@@ -13,7 +13,7 @@ This repository is an implementation of algorithms, data structures, and problem
1313Each project is configured in specific environments, as described below:
1414
1515- C++ project: C++20 / [ CMake] ( https://cmake.org/ ) build / [ GNU Scientific Library (GSL)] ( https://www.gnu.org/software/gsl/ ) , [ Google Test] ( https://google.github.io/googletest/ ) , [ Google Benchmark] ( https://github.com/google/benchmark ) , [ fmt] ( https://github.com/fmtlib/fmt ) packages / [ vcpkg] ( https://github.com/microsoft/vcpkg ) package manager
16- - Python project: Python 3.11 / [ Poetry] ( https://python-poetry.org/ ) / [ NumPy] ( https://numpy.org/ ) , [ SciPy] ( https://www.scipy.org/ ) , [ NetworkX] ( https://networkx.org/ ) , [ pytest] ( https://docs.pytest.org/ ) , [ pytest-benchmark] ( https://pytest-benchmark.readthedocs.io/en/latest/ ) packages
16+ - Python project: Python 3.11 / [ Poetry] ( https://python-poetry.org/ ) build / [ NumPy] ( https://numpy.org/ ) , [ SciPy] ( https://www.scipy.org/ ) , [ NetworkX] ( https://networkx.org/ ) , [ pytest] ( https://docs.pytest.org/ ) , [ pytest-benchmark] ( https://pytest-benchmark.readthedocs.io/en/latest/ ) packages
1717- Java project: Java 21 / [ Gradle] ( https://gradle.org/ ) build / [ Guava] ( https://github.com/google/guava ) , [ JUnit] ( https://junit.org/ ) , [ Java Microbenchmark Harness (JMH)] ( https://github.com/openjdk/jmh ) libraries
1818
1919## Table of Contents
@@ -75,7 +75,7 @@ reversed(number_list) # return an iterator
7575number_list.sort() # in-place
7676sorted(number_list) # return a new list(copy)
7777del(number_list[0]) # delete the first element
78- del(number_list[0:2]) # removes the slice
78+ del(number_list[0:2]) # remove the slice
7979bisect.bisect_left(number_list, 3), bisect.bisect_right(number_list, 3), bisect.bisect(number_list, 3)
8080bisect.insort_left(number_list, 3), bisect.insort_right(number_list, 3), bisect.insort(number_list, 3)
8181
@@ -1167,7 +1167,7 @@ list.sort(Comparator.comparingInt(String::length));
11671167| ---------- - | : ---------------- - : | ------------------------------------------------------------------------------------ |
11681168| ** Best ** | $O(n^ 2 )$ | if the list is already sorted |
11691169| ** Worst ** | $O(n^ 2 )$ | when sorted in ascending order, if you want to sort in descending order (vice versa) |
1170- | ** Average ** | $O(n^ 2 )$ | |
1170+ | ** Average ** | $O(n^ 2 )$ | when the input list is in jumbled order |
11711171
11721172** Examples **
11731173
0 commit comments