Commit Graph

2984 Commits

Author SHA1 Message Date
bharath-123
bd7054ace9
updated testcase
Changed name to __name__. Sorry for the typo!
2018-07-23 13:01:02 +05:30
Christian Bender
6da7becf5a
Merge pull request #330 from bharath-123/patch-1
Added test case to knapsack.py
2018-07-23 00:07:27 +02:00
bharath-123
a9f9062080
Added code for memory function implementation
Added a function which implements knapsack using memory functions. Also I updated the test cases to include test cases for the memory function implementation.
2018-07-23 00:36:53 +05:30
bharath-123
d96048a7df
Updated test case
Made a typo writing name instead of __name__
2018-07-23 00:29:40 +05:30
bharath-123
2f22ea1acd
Added test case
Added a test case check knapsack.py
2018-07-23 00:18:58 +05:30
Christian Bender
9faaebcc80
Merge pull request #323 from Wayde2014/master
typo: strip
2018-07-22 18:09:00 +02:00
Christian Bender
ae5148962d
Merge pull request #316 from AnshulMalik/segment-tree-refactor
refactor-segment-tree
2018-07-22 18:04:58 +02:00
Christian Bender
ee92291249
Merge pull request #325 from cclauss/patch-5
Properly define raw_input() in Python 3
2018-07-16 23:54:06 +02:00
Christian Bender
2ca8d16af0
Merge pull request #324 from cclauss/patch-3
print() is a function in Python 3
2018-07-16 23:52:44 +02:00
cclauss
bec160c6dc
Use strip() to deal with leading or trailing whitespace 2018-07-03 08:33:38 +02:00
cclauss
ee3b0f2e50
Properly define raw_input)( in Python 3
__raw_input()__ was removed in Python 3 in favor of __input()__.  This change ensure similar functioning in both Python 2 and Python 3.
2018-07-02 10:11:28 +02:00
cclauss
d4594da532
print() is a function in Python 3 2018-07-02 10:07:25 +02:00
PandllCom
ac30a97e99
typo: strip 2018-06-26 10:55:21 +08:00
Harshil
d4b4b7ba35
Merge pull request #321 from aldokkani/master
Break if the collection is sorted
2018-06-25 23:38:44 +02:00
Hossam Al-Dokkani
9489e8512d Break if the collection is sorted 2018-06-23 17:01:06 +02:00
Harshil
cb6c82cb0f
Merge pull request #318 from psyas/master
Create new cipher - Elgamal cipher key generator
2018-06-13 15:52:18 +02:00
psyas
0c8707d11c Elgamal cipher key generator code - (initial) 2018-06-12 21:21:38 +09:00
psyas
602eae756e Elgamal cipher key generator code - (initial) 2018-06-12 21:18:50 +09:00
psyas
cc51a667e1 modify README.md by psyas for just test 2018-06-12 14:58:06 +09:00
Anshul Malik
0d19edbcb3 refactor-segment-tree 2018-06-05 21:39:16 +05:30
Harshil
16cd42c26c
Updated sol2.py to make it work as expected 2018-06-03 12:47:36 +02:00
Harshil
8727246ed7
Merge pull request #304 from hytae1993/master
quicksort_3_partition
2018-05-28 23:35:13 +02:00
Harshil
31f968f589
small change! 2018-05-28 23:34:21 +02:00
Harshil
192ba078dc
Merge pull request #305 from PyDevthon/patch-1
Updated_caesar_cipher.py
2018-05-28 23:26:03 +02:00
Harshil
13617225ca
small improvements! 2018-05-28 23:25:48 +02:00
PyDevthon
f1fe458356
Updated_caesar_cipher.py
Updated
2018-05-28 19:16:02 +05:30
Hyuntae
ca7eb46756 quicksort_3_partition 2018-05-28 19:19:15 +09:00
Christian Bender
2e74c8edf0
Merge pull request #301 from yesIamHasi/patch-6
Create merge_sort_fastest.py
2018-05-21 16:38:35 +02:00
Harshil
71fd719ab7
Update merge_sort_fastest.py 2018-05-21 10:28:37 +02:00
Harshil
7f4b240d1a
Update merge_sort_fastest.py
I have modified the code a little to make it work as expected!
2018-05-21 10:21:33 +02:00
Harshil
8957cf7ea8
Removed empty lines (255-313)
Lines 255 to 313 were just empty, so removed those lines!
2018-05-21 10:01:44 +02:00
Syed Haseeb Shah
237df47a31
Create merge_sort_fastest.py
Python implementation of merge sort algorithm.
Takes an average of 0.6 microseconds to sort a list of length 1000 items.
Best Case Scenario : O(n)
Worst Case Scenario : O(n)
2018-05-20 23:00:17 +05:00
Harshil
099caeb423
Merge pull request #300 from irokafetzaki/tabu
Tabu Search
2018-05-20 17:50:53 +02:00
Harshil
2d360cd73e
Merge pull request #298 from yesIamHasi/patch-5
Create Fischer-Yates_Shuffle.py
2018-05-20 17:49:55 +02:00
irokafetzaki
35110b6e44 Tabu Search 2018-05-20 02:27:01 +03:00
Syed Haseeb Shah
09088cd835
Create Fischer-Yates_Shuffle.py
The Fisher–Yates shuffle is an algorithm for generating a random permutation of a finite sequence.
For more details visit
wikipedia/Fischer-Yates-Shuffle
2018-05-19 16:07:24 +05:00
Christian Bender
f51020780c
Merge pull request #296 from shivg7706/master
added PE 11, 22, 24
2018-04-29 14:19:21 +02:00
shivg7706
515cf2e81a changes 2018-04-26 08:54:44 +05:30
shivg7706
ab9ee4064e adding 22 and 24 2018-04-26 08:53:17 +05:30
shivg7706
4b58a88732 another sol for 11 2018-04-26 08:49:55 +05:30
Harshil
5832340ac6
Merge pull request #295 from bp274/master
Modernize Python 2 code to work for Python 3
2018-04-17 00:52:00 +05:30
Bhaavik Pratyush
3562182542
Update sol2.py 2018-04-16 19:17:28 +05:30
Christian Bender
dbfc220264
Merge pull request #294 from TheAlgorithms/documented_md5_hash
Documented md5 hash
2018-04-16 14:19:31 +02:00
Christian Bender
0494d48f84 added a docstring 2018-04-16 14:18:23 +02:00
Christian Bender
cfae621f46 I documented the md5 hash 2018-04-16 14:13:49 +02:00
Christian Bender
060988b896
Merge pull request #293 from TheAlgorithms/changed_chaosmachine
added a option for termination the program
2018-04-16 13:43:41 +02:00
Christian Bender
c1422ec99c fixed the assert statments 2018-04-16 13:42:44 +02:00
Christian Bender
3a7e75f329 added a option for termination the program 2018-04-16 13:37:04 +02:00
Harshil
621192998e basic client-server implementation 2018-04-16 06:56:53 +02:00
Christian Bender
ca5c6f268a
Merge pull request #292 from TheAlgorithms/fixed_solv_4_problem1
fixed solution 4 of problem 1
2018-04-15 23:53:37 +02:00