mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 19:14:55 +08:00
style: include OCP_OVERLY_CONCRETE_PARAMETER
(#5833)
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.thealgorithms.backtracking;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -95,7 +96,7 @@ public final class CrosswordSolver {
|
||||
* @param words The list of words to be placed.
|
||||
* @return true if the crossword is solved, false otherwise.
|
||||
*/
|
||||
public static boolean solveCrossword(char[][] puzzle, List<String> words) {
|
||||
public static boolean solveCrossword(char[][] puzzle, Collection<String> words) {
|
||||
// Create a mutable copy of the words list
|
||||
List<String> remainingWords = new ArrayList<>(words);
|
||||
|
||||
|
Reference in New Issue
Block a user