Commit Graph

1657 Commits

Author SHA1 Message Date
Mayank Khanna
5282f26897
Typo fix in README.md 2018-10-04 00:58:53 +05:30
Piyush
df74e656a2 add: sort technique using vectors 2018-10-02 23:16:58 +05:30
Vaibhav Gupta
485d1b2bb8
solve bus-error (core dumped), run-time error
- Run time error on linux.
  - 'n' is declared but not initialized, neither its value is taken from user.
  - 'n' contains garbage value, thus throws run time error.
2018-10-02 17:05:25 +05:30
Vaibhav Gupta
f499342869
Optimize bubble sort algorithm
-introduced variable 'swap' for 'outer-for-loop' of bubble sort algorithm. If it remains zero after executing inner-loop, it means array is sorted, hence it does not need to run for n^2 times.
- 'for(int j=0; j<n-1-i; j++)', as after each step, one number reaches to its right position. Thus inner loop does not need to run for 'n' times in every cycle.
2018-10-02 16:34:16 +05:30
Ayush Nagar
bb46f062dc
median search=> 2018-10-02 12:00:43 +05:30
Aruj Sharma
d72b48e5ee
Create BitonicSort.cpp 2018-10-02 10:26:44 +05:30
Nikhil Arora
c7b69429c1 added knight tour to backtracking and longest common string to dynamic 2018-10-02 01:05:40 +05:30
Manas Khosla
de2f69a10a
Added EXIT option and some fine-tunings
Added EXIT option in the menu for getting out of the loop and added lines between printing the list and choices for fine-tuning the output.
2018-09-28 23:41:01 +05:30
Pradeep Singh
b5de696aed
added a new implementation of linked list 2018-09-28 18:48:24 +05:30
Emre Doğan
4ff86897b1
n is now taken as an input. 2018-09-26 00:19:09 +03:00
CrazyMerlyn
0e3b07ec47 Fix bugs in edit distance implementation 2018-09-16 16:47:02 +05:30
Rohit Gupta
aead0ba366
Merge pull request #98 from khanna98/master
Circular Queue using Linked List
2018-09-16 00:14:02 +05:30
Kaushal Agrawal
28e4842319
Update sieve_of_Eratosthenes.cpp
Multiple changes:
Time complexity updated.
Fixed Indentation issues.
Global array primes[ ] was misleading because primes[x] = 0 means x is prime. Updated the array name to isprime[ ] and now isprime[x] = 1 means x is prime. Updated the code accordingly.
2018-09-13 05:57:56 +05:30
DDullahan
1f5533c77f Added FenwickTree For Range Query 2018-08-29 22:48:13 +08:00
Mayank Khanna
2d39a0ef59 Circular Queue using Linked List 2018-08-16 14:24:25 +05:30
soulzstriker
210a0d47f4 Clean up the HTML comments 2018-08-02 17:02:37 +08:00
Christian Bender
24794d8f08
Merge pull request #95 from Split174/Smallest-circle-problem
naive algorithm for the circumscribed circle
2018-05-18 22:58:32 +02:00
Sergey Popov
f49bb23f4b naive algorithm for the circumscribed circle 2018-04-29 22:28:49 +05:00
PARISOT paul andrea
ef377b0807 implementation of the odd even sort 2018-04-27 15:48:55 +02:00
Christian Bender
f859394232
Merge pull request #93 from linus-xuzixuan/patch-1
Edits #include directives
2018-04-22 19:14:11 +02:00
linus-xuzixuan
4fe2cf67b9
Edits #include directives
My computer doesn't seem to have the stdc++.h, so I tried changing it to the two headers really used.
2018-04-22 00:52:40 +08:00
Christian Bender
f9490839b6
Merge pull request #92 from vasutomar/Hashing
Super! Keep it up!
2018-04-19 16:21:15 +02:00
vasutomar
f3f0e88ad9 Hashing with collision resolution 2018-04-18 18:09:35 +05:30
vasutomar
37a2be33b7 Hashing with collision resolution 2018-04-18 18:06:51 +05:30
vasutomar
7747d3a6c3 Hashing implementation with chaining collision resolution 2018-04-17 14:12:30 +05:30
PARISOT paul andrea
ceee15943e Implementation of the OddEven sorting algorithm 2018-04-16 17:14:45 +02:00
PARISOT paul andrea
facd742c19 Implementation of the OddEven sorting algorithm 2018-04-16 17:13:01 +02:00
Christian Bender
209a3939ee
Merge pull request #91 from arnavb/patch-1
Delete .DS_Store (A local OSX binary file)
2018-04-11 17:22:02 +02:00
Arnav Borborah
720ef2d5c5
Delete .DS_Store 2018-04-10 10:43:01 -04:00
Christian Bender
d3185357bd improved the code 2018-03-27 23:14:19 +02:00
Christian Bender
cc9e8d0d17 improved the code 2018-03-27 22:51:40 +02:00
Christian Bender
0256f9edd8 improved the code and put in some comments 2018-03-27 18:51:25 +02:00
Christian Bender
df78018594
Merge pull request #90 from TheAlgorithms/changed_sparse_matrix
fixed bugs and improved the code
2018-03-27 17:52:33 +02:00
Christian Bender
86a241bff5 fixed bugs and improved the code 2018-03-27 17:51:33 +02:00
Christian Bender
6ea11b31d6
added a UI and small changes
I added a UI and maked small changes.
2018-03-17 16:37:23 +01:00
Christian Bender
5d6b45ef3c
fixed error and added a UI
If used prime numbers it occurred an error. This error is fixed. And I added a UI.
2018-03-17 16:02:21 +01:00
Christian Bender
cdb057f613
fixed bug
If used prime numbers it occurred an error.
2018-03-17 15:53:00 +01:00
Christian Bender
8b2bab4d11
Add files via upload 2018-03-17 15:51:07 +01:00
Christian Bender
ead31b2c77
fixed error by usage of prime numbers 2018-03-17 15:50:11 +01:00
Christian Bender
d76510dfee
Add files via upload 2018-03-16 23:15:22 +01:00
Christian Bender
f675d29ad9
changed the code
I changed the code more C++ like. And formated the code better.
2018-03-16 23:13:55 +01:00
Christian Bender
c906b8f1eb
Delete Knapsack.exe 2018-03-16 22:33:30 +01:00
Christian Bender
60f94892ea
Merge pull request #88 from vaithak/master
Nice idea! Thanks for contribution!
2018-03-13 21:29:02 +01:00
Vaibhav Thakkar
6b1f5d2f04
Create Rat_maze.cpp 2018-03-13 04:36:21 +05:30
Christian Bender
f785f37376
Merge pull request #51 from shazly333/master
Add Ternary Search
2018-03-09 21:03:40 +01:00
Christian Bender
cbcccf0418
Merge pull request #58 from rohitchugh9/master
Thanks for contributing
2018-02-20 22:01:55 +01:00
Christian Bender
87e79e916c
Merge pull request #44 from arpanjain97/master
Thanks for contributing!
2018-01-15 15:37:23 +01:00
Christian Bender
12aa989055
Merge pull request #85 from hegdenaveen1/patch-12
Added Numeric String Sort
2018-01-15 15:33:24 +01:00
Christian Bender
0ac736ea77
Merge pull request #48 from nghiaxlee/nghiaxlee_comb_sort
Thanks for contributing
2018-01-06 15:49:27 +01:00
Le Minh Nghia
51caf366c9
Replace library 2018-01-03 19:35:42 +01:00