News:

So the widespread use of emojis these days kinda makes forum smileys pointless, yeah?

Main Menu

Facebook Puzzles

Started by warz, February 15, 2009, 03:30:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

warz

Has anyone else attempted any of these Facebook programming puzzles? Location: http://www.facebook.com/jobs_puzzles/index.php

I've submitted several of them but finally got stuck on one. They're pretty fun, though.

I'm stuck on this one, btw: http://www.facebook.com/jobs_puzzles/index.php?puzzle_id=2
http://www.chyea.org/ - web based markup debugger

sdfg

I found the one you're stuck on to be pretty straightforward. Basically, find the dollars per pound value for each, compare, then use whatever is least costly.
dey see me trollin'
dey hatin'

Sidoh

Quote from: sdfg on February 15, 2009, 08:27:05 AM
I found the one you're stuck on to be pretty straightforward. Basically, find the dollars per pound value for each, compare, then use whatever is least costly.

This is rather vague.  The part you mentioned is obvious.

This is basically a variant on the subset sum problem.  I would imagine that dynamic programming would probably be the way to go.  (Yes, I realize this is vague too. :))

Newby

- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

warz

Quote from: Sidoh on February 15, 2009, 01:16:58 PM
Quote from: sdfg on February 15, 2009, 08:27:05 AM
I found the one you're stuck on to be pretty straightforward. Basically, find the dollars per pound value for each, compare, then use whatever is least costly.

This is rather vague.  The part you mentioned is obvious.

This is basically a variant on the subset sum problem.  I would imagine that dynamic programming would probably be the way to go.  (Yes, I realize this is vague too. :))

Yea. That's what I basically concluded last night and have been doing some reading on it. I'm going to make another attempt at it soon. Hopefully I don't spend hours on it like I did on some of the others.

Sdfg, your response was pretty obvious. That's pretty much what the exact problem says to do. The word problem isn't where I was stuck, heh.
http://www.chyea.org/ - web based markup debugger

Sidoh

Hehe, yeah.  There's a "pseudo-polynomial" dynamic programming solution to the subset sum decision problem, but it's worth noting that it's still an NP-complete problem.