Welcome to City-Data.com Forum!
U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Work and Employment
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
Reply Start New Thread
 
Old 11-26-2014, 06:15 AM
 
266 posts, read 285,613 times
Reputation: 473

Advertisements

Quote:
Originally Posted by deposite View Post
Um...can someone please translate what this guy just said?
"I had to stand in a line when I was younger" and "companies didn't want to hire math majors for programming jobs" and "it took me 30 years to get a job in California despite two bubbles and extreme growth in general in those years".
Reply With Quote Quick reply to this message

 
Old 11-26-2014, 10:28 AM
 
Location: SF Bay Area
13,520 posts, read 22,125,992 times
Reputation: 20235
Quote:
Originally Posted by deposite View Post
Um...can someone please translate what this guy just said?

I'll paraphrase the OP's initial post:

"The job market does not improve for white supremacist, misogynistic, recent grad with a BA in Math and crappy programming skills even if I whine about it incessantly on an Internet forum which I've been kicked out of numerous times."
Reply With Quote Quick reply to this message
 
Old 11-26-2014, 08:13 PM
FBJ
 
Location: Tall Building down by the river
39,605 posts, read 59,006,074 times
Reputation: 9451
Quote:
Originally Posted by charlygal View Post
Which mindset will serve you better? Rants are counterproductive.
It's too easy to get upset when job searching so why even waste the emotion?
Reply With Quote Quick reply to this message
 
Old 11-27-2014, 03:28 PM
 
303 posts, read 396,330 times
Reputation: 548
Quote:
Originally Posted by jaypee View Post
I'll paraphrase the OP's initial post:

"The job market does not improve for white supremacist, misogynistic, recent grad with a BA in Math and crappy programming skills even if I whine about it incessantly on an Internet forum which I've been kicked out of numerous times."
"Crappy programming skills"? Boy, you're going to have egg on your face when he returns with those code samples.
Reply With Quote Quick reply to this message
 
Old 11-27-2014, 06:09 PM
 
1,135 posts, read 1,312,482 times
Reputation: 2190
Maybe you should apply for jobs instead of ranting :/. Pretty sure I've had a worse time of it than you but somehow Still managed to land a job...actually two...have to let one go . Have to be persistent man...I've done my share of ranting but I still kept at it.
Reply With Quote Quick reply to this message
 
Old 11-27-2014, 06:37 PM
 
Location: North Texas
24,561 posts, read 40,277,139 times
Reputation: 28564
Quote:
Originally Posted by MrBR View Post
When I graduated in 1959 with my MBA I was offered a senior management position at GE. I was only 25 at the time with only a summer job. They practically worshipped the ground I walked on.
Well la dee da, good for you.

You know it's not 1959 anymore, right?
Reply With Quote Quick reply to this message
 
Old 11-28-2014, 09:52 AM
 
615 posts, read 725,878 times
Reputation: 915
Quote:
Originally Posted by camanchaca View Post
ok, suppose you have a roadmap in CSV format that lists pairs of neighboring cities and the distance between them:
city_1, city_2, 100
city_1, city_3, 150,
city_2, city_4, 15
city_3, city_4, 50
...
city_i, city_j, 85

you do not have the complete list of city-city distances (that is, the distance between city_1 and city_4 is not given, but you can get from city_1 to city_4 by going through either city_2 (total distance 100+15=15) or city_3 (total distance 150+50=200).

PROBLEM 1:
Given an arbitrary pair of cities, find the distance of the shortest path between them

PROBLEM 2:
With n cities, there are (n choose 2) shortest paths. What city or cities have the most shortest paths going through them?


Use whatever reasonably standard language you like.
First of all, those aren't anything like the type of "technical interview" I've had to do, most of which I've passed. The last interview I was at last week asked me to move the zeros of an integer array to the back of the array (without necessarily preserving the order of the non-zeros).

Second of all, I know how to do PROBLEM 1. You create a matrix M where M(i,j) is the distance between city_i and city_j. If there distance is not listed in the file, then M(i,j)=∞. Then you apply Dijkstra's Algorithm (Dijkstra's algorithm - Wikipedia, the free encyclopedia).

I'm a little unsure about what you mean in PROBLEM 2 by "shortest paths". Shortest paths between any 2 cities without stopping in another city? Or what do you mean?
Reply With Quote Quick reply to this message
 
Old 11-28-2014, 10:35 AM
 
266 posts, read 285,613 times
Reputation: 473
Quote:
Originally Posted by DavidRudisha View Post
First of all, those aren't anything like the type of "technical interview" I've had to do, most of which I've passed. The last interview I was at last week asked me to move the zeros of an integer array to the back of the array (without necessarily preserving the order of the non-zeros).

Second of all, I know how to do PROBLEM 1. You create a matrix M where M(i,j) is the distance between city_i and city_j. If there distance is not listed in the file, then M(i,j)=∞. Then you apply Dijkstra's Algorithm (Dijkstra's algorithm - Wikipedia, the free encyclopedia).

I'm a little unsure about what you mean in PROBLEM 2 by "shortest paths". Shortest paths between any 2 cities without stopping in another city? Or what do you mean?
This is the kind of problem I would ask candidates that I am interviewing, and I would consider it about on-par with the difficulty of the "move zeroes to the back" problem (there's the trivial O(nlogn) solution but I bet you can do it in linear time with a couple of counters)

For your PROBLEM 1 solution, are you explicitly building the distance matrix? That's quadratic in space complexity, can you do better?

For PROBLEM 2, the only way to go between to cities without stopping in another city is necessarily if there is a direct route between them.

Here's a worked example. Suppose we had five west coast cities:
seattle portland 150
portland sacramento 580
sacramento la 380
la sandiego 120

So Sacramento is on several shortest paths here, seattle->sandiego and sandiego->seattle, as well as portland<->sacramento, seattle<->sacramento, seattle<->la, portland<->la, sacramento<->la, sacramento<->sandiego. All in all I think we have:

CITY NUMBER OF SHORTEST PATHS GOING THRU CITY
seattle 8
portland 14
sacramento 16
la 14
sandiego 8

EDIT TO ADD: In an in-person interview setting, I would accept breadth first search instead of Dijkstra.
Reply With Quote Quick reply to this message
 
Old 11-28-2014, 11:14 AM
 
1,774 posts, read 2,310,077 times
Reputation: 2710
This guy seems to have some personal problems, but the general idea that there are not enough good jobs for all the people who need jobs seems to be true. Companies can support a lot more customers with fewer employees, and there is no reason to think that trend will change.
Reply With Quote Quick reply to this message
 
Old 11-28-2014, 11:38 AM
 
266 posts, read 285,613 times
Reputation: 473
Quote:
Originally Posted by rzzzz View Post
This guy seems to have some personal problems, but the general idea that there are not enough good jobs for all the people who need jobs seems to be true. Companies can support a lot more customers with fewer employees, and there is no reason to think that trend will change.

Oh absolutely, automation is killing the demand for labor, and I won't work in places that help to accelerate that process.
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:


Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Work and Employment

All times are GMT -6. The time now is 07:27 AM.

© 2005-2024, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Contact Us - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 - Top