Interview Question
- 0of 0 votes
AnswersThe problem is quite interesting.
- raghu.aok November 09, 2015
We have to find the integer solution of the below equation .
n<=sum of(ki*xi)<n+1
such that ki are all constants, xi are integers.
For example : 4<=1.4x1+3.4*x2+1.1*x3<5
solutions (x1,x2,x3) =(1,1,0),(3,0,0),(0,1,1),(0,0,4) ...| Report Duplicate | Flag | PURGE
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.