premkumar1989.ss
BAN USER- 0of 0 votes
Answerspeople are asked to dress in blue and green for a party. People who come in blue colour are assigned "1" and people who come in green are assigned "2". So the sequence would be something like 121111222212121212....
- premkumar1989.ss in India for Dev
Now we need to split the group in x subgroups where the size of each subgroup can take values from given set [3,4,5,6....] and all the members of the group should be in some subgroup. however the ordering of the group should be intact(cannot switch positions). write algorithm/code which splits the group into the required x subgroups where the sum of squares of the differences of 1's and 2's in each sub group is a minimum.| Report Duplicate | Flag | PURGE
Algorithm - 3of 3 votes
AnswersGiven list of pounds, the pounds that can be measured using a balance should be displayed.
- premkumar1989.ss in India for Dev
For Ex: 100,250
The output will be 100,250,150
The number of pounds which will be given in input might vary. Can someone please help with an algorithm for this?| Report Duplicate | Flag | PURGE
Kpro Solutions Analyst Algorithm
integers
- premkumar1989.ss March 24, 2013