Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
7
03-behavioral/strategy/SortStrategy.java
Normal file
7
03-behavioral/strategy/SortStrategy.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package strategy;
|
||||
|
||||
/** Strategy interface — all sorting algorithms implement this */
|
||||
public interface SortStrategy {
|
||||
void sort(int[] data);
|
||||
String getName();
|
||||
}
|
||||
Reference in New Issue
Block a user