Skip to main content
added 2 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (OpenJDK 8), 80 73 63 6161 59 bytes

n->m->{for(int i=m<n?1/0:n;ii=n;i-->0;>0/(m/n);)System.out.println(m++/n);}

Try it online!Try it online!

Note, for currying purpose, m and n are reversed.

Java (OpenJDK 8), 80 73 63 61 bytes

n->m->{for(int i=m<n?1/0:n;i-->0;)System.out.println(m++/n);}

Try it online!

Note, for currying purpose, m and n are reversed.

Java (OpenJDK 8), 80 73 63 61 59 bytes

n->m->{for(int i=n;i-->0/(m/n);)System.out.println(m++/n);}

Try it online!

Note, for currying purpose, m and n are reversed.

added 17 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (OpenJDK 8), 80 7373 63 61 bytes

n->m->{for(int a[]=new int[n],_=1/(mi=m<n?1/n),i=n;for(;i0:n;i-->0;)a[i]=m++System.out.println(m++/n;return a;n);}

Try it online!Try it online!

Note, for currying purpose, m and n are reversed.

Java (OpenJDK 8), 80 73 bytes

n->m->{int a[]=new int[n],_=1/(m/n),i=n;for(;i-->0;)a[i]=m++/n;return a;}

Try it online!

Note, for currying purpose, m and n are reversed.

Java (OpenJDK 8), 80 73 63 61 bytes

n->m->{for(int i=m<n?1/0:n;i-->0;)System.out.println(m++/n);}

Try it online!

Note, for currying purpose, m and n are reversed.

added 17 characters in body
Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56

Java (OpenJDK 8), 8080 73 bytes

mn->n>m->{int a[]=new int[n],x=m_=1/(m/n),y=1/x;fori=n;for(y=m%n;n;i-->0;)a[n]=n<y?x+1:x;returna[i]=m++/n;return a;}

Try it online!Try it online!

(Curried answer Note, non-curried TIOfor currying purpose, m and n are reversed.)

Java (OpenJDK 8), 80 bytes

m->n->{int a[]=new int[n],x=m/n,y=1/x;for(y=m%n;n-->0;)a[n]=n<y?x+1:x;return a;}

Try it online!

(Curried answer, non-curried TIO.)

Java (OpenJDK 8), 80 73 bytes

n->m->{int a[]=new int[n],_=1/(m/n),i=n;for(;i-->0;)a[i]=m++/n;return a;}

Try it online!

Note, for currying purpose, m and n are reversed.

Source Link
Olivier Grégoire
  • 14.4k
  • 3
  • 32
  • 56
Loading