Skip to content

pkedzier/ivrevint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Int

Please create a method with given signature: public int reverse(int x)

result: Please return int with reversed digits

requirements:

  • You can use only int numeric type (boolean and other types are allowed)
  • When result > MAX_INTEGER or result < MIN_INTEGER please return 0

Examples:

x result
12345 54321
-123 -321
0 0

Allowed types (examples):

you can use you can't use
String Long
Boolean BigDecimal
Integer ...
... ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages