nk
BAN USERx +ve, 0,-ve
n +ve, o,-ve
check when n=0, irrespective of x, the return value==1.
check for n=1, then x should be returned.
n=2 -> x*x is your expected output irrespective of sign of x,
n=3, x=-v3, then x cube with a -ve sign should be returned..
** when n becomes negative, if x is zero, its a divide by zero exception
n is -ve, and x is +ve or -ve, the result is always <1, so if the return value is an int,its going to be rounded to a 0 or 1..
** a test case for the overflow.. if x and n are large enough intgers, the overflow will cause the sign bit to on.
RepNitanaJulliana, Analyst at A9
Hello, I am Nitana and I am working as a project manager in the Softage company. I am very honest ...
RepSandraGabriel, Analyst at ABC TECH SUPPORT
We Data Entry Operators have a variety of duties, including processing documents, solving inconsistencies, securing information, updating databases and using ...
RepJishaRuiz, Accountant at ASAPInfosystemsPvtLtd
I am a data -driven analytics manager with 3 years of experience identifying actionable profit-based marketing and product opportunities through ...
RepNancyNieves, Accountant at ABC TECH SUPPORT
Hey I am a HR Trainer. I have been working in this field for almost 3 years. I am very ...
RepJamesDeal, Animator at Absolute Softech Ltd
My name is JamesDeal. I am working at Integra Investment Service as a Library aide . It's been almost 5 ...
Replevijhoyt, Android Engineer at A9
Hello, I am working as a machine operator and we are working in manufacturing units and operate equipment to create ...
Repcassicjohnson, Android Engineer at Accenture
Hi, I work as an Painter, making art Paintings for the world’s top art galleries. When I have an ...
RepNiaNorna, Analyst at ADP
I am an established career journalist with 15 years of writing and copy editing experience in the newsroom. Seeking to ...
RepJudeSandin, Associate at Absolute Softech Ltd
My name is JudeSandin . I am working at Bold Ideas as a Web designer. With 5 years experience . I am ...
RepYaniraBryant, Accountant at CGI-AMS
I am Yanira , a writer by fate. Went from writing for media outlets to exploring the world of content creation ...
RepWilliamWiltz, Call Girls in Chawri Bazar at Amdocs
Hi , I am William, a Medical technologist with extensive knowledge around sample examination and analyzing results. Selected from a pool ...
An interface (in Java) is used to for inheritance i.e to create a super class sub class relationship. Any class that implements this interface will inherit all the methods of the interface .
- nk July 25, 2012