akuniutka / algorithm

Implementations of different sorting and searching algorithms.
MIT License
0 stars 0 forks source link

In Rabin-Karp algorithm split inner class into two #16

Closed akuniutka closed 11 months ago

akuniutka commented 11 months ago

In order to avoid unnecessary power for a 'needle' string.

akuniutka commented 11 months ago

Removed an excessive call of power() by wrapping it if-condition.