Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 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