Skip to content

Generalizing & Refactoring - #411

Merged
christianbender merged 13 commits into
TheAlgorithms:masterfrom
nikitapodsh:refactoring
Apr 11, 2018
Merged

christianbender merged 13 commits into
TheAlgorithms:masterfrom
nikitapodsh:refactoring

Conversation

@nikitapodsh

Copy link
Copy Markdown
Contributor

There was too many differences in code between sort classes, so I decided to generalize it.
I've created utility class which removes some boilerplate and the general interface for the most algorithms
Also, I replaced all algorithms in a new directory, like others java projects
Fixed some bugs in the algorithms and did some perfomance improvments

@christianbender christianbender left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have some requests

Comment thread Sorts/src/sort/BogoSort.java Outdated
* @see SortAlgorithm
*
*/
public class BogoSort implements SortAlgorithm{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add space between the interface name and the curly brace.

Comment thread Sorts/src/sort/BubbleSort.java Outdated
* @see SortAlgorithm
*/

class BubbleSort implements SortAlgorithm{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing as above.

@nikitapodsh

Copy link
Copy Markdown
Contributor Author

Done

@nikitapodsh

Copy link
Copy Markdown
Contributor Author

Added the new algorithms

@christianbender
christianbender merged commit f808a2b into TheAlgorithms:master Apr 11, 2018
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.

2 participants