Cisco Systems Interview Question for SDE-2s
- -2of 2 votes
Cadbury bar size of 5*3 can be distributed to 4 children.- Deep November 04, 2015 in India
5*4 can be distributed to 5 children.
6*3 can be distributed to 2 children.
6*4 can be distributed to 3 children. so the whole carton can be distributed among 14 children
Program output shall be 14.
Input/Output Specification: M,N,P,Q are the integer type (M,N values are the ranges for the length of cadburybar P,Q values are the ranges for breadth of Cadbury bar)
Output: Number of children who will receive cadbury bar from the carton.
| Report Duplicate | Flag | PURGE
Cisco Systems SDE-2 Algorithm
Interview Type: Written Test
Open Chat in New Window