algorithm - Printing data according to weights or ratios from different data source or collection or array -
i have requirement have data stored in arrays(it not language specific). lets assume have 3 arrays name array1 has values 1,2,5,6,7,9,10. array2 hello,how,are,you. , array3 @,#. want logic when print it. should distributed upon weight. array1 has maximum elements , array3 has minimum.so output should like:
1 hello 2 how 7 @ 5 6 9 # 10
so there should equal distance between elements of array1(1,2,5,6,7,9,10) please me guys,been wasting days on this. in advance
Comments
Post a Comment