Skip to main content
Commonmark migration
Source Link

##Pyth, 4 bytes

Pyth, 4 bytes

M*GH

Defines a function named g, can call it in this way - gn1 n2, where n1 and n2 are the numbers.

Try it here!

Previous solutions using 5 bytes.

*.).Q and *hQeQ.

##Pyth, 4 bytes

M*GH

Defines a function named g, can call it in this way - gn1 n2, where n1 and n2 are the numbers.

Try it here!

Previous solutions using 5 bytes.

*.).Q and *hQeQ.

Pyth, 4 bytes

M*GH

Defines a function named g, can call it in this way - gn1 n2, where n1 and n2 are the numbers.

Try it here!

Previous solutions using 5 bytes.

*.).Q and *hQeQ.

added 3 characters in body
Source Link

###Pyth - 5, 4 bytes

*.).QM*GH

Try it here

Another solution Defines a function named g, with different input formatcan call it in this way - gn1 n2, where n1 and n2 are the numbers.

*hQeQ

Try it here!

Try it here! Previous solutions using 5 bytes.

*.).Q and *hQeQ.

#Pyth - 5 bytes

*.).Q

Try it here

Another solution, with different input format -

*hQeQ

Try it here!

##Pyth, 4 bytes

M*GH

Defines a function named g, can call it in this way - gn1 n2, where n1 and n2 are the numbers.

Try it here!

Previous solutions using 5 bytes.

*.).Q and *hQeQ.

Source Link

#Pyth - 5 bytes

*.).Q

Try it here

Another solution, with different input format -

*hQeQ

Try it here!