Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
podd0 committed Jan 14, 2024
1 parent e2c7bfa commit af05ab6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/periods.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
#include "common.h"
#include "z_func.h"

vi periods(string s)
{
vi periods(string s) {
vi z = z_function(s), p;
int n = ssize(z);
for(int i = 1; i < n; i++)
{
for(int i = 1; i < n; i++) {
// if(n%i == 0) // uncomment for no trailing subperiods
if(z[i]+i == n)
p.push_back(i);
Expand Down

0 comments on commit af05ab6

Please sign in to comment.