For the better understanding of time taken. (#6583) · zinating/algorithms-python@fcfe35c · GitHub
Skip to content

Commit fcfe35c

Browse files
samyakpagariyapre-commit-ci[bot]cclaussCaedenPH
authored
For the better understanding of time taken. (TheAlgorithms#6583)
* For the better understanding of time taken. In this change I have initialized a variable p with the value of (1e9+7) and then took the modulus of process time with it . This modification gives better time taken by the process . Firstly it was giving answer in the exponential now it gives in the integer form. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
1 parent b32903d commit fcfe35c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sorts/bubble_sort.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)