Skip to main content
added 46 characters in body
Source Link
rexkogitans
  • 647
  • 3
  • 10

bash + GNU coreutils, 115109 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printffor 'k %.0s'in `seq 0$i`;{ $i`)printf ' ';}
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind. Uniqueness of chracters does not matter here.

bash + GNU coreutils, 115 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printf ' %.0s' `seq 0 $i`)
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind. Uniqueness of chracters does not matter here.

bash + GNU coreutils, 109 Bytes

l=${#1}
for i in `seq 0 $l`;{
for j in `seq $((l-i))`;{
for k in `seq $i`;{ printf ' ';}
echo ${1:i:j}
}; }

Maybe there is a shorter solution, but this is the best that came into my mind. Uniqueness of chracters does not matter here.

added 46 characters in body
Source Link
rexkogitans
  • 647
  • 3
  • 10

bash + GNU coreutils, 115 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printf ' %.0s' `seq 0 $i`)
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind. Uniqueness of chracters does not matter here.

bash + GNU coreutils, 115 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printf ' %.0s' `seq 0 $i`)
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind.

bash + GNU coreutils, 115 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printf ' %.0s' `seq 0 $i`)
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind. Uniqueness of chracters does not matter here.

Source Link
rexkogitans
  • 647
  • 3
  • 10

bash + GNU coreutils, 115 Bytes

l=${#1}
for i in `seq 0 $l`;{  
for j in `seq $((l-i))`;{
t=$(printf ' %.0s' `seq 0 $i`)
echo "${t:1}${1:i:j}"
}; }

Maybe there is a shorter solution, but this is the best that came into my mind.