8000 cleaned · CO18326/python@413f744 · GitHub
[go: up one dir, main page]

Skip to content

Commit 413f744

Browse files
committed
cleaned
1 parent 681901d commit 413f744

18 files changed

+158
-81
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

trees/lowest_common_ancestor.py renamed to data-structures/trees/lowest_common_ancestor.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# -*- coding: UTF-8 -*-
2+
#
3+
# Lowest Common Ancestor
4+
# The All ▲lgorithms library for python
5+
#
6+
# Contributed by: Anish Narkhede
7+
# Github: @anish03
8+
#
19
class Node:
210
def __init__(self,data):
311
self.data = data
@@ -55,7 +63,7 @@ def get_height(self,node):
5563
else:
5664
i = max(self.get_height(node.left),self.get_height(node.right)) + 1
5765
return i
58-
66+
5967
def find_path(self,root,path,k):
6068
if not root:
6169
return False

readme.md

Lines changed: 127 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,156 @@
11
<div align="center">
2+
<br>
3+
<br>
4+
<br>
25
<img width="400" src="http://konpa.github.io/devicon/devicon.git/icons/python/python-original.svg">
36
<br>
47
<br>
8+
<br>
9+
<br>
510
<img src="https://cdn.abranhe.com/projects/algorithms/algorithms.svg" width="400px">
611
<br>
7-
<p>All ▲lgorithms implemented in C Python</p>
8-
<a href="https://algorithms.abranhe.com"><img src="https://img.shields.io/badge/All-%E2%96%B2llgorithms-700606.svg"></a>
9-
<a href="https://github.com/abranhe/algorithms/blob/master/LICENSE"><img src="https://img.shields.io/github/license/abranhe/algorithms.svg" /></a>
12+
<br>
13+
<br>
14+
<p>All ▲lgorithms implemented in Python</p>
15+
<br>
16+
<a href="https://allalgorithms.com"><img src="https://cdn.abranhe.com/projects/algorithms/badge.svg"></a>
17+
<a href="https://github.com/abranhe/algorithms/blob/master/license"><img src="https://img.shields.io/github/license/abranhe/algorithms.svg" /></a>
1018
<a href="https://cash.me/$abranhe"><img src="https://cdn.abraham.gq/badges/cash-me.svg"></a>
1119
<a href="https://www.patreon.com/abranhe"><img src="https://cdn.abraham.gq/badges/patreon.svg" /></a>
1220
<a href="https://paypal.me/abranhe/10"><img src="https://cdn.abraham.gq/badges/paypal.svg" /></a>
1321
<br>
1422
<br>
15-
<a href="https://algorithms.abranhe.com"><code>algorithms.abranhe.com</code></a>
23+
<br>
24+
<br>
25+
<a href="https://allalgorithms.com"><code>allalgorithms.com</code></a>
26+
<br>
27+
<br>
28+
<br>
29+
<br>
1630
</div>
1731

18-
1932
## Contents
2033

21-
- [Arithmetic Analysis](arithmetic-analysis)
22-
- [Ciphers](ciphers)
23-
- [Cryptography](cryptography)
24-
- [Data Structures](data-structures)
25-
- [Dynamic Programming](dynamic-programming)
26-
- [Greedy](greedy)
27-
- [Graphs](graphs)
28-
- [Math](math)
29-
- [Neutral Network](neutral-network)
30-
- [Hashes](hashes)
31-
- [Searches](searches)
32-
- [Sorting](sorting)
33-
- [Strings](strings)
34-
- [Traversals](traversals)
35-
- [Others](others)
34+
> See all algorithms and their categories at [@AllAlgorithms/algorithms](https://github.com/abranhe/algorithms).
35+
36+
- [Artificial Intelligence](#artificial-intelligence)
37+
- [Backtracking](#backtracking)
38+
- [Bit Manipulation](#bit-manipulation)
39+
- [Cellular Automaton](#cellular-automaton)
40+
- [Ciphers](#ciphers)
41+
- [Computational Geometry](#computational-geometry)
42+
- [Cryptography](#cryptography)
43+
- [Data Structures](#data-structures)
44+
- [Divide and conquer](#divide-and-conquer)
45+
- [Dynamic Programming](#dynamic-programming)
46+
- [Gaming Theory](#gaming-theory)
47+
- [Graphs](#graphs)
48+
- [Greedy Algorithms](#greedy-algorithms)
49+
- [Math](#math)
50+
- [Networking](#networking)
51+
- [Numerical Analysis](#numerical-analysis)
52+
- [Operating system](#operating-system)
53+
- [Randomized Algorithms](#randomized-algorithms)
54+
- [Searches](#searches)
55+
- [Selections Algorithms](#selections-algorithms)
56+
- [Sorting](#sorting)
57+
- [Strings](#strings)
58+
- [Online Challenges](#online-challenges)
59+
- [Others](#others)
60+
61+
## Cryptography
62+
63+
- [Advanced Encryption Standard](cryptography/aes.py)
64+
- [Caesar Cipher](cryptography/caesar_cipher.py)
65+
- [Playfair Cipher](cryptography/playfair.py)
66+
67+
## Data Structures
68+
69+
- [Hashes](#hashs)
70+
- [Linked Lists](#linked-lists)
71+
- [Trees](#trees)
72+
73+
### Hashes
74+
- [Hash Table](data-structures/hashs/hash_table.py)
75+
76+
### Linked Lists
77+
78+
- [Linked List](data-structures/linked-lists/linked_list.py)
79+
80+
### Trees
81+
82+
- [AVL Tree](data-structures/trees/binary_search_tree.py)
83+
- [Binary Search Tree](data-structures/trees/binary_search_tree.py)
84+
- [Heap](data-structures/trees/heap.py)
85+
- [Lowest Common Ancestor](data-structures/trees/lowest_common_ancestor.py)
86+
87+
<!-- @TODO
88+
89+
## Dynamic Programming
90+
91+
- [](dynamic-programming/.py)
92+
- [](dynamic-programming/.py)
93+
- [](dynamic-programming/.py)
94+
- [](dynamic-programming/.py)
95+
- [](dynamic-programming/.py)
96+
- [](dynamic-programming/.py)
97+
- [](dynamic-programming/.py)
98+
99+
## Graphs
100+
101+
- [](graphs/.py)
102+
103+
## Greedy
104+
105+
- [](greedy/.py)
106+
107+
## Math
108+
109+
- [](math/.py)
110+
111+
## Searches
112+
113+
- [](searches/.py)
114+
115+
## Sorting
116+
117+
- [](sorting/.py)
118+
119+
## Strings
120+
121+
- [](strings/.py)
122+
123+
-->
124+
125+
## Maintainers
126+
127+
| [![M1][m1-i]][m1] | [![M2][m2-i]][m2] | [![M3][m3-i]][m3] |
128+
| :-: | :-: | :-: |
129+
| [Carlos Abraham][m1] | [Pablo Trinidad][m2] | [Martmists][m3] |
36130

37131
## License
38132

39-
This work is licensed under a [MIT License](https://github.com/abranhe/algorithms/blob/master/LICENSE)
133+
This work is released under [MIT License](https://github.com/abranhe/algorithms/blob/master/LICENSE)
40134

41-
[![MIT IMG][mit-license]]((https://github.com/abranhe/algorithms/blob/master/LICENSE))
135+
[![MIT IMG][mit-license]]((https://github.com/abranhe/algorithms/blob/master/LICENSE)
42136

43137
To the extent possible under law, [Carlos Abraham](https://go.abranhe.com/github) has waived all copyright and related or neighboring rights to this work.
44138

45139

46-
[mit-license]: https://cdn.abraham.gq/projects/algorithms/mit-license.png
47-
48140
<div align="center">
49141
<a href="https://github.com/abranhe/algorithms">
50142
<img src="https://cdn.abranhe.com/projects/algorithms/logo.svg" width="50px">
51143
</a>
52144
<br>
53145
</div>
146+
147+
<!----------------------- Markdown Links ----------------------------->
148+
[mit-license]: https://cdn.abraham.gq/projects/algorithms/mit-license.png
149+
150+
<!----------------------- Maintainers -------------------------------->
151+
[m1]: https://github.com/abranhe
152+
[m1-i]: https://avatars2.githubusercontent.com/u/21347264?s=70
153+
[m2]: https://github.com/pablotrinidad
154+
[m2-i]: https://avatars1.githubusercontent.com/u/5308050?s=70
155+
[m3]: https://github.com/martmists
156+
[m3-i]: https://avatars1.githubusercontent.com/u/16361449?s=70

search/binarySearch.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0