Goldman Sachs Interview Report
- 0of 0 votes
Answerswrite a method to calculate the acute angle between a clock: clock(int hours, int minutes)in java.My suggestion is to attemp these programmes 1st.public int clock(int hours, int minutes){// 360/12 = 30 360/60 = 6
- Ashis October 28, 2009
int angle = ((hours*30 - minutes *6)<0 )? minutes *6 - hours*30 : hours*30 - minutes *6 ;
angle = (angle > 180)? 360-angle: angle;return minutes;}| Report Duplicate | Flag | PURGE
Goldman Sachs Software Engineer / Developer Algorithm - 0of 0 votes
AnswersU have one String s1="WritingCode" and S2="Code Writing". write one code which will check all the contents of s1 is present in the String s2.use index of Operator and set a flag at class lavel, if the the index== -1; set flag, break;
- Ashis October 28, 2009
don't use substring or contains(chSeeq)| Report Duplicate | Flag | PURGE
Software Engineer / Developer Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.