Skip to main content
added 73 characters in body
Source Link
scpchicken
  • 783
  • 5
  • 12

Pyth, 32 31 bytes

Not a very optimal solution feelbecause I couldn't get the short function defintion using the L command. Feel free to help me out here

Code

DtZJrZ0R.ehSmadksmxdcJ1"aeiou"J

Big-Pyth Version

def
  tail
  zero-var

  implicit-assign
    auto-var
    lower
      zero-var
      0

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    auto-var
                    1
                str-start aeiou str-end
      auto-var

Try it online!

Translation Link

Pyth, 32 31 bytes

Not a very optimal solution feel free to help me out here

Code

DtZJrZ0R.ehSmadksmxdcJ1"aeiou"J

Big-Pyth Version

def
  tail
  zero-var

  implicit-assign
    auto-var
    lower
      zero-var
      0

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    auto-var
                    1
                str-start aeiou str-end
      auto-var

Try it online!

Translation Link

Pyth, 32 31 bytes

Not a very optimal solution because I couldn't get the short function defintion using the L command. Feel free to help me out here

Code

DtZJrZ0R.ehSmadksmxdcJ1"aeiou"J

Big-Pyth Version

def
  tail
  zero-var

  implicit-assign
    auto-var
    lower
      zero-var
      0

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    auto-var
                    1
                str-start aeiou str-end
      auto-var

Try it online!

Translation Link

added 71 characters in body
Source Link
scpchicken
  • 783
  • 5
  • 12

Pyth, 3232 31 bytes

Not a very optimal solution feel free to help me out here

Code

DtZRDtZJrZ0R.ehSmadksmxdcZ1"aeiouAEIOU"ZehSmadksmxdcJ1"aeiou"J

Big-Pyth Version

def
  tail
  zero-var

  implicit-assign
    auto-var
    lower
      zero-var
      0

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    zeroauto-var
                    1
                str-start aeiouAEIOUaeiou str-end
      zeroauto-var

Try it online!Try it online!

Translation Link

Pyth, 32 bytes

Not a very optimal solution feel free to help me out here

Code

DtZR.ehSmadksmxdcZ1"aeiouAEIOU"Z

Big-Pyth Version

def
  tail
  zero-var

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    zero-var
                    1
                str-start aeiouAEIOU str-end
      zero-var

Try it online!

Translation Link

Pyth, 32 31 bytes

Not a very optimal solution feel free to help me out here

Code

DtZJrZ0R.ehSmadksmxdcJ1"aeiou"J

Big-Pyth Version

def
  tail
  zero-var

  implicit-assign
    auto-var
    lower
      zero-var
      0

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    auto-var
                    1
                str-start aeiou str-end
      auto-var

Try it online!

Translation Link

deleted 3 characters in body
Source Link
scpchicken
  • 783
  • 5
  • 12

Pyth, 32 bytes

Not a very optimal solution feel free to help me out here

Code

DtZR.ehSmadksmxdcZ1"aeiouAEIOU"Z

Big-Pyth Version

def
  tail
  zero-var

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    zero-var
                    1
                str-start aeiouAEIOU str-end
      zero-var

Try it online!Try it online!

Translation Link

Pyth, 32 bytes

Not a very optimal solution feel free to help me out here

Code

DtZR.ehSmadksmxdcZ1"aeiouAEIOU"Z

Big-Pyth Version

def
  tail
  zero-var

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    zero-var
                    1
                str-start aeiouAEIOU str-end
      zero-var

Try it online!

Translation Link

Pyth, 32 bytes

Not a very optimal solution feel free to help me out here

Code

DtZR.ehSmadksmxdcZ1"aeiouAEIOU"Z

Big-Pyth Version

def
  tail
  zero-var

  return
    enumerate-map
      head
        sorted
          map
            absolute-difference
              map-var
              enumerate-map-ind
            flatten-once
              map
                ind-all-occurrences
                  map-var
                  chop-into-size-n
                    zero-var
                    1
                str-start aeiouAEIOU str-end
      zero-var

Try it online!

Translation Link

Source Link
scpchicken
  • 783
  • 5
  • 12
Loading