|
Any objection? @Randor?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: Any objection? @Randor? Pete can have it, he's in the CCC timezone.
|
|
|
|
|
You right - giving it to you will be the fair move...
First, you actually meant to solve it - and did...
Second, because of your time zone you have less chance to solve and make these...
So it is yours...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
I hope no bad feelings, but I gave it to @Randor... Wales already strong in CCC...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
None at all - he solved it I didn't
"Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Dumb question, what's with the fireworks?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
That makes sense, thanks.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
It's a good thing it's not Greek new year, 'cos I wouldn't understand that. It's just Greek to me.
/ravi
|
|
|
|
|
My wife is Greek, I don't get that excuse.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
/ravi
|
|
|
|
|
Are you suggesting that you understand your wife??
I think a lot of people would be happy if you would give them a course in how to achieve that!
|
|
|
|
|
Over the years I've picked up enough to know when I'm in the dog house, usually said when she's talking to her mother.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Bob is celebrating his discovery that, in firefox browser, on the CP webpage "Spam and Abuse Watch", setting his "Spacing" to Relaxed then "Layout" to Open then refreshing, gets his list of spammers and abusers in full flare mode ... that way he can contextually right-click using his mouse and select "Take a Screenshot" to capture an arm's-length facsimile of his display window for copying then pasting in his image processing software as a data reference for future dispatch.
|
|
|
|
|
RedDk wrote: he can contextually right-click using his mouse Which is made slightly more difficult by the fact that he's down a couple of fingers due to his less than safe habit of holding onto fireworks as they explode.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
True story:
Dad stored some firecrackers in a moving box in the attic (I know, right? Hot/going off/burning down the house/etc?) and when I was 8 or 9 I found them. And I stole a few packs, as I recall because there were actually quite a few of them, reasoning that they'd never be missed. And, being in cohutes with the local gang of kids my age decided this discovery was not only cool but lucrative so I decided to sell some and, as I recall others actually bought them from me.
One morning, at the busstop, standing among about a dozen kids waiting to be picked up and driven to school, some packs made an appearance ... then a match or two ... and suddenly firecrackers were going off. In the ensueing audible melee the flicking of the lit firecracker culminated in one sizzling and blue-printed (one doesn't forget things like this being the active flicker) landed on this girl's shoulder ... r-i-g-h-t ... u-n-d-e-r ... h-e-r ... E-A-R! For some reason, perhaps deus ex machina perhaps her quick reflexes perhaps someone elses quick reflexes I don't recall exactly, the firecracker ended up on the ground before it detonated.
I came this close to paying dearly for blowing off someone's ear if not at least permanently deafening them. Which, now that I think about it, could never top doing something as heinous as the other thing that almost happened around that same time in my life, growing up ...
|
|
|
|
|
While not a firework story, when I was 8 or 9, my best friend found a .22 blank cartridge. We looked at it closely and in our infinite pyromaniac wisdom thought if we held a match to it, that it would 'fizz', like when you break a firecracker in half and light the exposed gunpowder. Well that didn't exactly happen, it exploded about 18 inches away from our faces. Somehow, the shrapnel did not hit our eyes. We were picking small bits of metal out of our arms for a couple of days. Never had a yearning to play with fireworks after that...
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
jeron1 wrote: shrapnel did not hit our eyes Technically, not schrapnel, but nails (in the leather pocket of a Wristrocket) released and flying downhill across the slope of a hill for about 50 yards through trees and such ... make such a sweet singing noise ... oops. (PHEW! (more than deux))
|
|
|
|
|
Ah, the sheer amount of luck we experience sometimes (mostly seen in hindsight)!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I was one of those kids that took apart everything I could get my hands on, to learn how it works.
My father, being a pragmatic man, realized it was only a matter of time before I started to fiddle around with more dangerous stuff, decided to teach me how to handle explosives and guns in a safe way.
In hindsight that was probably one of the best decisions he made.
|
|
|
|
|
My dad, though a marksman in the Marines, didn't like guns. He just happened to be real good with them. We never had a gun in the house, I didn't know a cartridge from my a$$. I was extremely fortunate not to be seriously injured that day.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I have a coding problem that is hard to solve
Given an array of positive integers arr[900, 800, 700, 600, 500, 90, 80, 70, 60, 50, 9, 8, 7, 6, 5, 4, 3, 2, 1] anda sum 3400, find all unique combinations in the arr[] where the sum is equal to 3400. The same repeated number may be chosen from arr[] at most 5 times or thereafter x times-multiple(number), or excluded if not possible. Elements in a combination (a1, a2, …, ak) must be printed in non-descending order. (ie, a1 <= a2 <= … <= ak).
The combinations themselves must be sorted in ascending order, i.e., the combination with smallest first element should be printed first. If there is no combination possible the print "Empty" (without quotes).
Examples:
Input : arr[] = 2, 4, 5, 6, 8
x = 10
Output : [2, 2, 2, 2,2]
[2, 4,4]
[4, 6]
[5,5]
the challenge in this problem is to list the numbers or exclude them for the large sum when there is small numbers like 2, 4, 5
modified 1-Feb-22 10:19am.
|
|
|
|
|
Hmmm, it seems homework hasn't changed much over the years.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Even if you were to post this in a the correct place, we won't do your homework for you.
What about [ 2 , 2 , 2 , 4 ] and [ 2 , 8 ] ?
Where did [ 4 , 6 ] come from?
|
|
|
|
|