Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

5 added 7 characters in body

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

Q could be replaced with d if you initialized d to contain the value before e.g. =d[4 3 1 0 6 4 4 0 1 7 7 3 4 1 1 2 8)

Python-esque pseudo-code:

Q=eval(input());sorted;print(sorted(Q,key=Q.count)[-1])


Full Explanation:

            : Q=eval(input()) (implicit)
e           : ... [-1]
o   Q      : orderby(lambda N: ...,Q)
/QN       : count(Q,N)


Pyth's orderby runs exactly like Python's sorted with orderby's first argument being the key argument.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

Q could be replaced with d if you initialized d to contain the value before e.g. =d[4 3 1 0 6 4 4 0 1 7 7 3 4 1 1 2 8)

Python-esque pseudo-code:

Q=eval(input());sorted(Q,key=Q.count)[-1]


Full Explanation:

            : Q=eval(input()) (implicit)
e           : ... [-1]
o   Q      : orderby(lambda N: ...,Q)
/QN       : count(Q,N)


Pyth's orderby runs exactly like Python's sorted with orderby's first argument being the key argument.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

Q could be replaced with d if you initialized d to contain the value before e.g. =d[4 3 1 0 6 4 4 0 1 7 7 3 4 1 1 2 8)

Python-esque pseudo-code:

Q=eval(input());print(sorted(Q,key=Q.count)[-1])


Full Explanation:

            : Q=eval(input()) (implicit)
e           : ... [-1]
o   Q      : orderby(lambda N: ...,Q)
/QN       : count(Q,N)


Pyth's orderby runs exactly like Python's sorted with orderby's first argument being the key argument.

4 added 494 characters in body

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

Q could be replaced with d if you initialized d to contain the value before e.g. =d[4 3 1 0 6 4 4 0 1 7 7 3 4 1 1 2 8)

Python-esque pseudo-code:

Q=eval(input());sorted(Q,key=Q.count)[-1]


Full Explanation:

            : Q=eval(input()) (implicit)
e           : ... [-1]
o   Q      : orderby(lambda N: ...,Q)
/QN       : count(Q,N)


Pyth's orderby runs exactly like Python's sorted with orderby's first argument being the key argument.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

Q could be replaced with d if you initialized d to contain the value before e.g. =d[4 3 1 0 6 4 4 0 1 7 7 3 4 1 1 2 8)

Python-esque pseudo-code:

Q=eval(input());sorted(Q,key=Q.count)[-1]


Full Explanation:

            : Q=eval(input()) (implicit)
e           : ... [-1]
o   Q      : orderby(lambda N: ...,Q)
/QN       : count(Q,N)


Pyth's orderby runs exactly like Python's sorted with orderby's first argument being the key argument.

3 added 31 characters in body

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties aren'tare resolved in any meaningful wayby last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties aren't resolved in any meaningful way.

Sorts the list by count the value in the list, then prints the last number of the list.

## Pyth - 6

eo/QNQ


Try it online.

Expects input on stdin like [4,3,1,0,6,1,6,4,4,0,3,1,7,7,3,4,1,1,2,8]. Ties are resolved by last occurrence because Python performs stable sorts.

Sorts the list by count the value in the list, then prints the last number of the list.

2 added 11 characters in body
1