810 Commits

Author SHA1 Message Date
75d11f9034 Correctly check for squares of primes (#549)
As the for-loop was looping by two numbers, it would stop at 1 number less than the root of prime squares, resulting it in incorrectly classifying the squares as prime numbers. Incrementing the loop ensures the next number is also considered resulting in accurate classification.
2018-10-30 14:38:44 +01:00
fa86d3d954 Add Jump Search image (#552)
* Add Jump Search image

* Update README.md
2018-10-29 18:23:24 +01:00
cf31efb53f Update README.md (#553) 2018-10-29 18:12:00 +01:00
4e0184a41d Update caesar_cipher.py
Removed unnecessary recursion and updated code!
2018-10-27 14:14:35 +02:00
a84f7c073f Rename segment_tree to segment_tree.py 2018-10-27 13:38:23 +02:00
e1d1f8513d Delete binary_seach_tree.py
I forgot that we already have an implementation of Binary Search! So deleting this one!
2018-10-27 13:36:30 +02:00
f0af8320f7 Merge branch 'master' of git://github.com/AbhishekVarshney98/Python 2018-10-27 13:30:30 +02:00
c787c13a71 Resolve conflicts 2018-10-27 13:29:53 +02:00
ce0a013ad7 Update bubble_sort.py (#535) 2018-10-27 13:21:44 +02:00
f0d5bc6ece Merge branch 'improved_sorting_algo' of git://github.com/YasirChoudhary/Python 2018-10-26 17:25:36 +02:00
3bab59ae06 LGTM: Start testing on Python 3 instead of Python 2 (#510)
* LGTM: Start testing on Python 3 instead of Python 2

Fixes: #492

* LGTM: Run flake8 tests in before_index

* Update .lgtm.yml

* Indentation

* python3 -m

* Try on Python 3.7 instead of 3.6

* LGTM: Run flake8 tests on Python 3.6

* Check version of flake8

* python3 -m pip install --upgrade --user flake8

* requirements: flake8

* Update .lgtm.yml

* Ready for review

* Update .lgtm.yml

* Force a retest

* Rebuild
2018-10-24 21:38:51 +02:00
3fa8f7bc2f Update logistic_regression.py 2018-10-24 21:20:28 +02:00
2638d57c71 Update caesar_cipher.py 2018-10-24 21:13:42 +02:00
471b3110d6 Update README.md (#512)
removed merge beacons ;)
2018-10-24 20:18:50 +02:00
c7de76deda Resovle conflicts 2018-10-24 20:12:10 +02:00
ed11384116 Update sol2.py 2018-10-24 12:50:39 +02:00
a50c6b4163 added sasslabel 2018-10-23 17:24:42 +05:30
11480295d4 Merge branch 'NguyenU' of git://github.com/NguyenU/Python into NguyenU-NguyenU 2018-10-22 20:52:42 +02:00
45a1ab213e Update FindMax.py 2018-10-22 20:42:08 +02:00
67d409b6be Find max function in python 2018-10-22 14:36:08 -04:00
ea2ddaaf6a all valid python 3 2018-10-20 14:45:08 -05:00
b566055e4b Merge branch 'master' of https://github.com/TheAlgorithms/Python 2018-10-20 14:15:21 -05:00
04abc2841c Update README.md 2018-10-20 15:29:21 +05:30
5f90dfbbe7 fixed file reading name for test_tabu_search.py 2018-10-19 17:40:52 -05:00
b43864552b .txt instead of .py 2018-10-19 17:38:11 -05:00
91fccecb56 snake_case all the things 2018-10-19 17:14:25 -05:00
b63a1115b2 Added a new Algorithm to check if a number is prime or not. (#487)
* Added a new Algorithm to check if a number is prime or not.

Added a new Algorithm to check if a number is prime or not. It takes one + half the amount of iterations of the square root of the number. Returns Boolean value.

* Fixed possibility of being truncated

Changed the 1/2 with a 0.5

* Fixed Major Error

Instead of 3, 5, 7 The Loop as checking 2, 4, 6 which would cause all odd numbers to show prime. Fixed by subtracting one.

* Fixed Minor Formatting issues

Github Merged the 2 previous and current version to make a weird file.

* Fixed possibility of being truncated

Changed the 1/2 with a 0.5
2018-10-19 19:15:53 +02:00
116ab0fa96 Merge branch 'master' of git://github.com/epicalyx/Python into epicalyx-master 2018-10-19 15:44:30 +02:00
c0f7df7e22 Fixed error on chr function when decrypt (#359)
On line 23 when make the operations returns a float and chr function doesn't permit float values as parameters.
2018-10-19 15:42:19 +02:00
93de559ff6 Just emboldened text and standardized some formatting throughout the file. (#358)
modified:   README.md

	modified:   README.md

	modified:   README.md
2018-10-19 15:36:37 +02:00
b7ffcec7cd Merge branch 'clean-up' of git://github.com/RobbyB97/Python into RobbyB97-clean-up 2018-10-19 15:33:31 +02:00
94324e91b4 Create FractionalKnapsack.py (#438) 2018-10-19 15:21:40 +02:00
81dc87aeb1 Merge branch 'master' of git://github.com/Himani2000/Python into Himani2000-master 2018-10-19 15:13:52 +02:00
683474c64b Add Problem 31 solution 2018-10-19 14:53:34 +02:00
564179a0ec increment 1 2018-10-19 07:48:28 -05:00
718b99ae39 increment 1 2018-10-19 07:48:01 -05:00
90979777c7 Added PSNR calculator for image compression quality analysis (#475)
* Added PSNR calculator for image compression quality analysis

* Removed unused variables and redundancy
2018-10-19 13:56:08 +02:00
315a357c1b fully connected neural net (#479)
Fully connected Neural Net using keras on Mnist
2018-10-19 13:29:26 +02:00
af12df9fe8 Update image url (#484) 2018-10-19 13:22:11 +02:00
5d1f72604d Improved Code and removed Warnings (#483) 2018-10-19 14:00:31 +05:30
07451a6ca4 Improved Code and removed warnings (#482)
Improved Code and removed warnings
2018-10-19 13:28:21 +05:30
9561259285 Merge branch 'master' into improved_sorting_algo 2018-10-19 12:05:26 +05:30
fedb3e70ab Merge pull request #477 from ParthS007/patch1
Fixes#476 : Remove Multiple Unused Imports and Variable
2018-10-18 05:36:46 +05:30
0856a61859 Remove Multiple Unused Imports and Variable 2018-10-18 02:58:57 +05:30
765a3267fc Merge pull request #469 from Hyftar/project-euler-improvements
Fix problem 09 folder name
2018-10-17 15:09:59 +02:00
250ddc23ea Fix problem 09 folder name 2018-10-16 19:50:45 -04:00
7105f6f648 minor changes
requested changes are addressed
2018-10-17 01:07:29 +05:30
f018ddc4c0 requested changes addressed 2018-10-17 00:52:32 +05:30
ade3ed3784 Logistic regression implementation
implementation of logistic regression for binary classification
2018-10-17 00:22:44 +05:30
16aea149a2 Merge pull request #420 from prateekyo/master
Update bubble_sort.py
2018-10-16 20:49:34 +02:00