Skip to main content

New answers tagged

3 votes
Accepted

Tree algorithm - arrange integer array numbers to form largest number

I'd like to say good work on the soluton! It's a nice attempt you have converting it to a tree as well, and I think a tree can be used in some way. However, I think using specifically an N-ary tree, ...
Minko_Minkov's user avatar
2 votes

Algorithms for stacking gage blocks

If you are looking for the sum of the blocks to be below the target size, you are talking about the 0/1 Knapsack problem. In your case, it seems that all profits are unit values. Alternatively, if you ...
codeR's user avatar
  • 706
0 votes

Can every greedy problem be solved using dynamic programming?

Both greedy and dynamic programming are algorithm design techniques, typically used to solve optimization problems. The same problem can be solved in multiple ways using various techniques, including ...
codeR's user avatar
  • 706

Top 50 recent answers are included