Skip to main content
Commonmark migration
Source Link

##Java 8, 112 92 bytes

Java 8, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda

##Java 8, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda

Java 8, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda
added 2 characters in body
Source Link
NonlinearFruit
  • 5.8k
  • 1
  • 29
  • 43

##Java 8, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda

##Java, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda

##Java 8, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda
Used a lambda
Source Link
NonlinearFruit
  • 5.8k
  • 1
  • 29
  • 43

##Java, 112112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

import java.util.*;void s(List t)->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda

##Java, 112 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

import java.util.*;void s(List t){for(;0<t.size();System.out.println(t.remove(t.indexOf(Collections.min(t)))));}

##Java, 112 92 bytes

Here is another selection sort. The input is a List t of integers and the sorted output is printed to standard out.

t->{for(;0<t.size();System.out.println(t.remove(t.indexOf(java.util.Collections.min(t)))));}

Update

  • -20 [16-08-21] Used a lambda
improved formatting
Source Link
user45941
user45941
Loading
made submission into valid function
Source Link
NonlinearFruit
  • 5.8k
  • 1
  • 29
  • 43
Loading
Source Link
NonlinearFruit
  • 5.8k
  • 1
  • 29
  • 43
Loading