Skip to main content
Commonmark migration
Source Link

#Mathematica, 71 bytes

Mathematica, 71 bytes

Max[L/@Select[Array[a~IntegerDigits~#&,a=#,2],(L=Length)@Union@#==1&]]& 

Try it online!

#Mathematica, 71 bytes

Max[L/@Select[Array[a~IntegerDigits~#&,a=#,2],(L=Length)@Union@#==1&]]& 

Try it online!

Mathematica, 71 bytes

Max[L/@Select[Array[a~IntegerDigits~#&,a=#,2],(L=Length)@Union@#==1&]]& 

Try it online!

added 237 characters in body
Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

#Mathematica, 7771 bytes

Max@Array[Length/@s[[#]]&,Length[s=SplitMax[L/@Array[IntegerDigits[a,#]&@Select[Array[a~IntegerDigits~#&,a=#,2]]]&2],(L=Length)@Union@#==1&]]& 

Try it online!

#Mathematica, 77 bytes

Max@Array[Length/@s[[#]]&,Length[s=Split/@Array[IntegerDigits[a,#]&,a=#,2]]]& 

#Mathematica, 71 bytes

Max[L/@Select[Array[a~IntegerDigits~#&,a=#,2],(L=Length)@Union@#==1&]]& 

Try it online!

Source Link
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

#Mathematica, 77 bytes

Max@Array[Length/@s[[#]]&,Length[s=Split/@Array[IntegerDigits[a,#]&,a=#,2]]]&