Commit Graph

2097 Commits

Author SHA1 Message Date
Mickaël Schoentgen
2d70e9f747 Fix ResourceWarning: unclosed file (#681)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 16:59:23 +08:00
Mickaël Schoentgen
3dc50529ca Fix DeprecationWarning: invalid escape sequence (#679)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 16:58:47 +08:00
Mickaël Schoentgen
6128533319 Fix use of deprecated assertEquals() in tests (#680) 2019-01-06 09:12:17 +08:00
Jitendra_Sharma
f4806eb48c manacher's algorithm to find palindromic string (#676)
manacher's algorithm to find palindromic string in linear time complexity
2019-01-02 19:17:56 +08:00
raksa
ad0bc2bb8b make images' path specific (#671)
fixed wrong image's path while debuggin in VSCode
2018-12-26 21:06:34 +08:00
Robert Bergers
f6d241e52d Clean up (#488)
* Cleaning up the README

Spell-check, citing sources, standardizing the format

* Cited missing source

* cleaning up the readme

* Update README.md

* Update README.md

* standardized spacing

* README is all neat and tidy
2018-12-25 21:50:49 +01:00
Jithendra Yenugula
d26311424d Adding a program for swap nodes in linkedlist (#667)
* Adding a program for swap nodes in linkedlist

* Updating swapNodes
2018-12-25 21:09:36 +08:00
harshildarji
f7d6d501c2 Merge branch 'master' of git://github.com/SafariGit/Python 2018-12-17 16:40:27 +01:00
Mikael Souza
2e2fadf4db Fixed bug where an empty stack would cause error 2018-12-17 10:45:54 -04:00
Mikael Souza
a8cfc14737 Added more parentheses examples 2018-12-17 10:45:16 -04:00
Mikael Souza
2d082cf19c Changed import from .Stack to stack 2018-12-17 10:44:38 -04:00
Safari
069d2b9cb6
All Python Version 3
Added functions to get all nodes for some algorithms and time calculation for dfs and bfs.
2018-12-16 22:19:40 +03:30
harshildarji
eb5ccd5bda Merge branch 'master' of git://github.com/SafariGit/Python into SafariGit-master 2018-12-15 23:54:37 +01:00
A Safari
b3a15175bd
Added more functionality
Added topological sort, cycle detection and a function to report the nodes participating in cycles in graph(for a use case I myself needed ).
2018-12-14 23:14:35 +03:30
A Safari
889f8fba3d
Added getting node degree functionality to both directed and undirected graph
Easy to use directed and undirected graph in python 3
2018-12-14 15:28:45 +03:30
A Safari
e97565d21f
Added (Weighted) Undirected graph
Python version 3
2018-12-14 15:08:37 +03:30
A Safari
691f4c0a25
Python version 3 2018-12-14 10:33:01 +03:30
A Safari
687af17d47
Added some examples.
Added examples and comments for more readable code.
2018-12-14 10:31:45 +03:30
A Safari
fa2eecdc30
Directed graph with optional weight assignment .
Containing graph auto-fill, dfs and bfs.
2018-12-14 10:22:18 +03:30
harshildarji
a0cf8d95cd Merge branch 'patch-11' of git://github.com/SandersLin/Python into SandersLin-patch-11 2018-12-06 21:38:20 +01:00
harshildarji
d555a492dc Merge branch 'patch-12' of git://github.com/SandersLin/Python 2018-12-06 21:34:33 +01:00
Sanders Lin
e5f130c1f0
Create sol2.py 2018-12-07 03:28:33 +08:00
Sanders Lin
60ec25ef7a
Update sol1.py 2018-12-07 02:29:04 +08:00
Sanders Lin
77f72fbe1f
Create sol2.py 2018-12-06 23:19:28 +08:00
Sanders Lin
c3b8c51822 Project Euler problem 1 pyhtonic solution (#628) 2018-12-05 21:25:46 +08:00
Sanders Lin
362270c19f Project Euler problem 2 pyhtonic solution (#629)
* Project Euler problem 2 pyhtonic solution

* Project Euler problem 2 made small changes
2018-12-05 21:25:01 +08:00
wanderer
dab312e0e7 bugs fixed (#623)
* bugs fixed

* bugs fixed

* bugs fixed
2018-12-04 18:32:53 +01:00
ahviplc!~LC
d75bec8a78 absMax.py and absMin.py bugs fixed. (#624) 2018-12-04 18:18:32 +01:00
A Safari
1c29a455b8
Delete Non-crossing-lines-to-connect-points-in-a-circle 2018-11-28 15:56:10 -05:00
A Safari
98db791d37
Create Non-crossing-lines-to-connect-points-in-a-circle 2018-11-28 15:54:19 -05:00
harshildarji
6a95bf9ad8 Merge branch 'master' of git://github.com/Awfifcuihc/Python into Awfifcuihc-master 2018-11-25 00:13:40 +01:00
harshildarji
0d5fd4a5f2 Merge branch 'Update-linear_algebra_python' of git://github.com/ashwek/Python-1 into ashwek-Update-linear_algebra_python 2018-11-23 18:27:09 +01:00
Harshil
72c217c37e
Update AVLtree.py
Removed blank lines (256 to 287)!
2018-11-23 18:23:06 +01:00
harshildarji
5729424bdf Merge branch 'maths_algorithm' of git://github.com/shivamarora1/Python into shivamarora1-maths_algorithm 2018-11-23 18:17:00 +01:00
Shivam Arora
768a39d832 Program for finding the HCF,LCM and Palindrome using and recursion and non recursion 2018-11-23 22:21:07 +05:30
Awfifcuihc
9bbc4d9021 Update AVLtree.py
add comments
2018-11-22 14:33:50 +08:00
Awfifcuihc
d1dba51326
remove commented lines 2018-11-21 12:46:32 +08:00
Awfifcuihc
9f96c155be Update AVLtree.py
add delete function
add demo with shuffled list
add print lines to trace the addition or deletion
2018-11-21 03:25:07 +08:00
Awfifcuihc
6001215b60 Update AVLtree.py
An auto balanced binary tree
with no delete node function
leave for latter
2018-11-20 03:41:52 +08:00
Awfifcuihc
16cc96a092 Create AVLtree.py 2018-11-20 03:34:44 +08:00
dilson
84ae00197f Fixed typo error in perceptron.py 2018-11-14 21:08:43 -03:00
P-Shreyas-Shetty
74a65017ca
Added axes label to the plot 2018-11-13 05:27:26 +05:30
Ashwek Swamy
737bb2c525
Update README.md 2018-11-12 23:38:08 +05:30
Ashwek Swamy
93e096f0c1
Update tests.py
changing tests.py according to changes in lib.py
and replaced A.__str__() with str(A)
2018-11-12 23:34:31 +05:30
Ashwek Swamy
b2b34e2cda
Update lib.py
providing default value to components parameter of  __init__()
2018-11-12 23:33:22 +05:30
Ashwek Swamy
63b2c4efe0
Update lib.py
replaced size() with __len__ built-in
changed self.__components = components to self.__components = list(components)
replacing for loops with list comprehension
allowing -ve indexing in component() and changeComponent()
2018-11-12 23:08:07 +05:30
Ashwek Swamy
70a6d98e0f
Update absMin.py 2018-11-11 22:57:36 +05:30
Ashwek Swamy
aa11f16a42
Sync Fork - TheAlgorithms/master
Sync Fork
2018-11-11 22:55:00 +05:30
Harshil
d34b07239f Merge branch 'master' of git://github.com/0xYasser/Python into 0xYasser-master 2018-11-10 19:04:11 +01:00
gpapadok
265ea0eccb Update FindMin.py (#601)
Fixed indentation error.
2018-11-10 19:02:36 +01:00