Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Match string problems to appropriate algorithms
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -35% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -50% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -7% | 0% |
Match string processing problems to the most appropriate algorithms based on requirements and constraints.
| Scenario | Algorithm | Complexity | |----------|-----------|------------| | Single pattern | KMP | O(n+m) | | Multiple patterns | Aho-Corasick | O(n+m+z) | | Approximate match | Rolling Hash | O(nm) average |
| Need | Structure | Build Time | |------|-----------|------------| | Substring search | Suffix Array | O(n log n) | | Multiple queries | Suffix Tree | O(n) | | Subsequence counting | Suffix Automaton | O(n) |
| Problem | Algorithm | |---------|-----------| | Longest palindromic substring | Manacher | | Palindrome partitioning | DP + Manacher | | Palindrome queries | Hashing |
json{ "type": "object", "properties": { "problemDescription": { "type": "string" }, "problemType": { "type": "string", "enum": ["patternMatch", "suffixQueries", "palindrome", "subsequence", "dp"] }, "constraints": { "type": "object" } }, "required": ["problemDescription"] }
json{ "type": "object", "properties": { "success": { "type": "boolean" }, "algorithm": { "type": "string" }, "complexity": { "type": "string" }, "alternatives": { "type": "array" }, "implementation": { "type": "string" } }, "required": ["success", "algorithm"] }
Other measured skills in the registry, with their headline benchmark lift.