TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Australian software engineer got asked algorithm question when entering US

155 pointsby github-catover 8 years ago

22 comments

ericdykstraover 8 years ago
People are quick to blame this on Trump, but reading through the comments on a previous article for this incident (<a href="http:&#x2F;&#x2F;www.news.com.au&#x2F;travel&#x2F;travel-advice&#x2F;travellers-stories&#x2F;aussies-weird-immigration-interview-in-the-us&#x2F;news-story&#x2F;8222c65d2f12e6691ef27c9b1753e821" rel="nofollow">http:&#x2F;&#x2F;www.news.com.au&#x2F;travel&#x2F;travel-advice&#x2F;travellers-stori...</a>), it looks like it’s par for the course to test someone’s knowledge on their claimed profession. Here’s a comment from one of the users:<p>&gt; Had the same experience 12 years ago: admitted I am developing linux device drivers, and had to explain differences between kernel 2.4 and 2.6 APIs. The guy actually understood it.<p>Testing occupational expertise is not a bad way to find people who are lying. To be able to explain the difference between kernel 2.4 and 2.6 APIs or how to balance a binary search tree are questions one could not possibly answer without actually being in that profession.<p>Let’s say you’re a hitman traveling to Malaysia to take out the estranged brother of a dictator. Before you go, you’re given a fake passport and character sheet telling you your profession, your family situation, etc. It’s pretty easy to answer questions like “how long have you been working as a photographer?” or “how did you meet your wife?” but a lot more difficult to prepare for questions like “What is the best lense for close ups?”
评论 #13795288 未加载
评论 #13795308 未加载
评论 #13795254 未加载
评论 #13795235 未加载
评论 #13795312 未加载
评论 #13795237 未加载
评论 #13795263 未加载
评论 #13795292 未加载
评论 #13795673 未加载
评论 #13799062 未加载
评论 #13795275 未加载
评论 #13795421 未加载
评论 #13795252 未加载
评论 #13795359 未加载
评论 #13795294 未加载
curryhowardisoover 8 years ago
Hey y&#x27;all, I&#x27;m the person they mentioned in the article.<p>Because this is a fairly technical forum (and some people were asking about language specifics or runtime characteristics) I&#x27;ll let you in on the question even though I left it out of the journalist interviews - hopefully this information will help you make sense of the article&#x2F;interaction for yourself:<p>Write a Python program to take two numbers as input and if the sun is bigger than 100, output &quot;this is a large number&quot; but if it is less than 100 output the sum of the numbers.<p>Lol!
评论 #13795463 未加载
评论 #13795702 未加载
评论 #13797249 未加载
评论 #13801366 未加载
评论 #13801651 未加载
lb1lfover 8 years ago
One cannot but wonder what happens if you answer the question in a different manner than that suggested by Wikipedia or whichever resource the CBP draws their questions from.<p>I think the basic idea - questioning people about things they ought to know, given who they claim to be - is a good one.<p>However, it only makes sense if the one doing the questioning is able to judge the quality of the answer - or, for that matter, determine whether your inability to answer satisfactorily is because you bluffed - or if you&#x27;re just a bit outside your professional comfort zone.<p>(I would probably have to answer &#x27;software engineer&#x27;, as that is what my business card says - however, I am much more of a hardware&#x2F;systems guy in practice, only our HR department is completely unable to change my title to something a bit more descriptive. If speaking to another engineer, I wouldn&#x27;t have any problems convincing him of my bona fides - however, if a CBP officer just looks up question #13 in the &#x27;SW engineer&#x27; quiz - I may be in trouble.
评论 #13795392 未加载
评论 #13795325 未加载
评论 #13795299 未加载
评论 #13795511 未加载
评论 #13795233 未加载
hiharryhereover 8 years ago
I think lots of people on this thread are missing the point. This won&#x27;t necessarily detect a determined spy who&#x27;s done their homework. It&#x27;s not meant to. It&#x27;s a quick and effective sanity check to make sure that a person hasn&#x27;t fudged their visa credentials and they&#x27;re well in their rights to ask and exercise their discretion. They&#x27;ve been doing it for years.<p>I doubt a perfect answer to their trivia question is required. If it&#x27;s in your field you&#x27;ll be able to say something halfway intelligent in response, if you&#x27;ve lied on your visa it will become obvious pretty quickly.<p>Outrage about confiscating phones and demanding passwords is justified. This, on the other hand, seems pretty reasonable.
d--bover 8 years ago
It&#x27;s actually fairly typical. When you enter on a H1B visa they ask you questions to see if your occupation (the one you got the visa for) is not made up.<p>I work in Finance, and when I was on a H1B visa (back in 2010), the immigration officer asked me some bond-related questions, just to see if I had any clue.<p>They also asked my wife what I was working on.<p>It&#x27;s pretty annoying to feel that you&#x27;re not being trusted, but yes, they don&#x27;t trust you.<p>Also the fact that he&#x27;s Australian is a reassuring proof they don&#x27;t base these question on color of skin...
评论 #13795218 未加载
评论 #13795262 未加载
评论 #13795229 未加载
评论 #13796039 未加载
评论 #13795232 未加载
评论 #13795246 未加载
评论 #13795406 未加载
评论 #13795227 未加载
评论 #13795416 未加载
lstamourover 8 years ago
Original, with a little bit more detail: <a href="http:&#x2F;&#x2F;www.news.com.au&#x2F;travel&#x2F;travel-advice&#x2F;travellers-stories&#x2F;aussies-weird-immigration-interview-in-the-us&#x2F;news-story&#x2F;8222c65d2f12e6691ef27c9b1753e821" rel="nofollow">http:&#x2F;&#x2F;www.news.com.au&#x2F;travel&#x2F;travel-advice&#x2F;travellers-stori...</a><p>&gt; “The vibe I got was weird. He asked me a question, then asked me a follow-up question to prove I wasn’t lying.<p>&gt; “Do they not allow bad software engineers into the United States?” Thornton joked.<p>See also, more recently: <a href="http:&#x2F;&#x2F;money.cnn.com&#x2F;2017&#x2F;03&#x2F;02&#x2F;technology&#x2F;andela-engineer-customs&#x2F;index.html" rel="nofollow">http:&#x2F;&#x2F;money.cnn.com&#x2F;2017&#x2F;03&#x2F;02&#x2F;technology&#x2F;andela-engineer-c...</a>
BugsJustFindMeover 8 years ago
<i>“‘I’ve got a problem, I’m trying to write a computer program, can you help me?’”</i><p>&quot;My software consulting rate is normally $400&#x2F;hr, plus an initial startup fee, but I&#x27;m not authorized to work in your country, so, no.&quot;
djhworldover 8 years ago
I always found the cold, hard manner of border agents in the US quite off putting in general.<p>Last year I was fortunate enough to attend AWS Re:Invent, standing in the queue at McCarran airport, I saw the guard laughing and joking with the people in front of me so I thought ah, maybe they&#x27;re all not like this!<p>As soon as it came to me the guy completely changed, he went cold, he spent the most amount of time asking why I&#x27;d ticked &quot;business&quot; on my customs form, as I didn&#x27;t know what to tick, then proceeded to ask me what conference I was going to and what it was about and why I was attending. I know that&#x27;s his job and he&#x27;s just making sure everything lines up, but it just felt unwelcoming.
评论 #13795322 未加载
评论 #13795317 未加载
评论 #13795338 未加载
dragony4over 8 years ago
I am not surprised by this. When I was at Newark the conversation with immigration guy was something like this:<p>Him: What do you do? Me: I am an entepreneur.<p>Him: Haha, ... we are all entepreneurs, now really, what do you do? Me: Websites<p>Him: I&#x27;ve heard there is a Sillicone Valley in Russia and they want to take over that ours. Me: Um, okay. (I am from Czech Republic)
relediover 8 years ago
A few days ago a Nigerian software engineer was asked to balance a BST at JFK airport: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;cyberomin&#x2F;status&#x2F;835888786462625792" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;cyberomin&#x2F;status&#x2F;835888786462625792</a>
评论 #13795375 未加载
chvidover 8 years ago
Don&#x27;t blame this on Trump; it goes on all over the world.<p>If the border police officer for any reason decides that you are suspicious then they will toy with you as they please. That includes asking arbitrary questions under the threat they can send you back to home country for any or no reason. Plus they can fingerprint you and go thru all your travel goods including phone and laptop.<p>As foreigner you have no rights standing at the border of the country you are entering.<p>And the border police operates without the checks that a normal police force operates under.<p>If you are a frequent traveller you better get used to being interrogated; answer short and precise without using any trigger words.
pav3lover 8 years ago
One of my math professor (Canadian) once told us a story (~10 years ago) that the US border control asked him to &quot;state and prove Rolle&#x27;s theorem&quot; after he had told them he was traveling to a math conference. Apparently he answered &quot;it&#x27;s something to do with the mean value theorem, right?&quot; and that was good enough.
lordnachoover 8 years ago
I don&#x27;t like the nervous atmosphere they make at the US border. It&#x27;s the only country apart from Cuba where you get the feeling they might deny me entry for no reason. And it&#x27;s the only country that I personally know people have been denied entry for no reason.<p>It&#x27;s the way the questions come out, like a movie. The words come out slowly while the guy looks for something in my eyes.<p>I haven&#x27;t been grilled on professional questions, but I wonder what I should say I do. Programmer or Trader are both legit. If I say programmer, I might get a technical question. If I say trader, maybe I just have give him a random stock tip.
评论 #13795638 未加载
js8over 8 years ago
This reminds me of a George Gamow&#x27;s story (which can be an urban legend attributed to him) in Soviet Russia, I think when he was trying to flee. Allegedly, he was detained by some local warrior group in Caucasus(?). The local chieftain didn&#x27;t believe he was a theoretical physicist, so he asked him to derive the n-th error term of the Taylor expansion. Fortunately, he was able to do that and save his life!<p>I take it as one of those lessons of usefulness of mathematics in daily life. :-)
kirillkhover 8 years ago
This makes me wish some of my colleagues were issued an airplane ticket to the US. Possibly one-way.
mwidellover 8 years ago
I&#x27;ve also been asked for my occupation, and then my business card, and then my website – which they actually started browsing as I was standing there in the passport control. This was back in 2009.
HappyTypistover 8 years ago
I&#x27;m in the US right now. Upon arriving in SFO (from Sydney) on a holiday (ESTA), I was asked the following non-standard questions:<p>&quot;So you&#x27;re a software engineer? What is your most proficient language?&quot;<p>Response: &quot;Javascript&quot;<p>&quot;What does the atob function do?&quot;<p>I was quite taken back and asked to repeat, and the CBP agent spelled out &quot;a t o b&quot;. I answered something to do with base64 decoding and was let through
评论 #13795454 未加载
dmitrykovalover 8 years ago
It&#x27;s a little bit strange that even though Python was mentioned there&#x27;s not a hint about the actual problem in question.
评论 #13795378 未加载
epsover 8 years ago
The fact that this has started happenning in parallel with H-1B crackdown is not a coincedence. Someone somewhere issued a note that too many fake programmers are slipping in, so that&#x27;s the result.
seesomesenseover 8 years ago
A investment banker I know ( private equity, with a well know firm that has a AUM of $340 billion ) was asked :<p>&quot;Why do you you hate the USA ?&quot;<p>when he last flew to the US.
kargover 8 years ago
Why not just strap them on a lie detector and ask if they have any intention to do anything illegal?
jonduboisover 8 years ago
I just don&#x27;t believe this. It&#x27;s fake news. This line made it clear to me:<p>&quot;He said the officer appeared to be mid to senior level, and there’s no chance the conversation would have been overheard by anyone else in line.&quot;<p>So basically there is no one who can corroborate with his story. This trash should not be allowed into any publication which calls itself &#x27;news&#x27;.<p>I&#x27;m surprised that people actually believe that stuff by default. In this new world, the default should be to distrust the media and that line I quoted above gives a very good reason to distrust it.
评论 #13795415 未加载
评论 #13795433 未加载
评论 #13795537 未加载