backtracking algorithm for this we have A={a1,a2,…an} split this group into two {condition is sum of elements in the first and second group is 5}

后端 未结 0 1325
礼貌的吻别
礼貌的吻别 2020-12-31 01:18

ex: A={1,3,2,4,9,5,6,11} first solution A1={1,2,4,5,6} A2={3,9,11} second solution A1={1,2,4,11} A2={3,9,5,6}

enter image description here

相关标签:
回答
  • 消灭零回复
提交回复
热议问题