david
BAN USER- 0of 0 votes
Answerstable RSVP
- david in United States
Name, Decision, Date
Jon, Y, 1 jan 2016
Jon, N, 2 Jan 2016
Linda, Y, 1 Jan 2016
Mark, Y, 5 Jan 2016
Rob, N, 5 Jan 2016
-- SQL query to find out how many of your friends are coming to party?, make sure that, they haven't said N after saying Y like Jon, check date.
So the answer should be 2| Report Duplicate | Flag | PURGE
ASU SQL - 1of 1 vote
AnswersWrite a method in Java to:
- david in United States
Find all set of permutations from N number of ArrayLists. Each ArrayList has a different length.
Each permutation is formed by picking one item from each input ArrayList.
You have to exhaust ALL permutations.
Each permutation is a Set, so the order of the items does not matter. For example [a1,b1,c1] is the same permutation as [c1,b1,a1].
Example:
Input: N number of array lists with different length
[a1,a2,a3....]
[b1,b2....]
[c1, c2... ]
...
Output: ALL permutations
[a1, b1, c1...],
[a1,b1,c2..]
....
Note:
The above example is just a sample of potential input to illustrate the output. You have to write code to solve for generalized input.| Report Duplicate | Flag | PURGE
Algorithm