555 Commits

Author SHA1 Message Date
bae5762b09 Rename Arrays to Arrays.py 2018-03-02 11:16:49 +05:30
7a428c1cdd Update Arrays 2018-03-02 11:16:05 +05:30
b21fc06c14 Merge pull request #254 from akshaykumar123/patch-2
Update Arrays
2018-03-02 11:15:03 +05:30
4d0e2ccb32 Merge pull request #255 from ltdouthit/master
Simpson Rule
2018-03-02 11:12:02 +05:30
59c797eace Update Arrays 2018-03-01 18:58:00 +05:30
5955f98de8 Merge pull request #253 from shivg7706/master
Adding Problem_08
2018-02-27 20:31:25 +05:30
744803ad64 Adding Problem_08 2018-02-27 19:19:53 +05:30
e87c4f1ff9 Merge pull request #252 from shivg7706/master
MatrixChainOrder
2018-02-26 17:54:28 +05:30
1506ac9039 MatrixChainOrder 2018-02-26 17:25:09 +05:30
d0268c2651 Merge pull request #1 from ltdouthit/Maths/Numerical_Intergration
Maths/numerical intergration
2018-02-22 09:03:39 -07:00
698faa9ca4 Added Simpson Rule to Maths 2018-02-22 08:40:00 -07:00
8ef43a78da Merge pull request #251 from ltdouthit/Maths/Numerical_Intergration
Maths/numerical intergration
2018-02-21 06:54:24 +05:30
537909df64 added quadrature trapezoidal rule to Maths 2018-02-20 17:48:22 -07:00
30cf24c846 added quadrature trapezoidal rule to Maths 2018-02-20 17:39:45 -07:00
14fef95e8d Merge pull request #250 from akshaykumar123/patch-1
Update Arrays
2018-02-16 07:14:57 +05:30
ce3036144b Update Arrays
Array implementation
2018-02-15 21:56:51 +05:30
f519ac5df5 Merge branch 'MindTraper-master' 2018-02-14 19:35:25 +05:30
af3d8671db Merge branch 'master' of https://github.com/MindTraper/Python into MindTraper-master 2018-02-14 19:31:35 +05:30
a48836998b LU decomposition 2018-02-11 21:43:38 +02:00
fe6e959ae3 Setting the files in the same folder 2018-02-11 12:18:37 +02:00
1da1e2016c Merge pull request #247 from antfitch/antfitch-patch-2
Updated average case for Quicksort
2018-02-01 07:28:56 +05:30
a1c146a624 Updated average case for Quicksort
A small edit. Average case for quicksort changed from O(n^2) to O(n log n). Sited:
https://en.wikipedia.org/wiki/Quicksort
2018-01-31 10:48:48 -08:00
4085de4fae Merge pull request #246 from antfitch/antfitch-patch-1
Fixed recursion error in binary_search_by_recursion
2018-01-31 13:16:36 +05:30
53681f199c Fixed error in binary_search_by_recursion
In binary_search_by_recursion, if you search array for a value that does not exist, you will get this error:
RecursionError: maximum recursion depth exceeded in comparison

To fix this, first check to make sure that the value is between left and right points like this:
    if (right < left):
        return None

A similar construct has already been applied to binary_search, but did not exist in the recursive alternative.
2018-01-30 18:50:07 -08:00
c4234192fa Merge pull request #244 from arcsinecosine/master
My solution to the problem
2018-01-22 07:16:11 +05:30
00c13c29b9 Merge pull request #243 from cclauss/patch-1
Fix unresolved name: insert_tail()
2018-01-22 07:12:36 +05:30
bc34f6e18f Merge pull request #242 from cclauss/modernize-python2-code-again
Modernize Python 2 code to get ready for Python 3 AGAIN
2018-01-22 07:12:16 +05:30
Ben
92e0aa29b9 Add files via upload 2018-01-21 03:34:09 -05:00
Ben
1568432e82 Add files via upload 2018-01-21 03:27:19 -05:00
a88ad60365 Update singly_LinkedList.py 2018-01-21 08:59:55 +01:00
d043448fd9 Fix unresolved name: insert_tail()
insert_tail(Head.next, data) --> Head.next.insert_tail(data)

Fixes: $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./data_structures/LinkedList/singly_LinkedList.py:14:13: F821 undefined name 'insert_tail'
            insert_tail(Head.next, data)
            ^
1     F821 undefined name 'insert_tail'
```

Also formats the code to be compliant with [PEP8](http://pep8.org).
2018-01-21 08:56:16 +01:00
4ee0e620cb Modernize Python 2 code to get ready for Python 3 AGAIN 2018-01-21 08:25:19 +01:00
54f6d1f6d7 Merge pull request #241 from cclauss/patch-1
noqa to silence flake8 on Python 3 only syntax
2018-01-21 11:14:50 +05:30
3f6760ee15 noqa: F821 This syntax is Python 3 only 2018-01-20 12:35:12 +01:00
cc5102ab01 noqa to silence flake8 on Python 3 only syntax 2018-01-20 12:33:27 +01:00
b3873be7b5 noqa to silence flake8 on Python 3 only syntax 2018-01-20 12:31:12 +01:00
bfd52dfa42 Merge pull request #231 from TheAlgorithms/revert-22-patch-1
Revert "Update bubble_sort.py"
2018-01-20 16:27:48 +05:30
1611f40c51 Merge branch 'master' into revert-22-patch-1 2018-01-20 16:27:17 +05:30
3c61849cf0 Merge pull request #239 from damelLP/graph_algos
Added Tarjan's algorithm for finding strongly connected components
2018-01-15 10:15:46 +05:30
51492b78de Added Tarjan's algorithm for finding strongly connected components 2018-01-14 15:50:52 +00:00
4fedcb982f Merge pull request #238 from Sayan97/patch-5
Update NeutonMethod.py
2018-01-08 08:14:34 +05:30
a4c7e58da5 Merge pull request #237 from damelLP/add_string_algos
fixed failure function and cleaned up code in kmp + added rabin-karp
2018-01-08 08:14:13 +05:30
122cf4536d Update NeutonMethod.py
Removing requirement of math library to make code faster
2018-01-07 22:38:46 +05:30
0d36dc60c5 fixed failure function and cleaned up code in kmp + added rabin-karp 2018-01-07 12:49:51 +00:00
335bc2e390 Merge pull request #236 from Sayan97/patch-4
Update cyclesort.py
2018-01-07 13:26:29 +05:30
5d4471d35a Update cyclesort.py
Changing for Python 3 using exception handling for robust code
2018-01-07 13:21:05 +05:30
1f41a310f3 Merge pull request #235 from cclauss/patch-3
Pass flake8 tests
2018-01-07 10:49:16 +05:30
4adf3b9492 Pass flake8 tests
Without these changes, Python syntax errors are raised.

flake8 should be run by this repo's .travis.yml file but it is currently turned off.
2018-01-06 07:54:10 +01:00
ee6e5a42cd Merge pull request #234 from ashu01/develope-1
Refactor
2018-01-01 10:25:54 +05:30
c9debdbd41 1. Removed ; 2017-12-31 14:36:29 +05:30