add solutions for hw6:Base
Some checks failed
Fast Reverse Tests / test (push) Successful in 24s
Reverse Tests / test (push) Successful in 7s
Sum Tests / test (push) Successful in 7s
Word Stat Tests / test (push) Successful in 7s
Word Stat++ Tests / test (push) Failing after 11s

This commit is contained in:
2026-02-02 14:32:45 +05:00
parent dec9762ba2
commit ddba0fc8b5
4 changed files with 76 additions and 8 deletions

View File

@@ -17,7 +17,6 @@ public class Wspp {
try {
WordScanner scanner = new WordScanner(inputFile);
// LinkedHashMap сохраняет порядок вставки
Map<String, WordInfo> wordMap = new LinkedHashMap<>();
int wordPosition = 1;
@@ -41,7 +40,6 @@ public class Wspp {
scanner.close();
// Запись результата
PrintWriter writer = new PrintWriter(
new OutputStreamWriter(
new FileOutputStream(outputFile), StandardCharsets.UTF_8));
@@ -63,9 +61,4 @@ public class Wspp {
System.err.println("Error: " + e.getMessage());
}
}
static class WordInfo {
int count;
IntList positions;
}
}