Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spaghetti
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
271.
▲
by
spaghetti
18y ago
Solving algorithm puzzles helps a lot for general creativity. I think the most important thing to understand and embrace when being creative is: a lot of people will not understand/like/approve of your creative efforts. Do NOT let this g
272.
▲
by
spaghetti
18y ago
Your question makes me wonder: does facebook want more traffic? Lack of traffic isn't the reason they're having trouble. The reason they're having trouble is product/user mismatch. A really good idea will make them lots of money with th
273.
▲
by
spaghetti
18y ago
Advertisers on fb see poor results. People on a social network are there to socialize... not buy things. Imagine a vendor trying to sell things in a social atmosphere at, say, a bar. For arguments sake assume the vendor is selling someth
274.
▲
by
spaghetti
18y ago
I wouldn't invest simply because FB doesn't provide any service that's of value to me. Google does, Microsoft does, Craigslist does, Amazon does, my local dry cleaner does. FB does not.
275.
▲
by
spaghetti
18y ago
"You can reverse N contiguous items in V at a time." When you reverse elements 1-5 you're assuming N == 5. When you reverse elements 1-4 you're assuming N == 4. I think this violates the problem statement that N is fixed.
276.
▲
by
spaghetti
18y ago
College is not obsolete. High school is definitely obsolete. My guess is at least 8/10 people posting here had miserable high school experiences. We spend 4 valuable years marching to and from classrooms, sitting all day in a daze just t
277.
▲
by
spaghetti
18y ago
Right about the larger vectors. I don't know A*. What's an example heuristic for this puzzle?
278.
▲
by
spaghetti
18y ago
Could do a Breadth First Search. Add a memo table to make it faster. The memo table key would be the vector changed into an int i.e. (2,1,4,5,3) -> 21453. The memo table value would just be a bool... true if we've already seen the cu
279.
▲
Ask HN: Possible negative effects of introducing coding tests to the interview process?
5 points
by
spaghetti
18y ago
|
0 comments
280.
▲
by
spaghetti
18y ago
good point. add if(v.size() == 0) return false;
281.
▲
by
spaghetti
18y ago
No they don't. Google and other news aggregation sites just make it easier to filter through the crappy news. Combine that w/ higher quality, more focused reading material via the net and the large news orgs start to suffer.
282.
▲
by
spaghetti
18y ago
int N = 0; void printV(vector<int> v){ for(int i = 0; i < v.size(); i++) cout << v[i] << " "; cout << endl; } void f(int index, vector<int> v){ if(index ==
283.
▲
by
spaghetti
18y ago
ok corrected. thanks.
284.
▲
by
spaghetti
18y ago
For those that like these puzzles there's tons at TopCoder.com, spoj.pl, usaco, etc.
285.
▲
by
spaghetti
18y ago
I think the world just wants fun stuff. Serious stuff sucks... it's hard to make and not fun to use.
286.
▲
by
spaghetti
18y ago
bool f(vector<int> v){ /* use 0-based indice*/ int lowerBound = 0; int upperBound = v.size() - 1; while(1){ if(lowerBound == upperBound) return v[lowerBound] == lowerBound; int i = lowerBound + (upperBound - lowerBound)
287.
▲
by
spaghetti
18y ago
Which niche? The demand for quality devs will always be high imo just due to the wide spread use of computers in businesses everywhere.
288.
▲
by
spaghetti
18y ago
Yes, in the sciences. In my experience I've noticed PhD comes along with a certain lack of emotional maturity... which plays out in various negative ways (overly emotional technical debates, focused more on blaming people for problems rath
289.
▲
by
spaghetti
18y ago
In my experience there's an inverse correlation for high level education (MS, PhD) and being smart, productive, etc. My approach was finish undergrad and then take my "education" into my own hands. It's worked well.
290.
▲
by
spaghetti
18y ago
Three things come to mind (explanations follow): 1) Does the programmer _complete_ interesting programming projects in their spare time? 2) Can the programmer explain something mildly technical such that you, the business guy, can underst
291.
▲
by
spaghetti
18y ago
Yes I love programming. My favorite "projects" are algorithm competitions and apps for mobile phones. Programming is a beautiful art form... imo doing enterprise IT work hides most of the artistic side just like high school math and colle
292.
▲
by
spaghetti
18y ago
A long approval process doesn't imply rejection. I submitted my first app mid September 08. It was finally let into the app store a few days before Christmas. I just got a nice check from APPL yesterday so don't lose hope!
293.
▲
by
spaghetti
18y ago
Looks great. Seems snappy and responsive. Good sounds. Personally I like to see elements of humor in iPhone apps. So perhaps you could add some sounds for the pull trigger "nothing" and pull trigger "shoot" cases. For example when some
294.
▲
by
spaghetti
18y ago
Nudist On The Lateshift is a great book by Po Bronson about the making and selling of Hotmail. It was pretty inspirational for me.
295.
▲
by
spaghetti
18y ago
I've been making iPhone apps for about 7 months now. My third app was approved less than 2 days ago. Here is a brief summary of my experience: First app - a 0.99 cents novelty app - 1 month dev time - 3 months wait for approval - sold abo