X Tutup
Skip to content

Generalizing & Refactoring#411

Merged
christianbender merged 13 commits intoTheAlgorithms:masterfrom
nikitap492:refactoring
Apr 11, 2018
Merged

Generalizing & Refactoring#411
christianbender merged 13 commits intoTheAlgorithms:masterfrom
nikitap492:refactoring

Conversation

@nikitap492
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

Copy link
Copy Markdown

@christianbender christianbender left a comment

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

* @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.

* @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.

@nikitap492
Copy link
Copy Markdown
Contributor Author

Done

@nikitap492
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

X Tutup