Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made some changes #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

AndySakov
Copy link

@AndySakov AndySakov commented Dec 1, 2020

Changes Made
Mathematics ->
Abs.scala - Removed redundant return keywords, made the whole function inline and fixed issues found in the doc comments
AbsMax.scala - Added the imports for abs function implemented in Abs.scala and fixed issues found in the doc comments
AbsMin.scala - Added the imports for abs function implemented in Abs.scala and fixed issues found in the doc comments
BinaryExponentiation.scala - Removed redundant return keywords and brackets, fixed issues found in the doc comments and refactored the tabs and spaces properly
Fibonacci.scala - Changed numeric type from Int to Long to accommodate for bigger numbers and fixed issues found in the doc comments
FindMax.scala - fixed issues found in the doc comments
FindMin.scala - fixed issues found in the doc comments
GreaterCommonDivisor.scala - changed name to GreatestCommonDivisor [test spec, file and object names], added tailrec annotation and fixed issues found in the doc comments
LinearSieve.scala - Changed numeric type from Int to Long to accommodate for bigger numbers and fixed issues found in the doc comments
PrimeFactors.scala - Removed redundant return keywords and brackets, fixed issues found in the doc comments and refactored the tabs and spaces properly
StreamSieve.scala - Changed numeric type from Int to Long to accomodate for bigger numbers and fixed issues found in the doc comments
Search ->
BinarySearch.scala - Added tailrec annotation
JumpSearch.scala - Removed redundant return keywords
LinearSearch.scala - Removed unnecessary parenthesis
Sort ->
BubbleSort.scala - Changed '0 to array.length - 1' to 'array.indices'
HeapSort.scala - Changed 'var to val' on line 31 and fixed issues found in the doc comments
InsertionSort.scala - Changed '0 to array.length - 1' to 'array.indices'
MergeSort.scala - Fixed a typo on line 30
SelectionSort.scala - Changed '0 to array.length - 1' to 'array.indices' and Changed 'i + 1 to array.length - 1' to 'i + 1 until array.length'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant