An open API service indexing awesome lists of open source software.

https://github.com/slowikj/string-set-queries

The solution to a codeforces' algorithmic task (a hashing algorithm)
https://github.com/slowikj/string-set-queries

Last synced: 7 months ago
JSON representation

The solution to a codeforces' algorithmic task (a hashing algorithm)

Awesome Lists containing this project

README

          

# StringSetQueries
The solution to [a codeforces' algorithmic task](http://codeforces.com/problemset/problem/710/F)
(a hashing algorithm)

Task
---
We have three different operations:

1. Add a string to the set
2. Remove a string from the set
3. Make a query about the number of occurences of the strings from the set in given string

Example
---
Input
```
5
1 aaa
1 abc
3 aaaabc
2 aaa
3 aaaabc
```

Output
```
3
1
```