Skip to content

Commit ef59d1a

Browse files
authored
Merge branch 'master' into branch1
2 parents 9d3417c + c77db5a commit ef59d1a

86 files changed

Lines changed: 5257 additions & 619 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Comments which are not on the same line as code should appear ___before___ the c
196196
return a + b
197197
```
198198

199-
[Install ty](https://docs.astral.sh/ty/installation/) and then pslease use the command `ty check` to test all files or `ty check path/to/file.py` to test a specific file.
199+
[Install ty](https://docs.astral.sh/ty/installation/) and then please use the command `ty check` to test all files or `ty check path/to/file.py` to test a specific file.
200200

201201
- [__List comprehensions and generators__](https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions) are preferred over the use of `lambda`, `map`, `filter`, `reduce` but the important thing is to demonstrate the power of Python in code that is easy to read and maintain.
202202

DIRECTORY.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
## [Blockchain](blockchain)
112112
* [Diophantine Equation](blockchain/diophantine_equation.py)
113113
* [Merkle Tree](blockchain/merkle_tree.py)
114+
* [Proof Of Stake](blockchain/proof_of_stake.py)
115+
* [Proof Of Work](blockchain/proof_of_work.py)
114116
* [Simple Blockchain](blockchain/simple_blockchain.py)
115117
* [Simple Proof Of Work](blockchain/simple_proof_of_work.py)
116118

@@ -151,6 +153,7 @@
151153
* [Bifid](ciphers/bifid.py)
152154
* [Brute Force Caesar Cipher](ciphers/brute_force_caesar_cipher.py)
153155
* [Caesar Cipher](ciphers/caesar_cipher.py)
156+
* [Columnar Transposition](ciphers/columnar_transposition.py)
154157
* [Cryptomath Module](ciphers/cryptomath_module.py)
155158
* [Decrypt Caesar With Chi Squared](ciphers/decrypt_caesar_with_chi_squared.py)
156159
* [Deterministic Miller Rabin](ciphers/deterministic_miller_rabin.py)
@@ -180,6 +183,7 @@
180183
* [Shuffled Shift Cipher](ciphers/shuffled_shift_cipher.py)
181184
* [Simple Keyword Cypher](ciphers/simple_keyword_cypher.py)
182185
* [Simple Substitution Cipher](ciphers/simple_substitution_cipher.py)
186+
* [Skytale Cipher](ciphers/skytale_cipher.py)
183187
* [Transposition Cipher](ciphers/transposition_cipher.py)
184188
* [Transposition Cipher Encrypt Decrypt File](ciphers/transposition_cipher_encrypt_decrypt_file.py)
185189
* [Trifid Cipher](ciphers/trifid_cipher.py)
@@ -220,9 +224,11 @@
220224
* [Excel Title To Column](conversions/excel_title_to_column.py)
221225
* [Hex To Bin](conversions/hex_to_bin.py)
222226
* [Hexadecimal To Decimal](conversions/hexadecimal_to_decimal.py)
227+
* [Int To Negative Binary Base](conversions/int_to_negative_binary_base.py)
223228
* [Ipv4 Conversion](conversions/ipv4_conversion.py)
224229
* [Length Conversion](conversions/length_conversion.py)
225230
* [Molecular Chemistry](conversions/molecular_chemistry.py)
231+
* [Negative Binary Base To Int](conversions/negative_binary_base_to_int.py)
226232
* [Octal To Binary](conversions/octal_to_binary.py)
227233
* [Octal To Decimal](conversions/octal_to_decimal.py)
228234
* [Octal To Hexadecimal](conversions/octal_to_hexadecimal.py)
@@ -507,6 +513,7 @@
507513
* [Ic 555 Timer](electronics/ic_555_timer.py)
508514
* [Ind Reactance](electronics/ind_reactance.py)
509515
* [Ohms Law](electronics/ohms_law.py)
516+
* [Power Factor Correction](electronics/power_factor_correction.py)
510517
* [Real And Reactive Power](electronics/real_and_reactive_power.py)
511518
* [Resistor Color Code](electronics/resistor_color_code.py)
512519
* [Resistor Equivalence](electronics/resistor_equivalence.py)
@@ -524,6 +531,7 @@
524531
* [Exponential Moving Average](financial/exponential_moving_average.py)
525532
* [Interest](financial/interest.py)
526533
* [Kelly Criterion](financial/kelly_criterion.py)
534+
* [Macaulay Duration](financial/macaulay_duration.py)
527535
* [Present Value](financial/present_value.py)
528536
* [Price Plus Tax](financial/price_plus_tax.py)
529537
* [Sharpe Ratio](financial/sharpe_ratio.py)
@@ -551,6 +559,7 @@
551559
## [Geodesy](geodesy)
552560
* [Haversine Distance](geodesy/haversine_distance.py)
553561
* [Lamberts Ellipsoidal Distance](geodesy/lamberts_ellipsoidal_distance.py)
562+
* [Radar Target Calculation](geodesy/radar_target_calculation.py)
554563

555564
## [Geometry](geometry)
556565
* [Geometry](geometry/geometry.py)
@@ -636,6 +645,7 @@
636645
* [Strongly Connected Components](graphs/strongly_connected_components.py)
637646
* [Tarjans Scc](graphs/tarjans_scc.py)
638647
* Tests
648+
* [Test Graphs Floyd Warshall](graphs/tests/test_graphs_floyd_warshall.py)
639649
* [Test Johnson](graphs/tests/test_johnson.py)
640650
* [Test Min Spanning Tree Kruskal](graphs/tests/test_min_spanning_tree_kruskal.py)
641651
* [Test Min Spanning Tree Prim](graphs/tests/test_min_spanning_tree_prim.py)
@@ -724,6 +734,7 @@
724734
* [Loss Functions](machine_learning/loss_functions.py)
725735
* Lstm
726736
* [Lstm Prediction](machine_learning/lstm/lstm_prediction.py)
737+
* [Mab](machine_learning/mab.py)
727738
* [Mean Shift](machine_learning/mean_shift.py)
728739
* [Mfcc](machine_learning/mfcc.py)
729740
* [Mini Batch Gradient Descent](machine_learning/mini_batch_gradient_descent.py)
@@ -735,6 +746,7 @@
735746
* [Q Learning](machine_learning/q_learning.py)
736747
* [Random Forest Classifier](machine_learning/random_forest_classifier.py)
737748
* [Random Forest Regressor](machine_learning/random_forest_regressor.py)
749+
* [Ridge Regression](machine_learning/ridge_regression.py)
738750
* [Rmsprop](machine_learning/rmsprop.py)
739751
* [Scoring Functions](machine_learning/scoring_functions.py)
740752
* [Self Organizing Map](machine_learning/self_organizing_map.py)
@@ -967,6 +979,7 @@
967979
* [Count Paths](matrix/count_paths.py)
968980
* [Cramers Rule 2X2](matrix/cramers_rule_2x2.py)
969981
* [Inverse Of Matrix](matrix/inverse_of_matrix.py)
982+
* [Kronecker Product](matrix/kronecker_product.py)
970983
* [Largest Square Area In Matrix](matrix/largest_square_area_in_matrix.py)
971984
* [Matrix Based Game](matrix/matrix_based_game.py)
972985
* [Matrix Class](matrix/matrix_class.py)
@@ -1002,6 +1015,7 @@
10021015
* [Scaled Exponential Linear Unit](neural_network/activation_functions/scaled_exponential_linear_unit.py)
10031016
* [Soboleva Modified Hyperbolic Tangent](neural_network/activation_functions/soboleva_modified_hyperbolic_tangent.py)
10041017
* [Softplus](neural_network/activation_functions/softplus.py)
1018+
* [Softsign](neural_network/activation_functions/softsign.py)
10051019
* [Squareplus](neural_network/activation_functions/squareplus.py)
10061020
* [Swish](neural_network/activation_functions/swish.py)
10071021
* [Back Propagation Neural Network](neural_network/back_propagation_neural_network.py)
@@ -1021,6 +1035,8 @@
10211035
* [Activity Selection](other/activity_selection.py)
10221036
* [Alternative List Arrange](other/alternative_list_arrange.py)
10231037
* [Bankers Algorithm](other/bankers_algorithm.py)
1038+
* [Cheap Progress](other/cheap_progress.py)
1039+
* [Dancing Links](other/dancing_links.py)
10241040
* [Davis Putnam Logemann Loveland](other/davis_putnam_logemann_loveland.py)
10251041
* [Doomsday](other/doomsday.py)
10261042
* [Fischer Yates Shuffle](other/fischer_yates_shuffle.py)
@@ -1039,17 +1055,20 @@
10391055
* [Nested Brackets](other/nested_brackets.py)
10401056
* [Number Container System](other/number_container_system.py)
10411057
* [Password](other/password.py)
1058+
* [Pipeline](other/pipeline.py)
10421059
* [Quine](other/quine.py)
10431060
* [Scoring Algorithm](other/scoring_algorithm.py)
10441061
* [Sdes](other/sdes.py)
10451062
* [Sliding Window Maximum](other/sliding_window_maximum.py)
1063+
* [Token Bucket](other/token_bucket.py)
10461064
* [Tower Of Hanoi](other/tower_of_hanoi.py)
10471065
* [Word Search](other/word_search.py)
10481066

10491067
## [Physics](physics)
10501068
* [Altitude Pressure](physics/altitude_pressure.py)
10511069
* [Archimedes Principle Of Buoyant Force](physics/archimedes_principle_of_buoyant_force.py)
10521070
* [Basic Orbital Capture](physics/basic_orbital_capture.py)
1071+
* [Boyles Law](physics/boyles_law.py)
10531072
* [Bragg Angle](physics/bragg_angle.py)
10541073
* [Casimir Effect](physics/casimir_effect.py)
10551074
* [Center Of Mass](physics/center_of_mass.py)
@@ -1149,6 +1168,7 @@
11491168
* [Sol2](project_euler/problem_012/sol2.py)
11501169
* Problem 013
11511170
* [Sol1](project_euler/problem_013/sol1.py)
1171+
* [Sol2](project_euler/problem_013/sol2.py)
11521172
* Problem 014
11531173
* [Sol1](project_euler/problem_014/sol1.py)
11541174
* [Sol2](project_euler/problem_014/sol2.py)
@@ -1252,6 +1272,8 @@
12521272
* [Sol1](project_euler/problem_058/sol1.py)
12531273
* Problem 059
12541274
* [Sol1](project_euler/problem_059/sol1.py)
1275+
* Problem 060
1276+
* [Sol1](project_euler/problem_060/sol1.py)
12551277
* Problem 062
12561278
* [Sol1](project_euler/problem_062/sol1.py)
12571279
* Problem 063
@@ -1327,6 +1349,8 @@
13271349
* [Sol1](project_euler/problem_107/sol1.py)
13281350
* Problem 109
13291351
* [Sol1](project_euler/problem_109/sol1.py)
1352+
* Problem 111
1353+
* [Sol1](project_euler/problem_111/sol1.py)
13301354
* Problem 112
13311355
* [Sol1](project_euler/problem_112/sol1.py)
13321356
* Problem 113
@@ -1349,6 +1373,8 @@
13491373
* [Sol1](project_euler/problem_122/sol1.py)
13501374
* Problem 123
13511375
* [Sol1](project_euler/problem_123/sol1.py)
1376+
* Problem 124
1377+
* [Sol1](project_euler/problem_124/sol1.py)
13521378
* Problem 125
13531379
* [Sol1](project_euler/problem_125/sol1.py)
13541380
* Problem 129
@@ -1359,6 +1385,12 @@
13591385
* [Sol1](project_euler/problem_135/sol1.py)
13601386
* Problem 136
13611387
* [Sol1](project_euler/problem_136/sol1.py)
1388+
* Problem 137
1389+
* [Sol1](project_euler/problem_137/sol1.py)
1390+
* Problem 138
1391+
* [Sol1](project_euler/problem_138/sol1.py)
1392+
* Problem 142
1393+
* [Sol1](project_euler/problem_142/sol1.py)
13621394
* Problem 144
13631395
* [Sol1](project_euler/problem_144/sol1.py)
13641396
* Problem 145
@@ -1406,6 +1438,7 @@
14061438

14071439
## [Quantum](quantum)
14081440
* [Q Fourier Transform](quantum/q_fourier_transform.py)
1441+
* [Shor Algorithm](quantum/shor_algorithm.py)
14091442

14101443
## [Scheduling](scheduling)
14111444
* [Cpuschedulingalgorithms](scheduling/cpuschedulingalgorithms.py)
@@ -1505,8 +1538,10 @@
15051538
* [Autocomplete Using Trie](strings/autocomplete_using_trie.py)
15061539
* [Barcode Validator](strings/barcode_validator.py)
15071540
* [Bitap String Match](strings/bitap_string_match.py)
1541+
* [Booths Algorithm](strings/booths_algorithm.py)
15081542
* [Boyer Moore Horspool](strings/boyer_moore_horspool.py)
15091543
* [Boyer Moore Search](strings/boyer_moore_search.py)
1544+
* [Bpe Tokenizer](strings/bpe_tokenizer.py)
15101545
* [Camel Case To Snake Case](strings/camel_case_to_snake_case.py)
15111546
* [Can String Be Rearranged As Palindrome](strings/can_string_be_rearranged_as_palindrome.py)
15121547
* [Capitalize](strings/capitalize.py)
@@ -1523,6 +1558,7 @@
15231558
* [Indian Phone Validator](strings/indian_phone_validator.py)
15241559
* [Is Contains Unique Chars](strings/is_contains_unique_chars.py)
15251560
* [Is Isogram](strings/is_isogram.py)
1561+
* [Is Isomorphic](strings/is_isomorphic.py)
15261562
* [Is Pangram](strings/is_pangram.py)
15271563
* [Is Polish National Id](strings/is_polish_national_id.py)
15281564
* [Is Spain National Id](strings/is_spain_national_id.py)
@@ -1531,6 +1567,7 @@
15311567
* [Jaro Winkler](strings/jaro_winkler.py)
15321568
* [Join](strings/join.py)
15331569
* [Knuth Morris Pratt](strings/knuth_morris_pratt.py)
1570+
* [Largest Smallest Words](strings/largest_smallest_words.py)
15341571
* [Levenshtein Distance](strings/levenshtein_distance.py)
15351572
* [Lower](strings/lower.py)
15361573
* [Manacher](strings/manacher.py)
@@ -1567,6 +1604,8 @@
15671604
* [Covid Stats Via Xpath](web_programming/covid_stats_via_xpath.py)
15681605
* [Crawl Google Results](web_programming/crawl_google_results.py)
15691606
* [Crawl Google Scholar Citation](web_programming/crawl_google_scholar_citation.py)
1607+
* [Crypto Price](web_programming/crypto_price.py)
1608+
* [Crypto Price Tracker](web_programming/crypto_price_tracker.py)
15701609
* [Currency Converter](web_programming/currency_converter.py)
15711610
* [Current Stock Price](web_programming/current_stock_price.py)
15721611
* [Current Weather](web_programming/current_weather.py)

0 commit comments

Comments
 (0)