Groupon Interview Question
Software Engineer / Developers Developer Program EngineersCountry: India
Interview Type: Written Test
Test cases:
Negative number
Zero
Positive number
Number greater than int -> Depends whether exception or max number
Null string
Empty string
Decimal
Alpha numeric - starting with alphabet -> Define expected output
Alpha numeric - ending with alphabet -> Define exception or till numeric input
Length of string number is greater than what an int can store
output -> Positive or negative number
Functional test cases:
Where is the function going to be used.
Any memory restrictions>
Any performance restrictions based on the number of times this is called
- Anonymous November 04, 2012