Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Rep-string/Mathematica/rep-string-1.math
Normal file
1
Task/Rep-string/Mathematica/rep-string-1.math
Normal file
|
|
@ -0,0 +1 @@
|
|||
RepStringQ[strin_String]:=StringCases[strin,StartOfString~~Repeated[x__,{2,\[Infinity]}]~~y___~~EndOfString/;StringMatchQ[x,StartOfString~~y~~___]:>x, Overlaps -> All]
|
||||
2
Task/Rep-string/Mathematica/rep-string-2.math
Normal file
2
Task/Rep-string/Mathematica/rep-string-2.math
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
str={"1001110011","1110111011","0010010010","1010101010","1111111111","0100101101","0100100","101","11","00","1"};
|
||||
{#,RepStringQ[#]}&/@str//Grid
|
||||
Loading…
Add table
Add a link
Reference in a new issue