Skip to main content
deleted 494 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

Japt -h, 12 11 1010 4 bytes

Takes inputI/O as ana digit array of digits.

k@¬èXü ÉÃrwl1

Test itTry it


Explanation

     :Implicit input of array U.
k    :Filter the array to the elements that return false when...
@    :Passed through a function that...
¬    :Joins U to a string and...
èX   :Counts the number of times the current element (X) appears in the string...
É    :Minus 1.
     :(The count of unique digits will be 1, 1-1=0, 0=false)
à   :End function.
r    :Reduce by...
w    :Getting the greater of the current element and the current value.
     :Implicit output of resulting single digit integer.

Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


Explanation

     :Implicit input of array U.
k    :Filter the array to the elements that return false when...
@    :Passed through a function that...
¬    :Joins U to a string and...
èX   :Counts the number of times the current element (X) appears in the string...
É    :Minus 1.
     :(The count of unique digits will be 1, 1-1=0, 0=false)
à   :End function.
r    :Reduce by...
w    :Getting the greater of the current element and the current value.
     :Implicit output of resulting single digit integer.

Japt -h, 12 11 10 4 bytes

I/O as a digit array.

ü l1

Try it

Commonmark migration
Source Link

#Japt, 12 11 10 bytes

Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


##Explanation :Implicit input of array U. k :Filter the array to the elements that return false when... @ :Passed through a function that... ¬ :Joins U to a string and... èX :Counts the number of times the current element (X) appears in the string... É :Minus 1. :(The count of unique digits will be 1, 1-1=0, 0=false) Ã :End function. r :Reduce by... w :Getting the greater of the current element and the current value. :Implicit output of resulting single digit integer.

Explanation

     :Implicit input of array U.
k    :Filter the array to the elements that return false when...
@    :Passed through a function that...
¬    :Joins U to a string and...
èX   :Counts the number of times the current element (X) appears in the string...
É    :Minus 1.
     :(The count of unique digits will be 1, 1-1=0, 0=false)
à   :End function.
r    :Reduce by...
w    :Getting the greater of the current element and the current value.
     :Implicit output of resulting single digit integer.

#Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


##Explanation :Implicit input of array U. k :Filter the array to the elements that return false when... @ :Passed through a function that... ¬ :Joins U to a string and... èX :Counts the number of times the current element (X) appears in the string... É :Minus 1. :(The count of unique digits will be 1, 1-1=0, 0=false) Ã :End function. r :Reduce by... w :Getting the greater of the current element and the current value. :Implicit output of resulting single digit integer.

Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


Explanation

     :Implicit input of array U.
k    :Filter the array to the elements that return false when...
@    :Passed through a function that...
¬    :Joins U to a string and...
èX   :Counts the number of times the current element (X) appears in the string...
É    :Minus 1.
     :(The count of unique digits will be 1, 1-1=0, 0=false)
à   :End function.
r    :Reduce by...
w    :Getting the greater of the current element and the current value.
     :Implicit output of resulting single digit integer.
deleted 107 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


##Explanation :Implicit input of stringarray U. ¬k :Split to anFilter the array. n< :Sort descending. æ :Return to the first elementelements that is truereturn false when... @ :Passed through a function that checks if... ¬ :Joins U to a string and... èX :The count of occurrencesCounts the number of times the current element (X) appears in Uthe string... ¥1 É :EqualsMinus 1. :(The count of unique digits will be 1, 1-1=0, 0=false) Ã :End function. r :Reduce by... w :Getting the greater of the current element and the current value. :Implicit output of resulting single digit stringinteger.

#Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


##Explanation :Implicit input of string U. ¬ :Split to an array. n< :Sort descending. æ :Return the first element that is true when... @ :Passed through a function that checks if... èX :The count of occurrences of the element (X) in U... ¥1 :Equals 1. :Implicit output of resulting single digit string.

#Japt, 12 11 10 bytes

Takes input as an array of digits.

k@¬èX ÉÃrw

Test it


##Explanation :Implicit input of array U. k :Filter the array to the elements that return false when... @ :Passed through a function that... ¬ :Joins U to a string and... èX :Counts the number of times the current element (X) appears in the string... É :Minus 1. :(The count of unique digits will be 1, 1-1=0, 0=false) Ã :End function. r :Reduce by... w :Getting the greater of the current element and the current value. :Implicit output of resulting single digit integer.

deleted 107 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
added 166 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
added 376 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
added 9 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94
Loading