|
That's completely irrelevant.
761 => 1U, 2R, 3R, 4R, 5R, 6U, 7U.
752 => 1R, 2U, 3R, 4R, 5U, 6R, 7U.
743 => 1R, 2R, 3U, 4U, 5R, 6R, 7U.
7412 => 1U, 2U, 3R, 4U, 5R, 6U, 7U.
....
Follow my previous post. Simply put the 1 first instead of the order I have. I have them in a more mathematical order that I used to split the numbers into the two groups. Order does not matter.
|
|
|
|
|
My bad. I missed a pair.
|
|
|
|
|
Ha ha, I did too. I was with you all the way. I was all, "Yeah, you tell 'im, Bassam!"
Until you said that and I rechecked my answers.
|
|
|
|
|
To err is human. To umm is herman.
|
|
|
|
|
|
That's assuming you make a wrong turn at Albuquerque.
|
|
|
|
|
Oh never mind, reread the question..
edit: 8 then. And since you seem to want to have them listed:
R1 R2 U3 R4 U5 U6 R7
R1 R2 U3 U4 R5 R6 U7
R1 U2 R3 R4 U5 R6 U7
R1 U2 U3 U4 U5 R6 R7
U1 R2 R3 R4 R5 U6 U7
U1 R2 U3 U4 R5 U6 R7
U1 U2 R3 R4 U5 U6 R7
U1 U2 R3 U4 R5 R6 U7
the numbers are superfluous of course, but they prevent taking a wrong turn at Albuquerque..
modified 17-Sep-15 13:38pm.
|
|
|
|
|
I guess I missed something. I thought 'n' was a specific number to be repeated at each step
so the answer would be only the factors of 14. Therefore only these 'n' steps would be allowed.
1,2,7, and 14 - 2R, 2U, etc... or 7R,7U ...
So the number of paths would be 4
|
|
|
|
|
Shouldn't it be 16? If there are 8 distinct groups of 3-4 numbers that sum to 14, one path will start with the first move going up and the next will start with the first move going right.
Incidentally, here is my code:
function combine(a, min) {
var fn = function(n, src, got, all) {
if (n == 0) {
if (got.length > 0) {
all[all.length] = got;
}
return;
}
for (var j = 0; j < src.length; j++) {
fn(n - 1, src.slice(j + 1), got.concat([src[j]]), all);
}
return;
}
var all = [];
for (var i = min; i < a.length; i++) {
fn(i, a, [], all);
}
all.push(a);
return all;
}
function arr_sum(arr) {
var n = 0;
for (var i = 0; i < arr.length; i++) {
n += arr[i];
}
return n;
}
k=[1,2,3,4,5,6,7];
combine(k, 1).filter(function(v, i) {
return 14 == arr_sum(v)
})
|
|
|
|
|
No. You always start with 1 step.
|
|
|
|
|
I think there are 16 distinct paths, as below
R1U2R3R4U5R6U7 U1R2U3U4R5U6R7
R1R2U3U4R5R6U7 U1U2R3R4U5U6R7
R1R2U3R4U5U6R7 U1U2R3U4R5R6U7
U1U2R3U4R5R6U7 R1R2U3R4U5U6R7
U1U2R3R4U5U6R7 R1R2U3U4R5R6U7
U1R2U3U4R5U6R7 R1U2R3R4U5R6U7
R1U2U3U4U5R6R7 U1R2R3R4R5U6U7
|
|
|
|
|
Some dupes. First and third to last, for example.
|
|
|
|
|
Regarding all those princes with an awful amount of money and no ideas on how to spend, and all those Russian ladies that had chatted with me two days ago and would like to meet me again ....
why don't they put in contact with each other instead of annoy everyone using email? I'm pretty sure it would a win win meet up
|
|
|
|
|
Exception ...
if they are one and the same person.
|
|
|
|
|
Which would give you the opportunity to tell them to go 'meet' themselves.
|
|
|
|
|
But that would mean they multiply
|
|
|
|
|
In which case they would face no trouble with "go duck yourself".
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Solar system picture of the day - Pluto & Charon[^]
We genuinely live in extraordinary times.
(Possible Leslie)
|
|
|
|
|
Duncan Edwards Jones wrote: (Possible Leslie)
That might need to be "Commander Adams" given the context!
Wonderful images.
|
|
|
|
|
I saw a link earlier that pointer to some photos but they we're this good. Awesome
New version: WinHeist Version When you have eliminated the JavaScript, whatever remains must be an empty page. Unknown
|
|
|
|
|
I was walking past a gas station earlier when a guy shouts to me "Hey, I'm stuck without any gas or money. Came up from Orange County earlier. Can you help?"
I just ignored him and kept walking. This has to be one of the most overused scams - I can't believe people still fall for it.
Since I walk the same route each day I've seen another guy try the same trick. When he called to me the second time I looked at him and saw a flicker of recognition. I just laughed and walked on.
No real point here; just bemused that this one still goes on. I mean, what can they ask for? $5? $10? They'd have to get an awful lot of hits to make it worth while and I'm sure the gas station doesn't want them there hassling people all day.
Perhaps I'm missing something - anyone got another take on this?
|
|
|
|
|
Stop and think.
What's minimum wage in the US? $7.25/hr
So one "hit" an hour and he's ahead of Burger Hell - and it's cash in hand, so taxes don't come into it.
One "hit" every ten minutes and he's doing well!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
A buddy of mine and I were driving down in San Diego one time.
We stopped at an light and there was a guy on the corner with a "Homeless please help" sign. My friend rolled the window down and handed him $5.
He then asked the guy how much he makes per day panhandling.
The guy said $200-$300 A DAY!!..
I thought "$6000 a month tax free" - not a bad gig.
I've never handed out money since.
If it's not broken, fix it until it is
|
|
|
|
|
I was with a coworker a few years ago and he was about to hand a few bucks to a "homeless" kid, when his cell phone rang (the kid's).
That was back when you pretty much could only get a cell phone if you could provide a fixed address.
|
|
|
|