I have stumbled upon this problem before, it is a balancing problem. The program takes in an array of integers of size n. The program then determines if thi开发者_运维百科s array of integers can be sp
i\'m new in programming and i have a difficult time with the following task. I have a string let\'s say string final_word=\"Bacliff New Texas United States\"; and i want to do the following:
Given n bins of infinite capacity, I want to pack m items into them (each with a specific weight), whilst minimizing the weight of the heaviest bin.
I\'m trying to learn Clojure but my synapses seem to be hard-wired to Smalltalk. What\'s the equivalent of this function?
What is an efficient way of finding the number of ways 开发者_开发问答k gifts can be chosen from N gifts where N can be very large (N ~ 10^18). That is we have to calculate N(C)K or N chose K. K can a
I\'m making a simple program in Java. Given a set of letters it\'ll list all the words (with more than 2 letters) that match the combinations of the letters.
in .Net is there any way to find matching combinations for given value in data table ? data table is like
How would you go about 开发者_开发知识库testing all possible combinations of additions from a given set N of numbers so they add up to a given final number?
I have 2 questions: I would like to generate the permutations of subsets e.g. There are 20 possible amino acids and 5 positions where they can occur. What are the total permutations that can occur (
I\'m working on a research problem out of curiosity, and I don\'t know how to program the logic that I\'ve in mind. Let me explain it to you: