Give me your best interview questions

Give me your best interview questions.

Attached: F68FA5CF-D1A1-4893-8ECA-C3F8AF5B85A0.gif (448x679, 52K)

How big is your benis faggod?

illya or kuro

>Reverse the words in a sentence, i.e. "My name is Chris" becomes "Chris is name My." Optimize for speed and space.

>Compare two strings using O(n) time with constant space.

>Find the nth element from the end of a linked list (where n < size of list).

While walking along in desert sand, you suddenly look down and see a tortoise crawling toward you. You reach down and flip it over onto its back. The tortoise lies there, its belly baking in the hot sun, beating its legs, trying to turn itself over, but it cannot do so without your help. You are not helping. Why?

Uh, I can solve those in my sleep, crank up the bullshit meter.

Why should I hire you?

Can you fit your fist in your mouth?

I'm waiting until it's cooked so I can eat it.

But I'm not gonna eat anything because tortoises don't dwell in deserts, I'm having hallucination and I will soon die.

write a high quality PC game using only x86 assembly. no engines or libraries allowed.

sure you can, kid.

Define "high quality". Also if you're asking me to develop audio and video libraries in assembly be sure to allot a million bucks annually for my salary.

>Define "high quality"

Attached: 25bade6c0459e013a74b4edff6e.jpg (602x410, 157K)

Even black skins can do this, pajeet.

>hurr durr everyone can do it
>doesn't post code
>implying you can optimize it for space and speed

fuck off Rajesh Kumar

>while (*s != '\0') if ( *s++ != *d++ ) return false; return true;
Etc.

are you retarded?

what's that "solution" for? what problem are you talking about?

10 if shoot man goto 20 else goto 30
20 you win game
30 you lose, try again, goto 10
40 (reserved for DLC)

>How emotionally aware are you of your surroundings?

That's comparing two strings in o(n) time with constant space. I'd give you bonus points if you can spot intentional problem with that code but you can't even.

A person was assigned male at birth, but is wearing a skirt right now.
Which gender pronoun should you use when referring to them?

Attached: 1550003551174.jpg (956x1200, 175K)

Can you install gentoo without seeing the handbook?

Whichever they ask.

He/him. He's still a male, just onions.

Sure.
>install Gentoo without desktop bloat, software bloat, and filesystem bloat.

Hired!

Is cumdump an pronouns

cause i ain't no nigga

How many blades of grass are there on the planet? I was asked that by a guy I worked with, since he did some of the interviewing. It was a small business, but apparently everyone gave him a different answer lol. I'm more of a scientific person I pounded that shit out from the radius of the Earth to surface area, with estimates on densities.

do tell goy

This. I like strong charismatic people.

It's a while loop but it should be an until loop.

>How many blades of grass are there on the planet?
It's one of those stupid questions that don't really test anything except interview preparation.
>muh round manhole covers

no it shouldn't.

Who the fuck uses "until" nowadays?
The compiler knows its shit and will not give a fuck, a different person reading your crap will need a double take just because you wanted to show off obsolete misfeatures.
It's trigraph tier shit.

And that's why they don't hire Computer Science/Computer Engineers. Way too autismal to get work done.

>>Reverse the words in a sentence, i.e. "My name is Chris" becomes "Chris is name My." Optimize for speed and space.
Reverse iterator on characters, build reversed words, stop at each space and reverse them back into the string you build. Trivial.

>>Compare two strings using O(n) time with constant space.
while(*s && *t) if (*s++ != *t++) return false; return !(*s || *t);

>>Find the nth element from the end of a linked list (where n < size of list).
n-sized array of pointers used as a queue, read its tail when done.

This would errirneously return true if first sting was shorter than second. If you check for loop break after checking character equality then it works as intended. Or you could use a for loop.
>for (;*s++==*d++;) if (*s=='\0') return true; return false;

Effing Millenials..

Yeah but you’re not gonna like it

Implement Fizzbuzz in 3 different ways.
One solution mustn‘t use the following operators:
, =
One solution must not use the following operators:
, =, ==


>Spoiler:
>solution one uses counters, solution two uses boolean flip-flop variables

...or you could use modulo and not and have the same solution for both.

Post increment fucks up that logic, it's completed before the second check. A valid code is a bit more elaborate. Also pointers.
while ( *a == *b ) if ( *a == '\0' ) return true; else a++, b++; return false;

Casually throw this at him during a small talk
>Have you lived here for more than a few months? Great, I actually moved recently for this job but don't really know where to go on a Friday night, can you recommend me a good club in this city?
Failure to answer this is an instant no because the loser will most likely be an asocial weirdo who'll either be unproductive with the rest of the team or cause drama and fragmentation by having everyone avoid and dislike him, or worse, is an incel in his 20s.

( a == b ) is equivalent to !( a - b )

>normies
>productive

The worst interview question I've ever gotten: Prove to me you know programming.

Hey interview lady if you're reading this, this middle finger is for you. How the fuck is anyone to know they answered the question correctly in your fucked up imagionation of yours.

Attached: 12640482_10153813578479020_8715240051492638466_o.jpg (1440x900, 161K)

Why would you ask him this?
You can tell incel by his incel look. They have this sheepish right-winged zombie stare.

True, you need to filter the retards quickly as once you start asking them technical questions the interview could be 2 hours long waiting for them to finish their scrawling answers, and it would be a major HR no-no to stop them mid question.

What does that have to do with the OP's criteria?

>Sell me this whiteboard using a red black tree

Reverse a sentence but the words stay the same. Example: "I am gay" becomes "gay am I"

>define h-
Uhhhhhhh user looks like we're going in another direction for this one, you just won't be a good fit sorry

Which OS do you use?

Taking two ints switch their values without using another int.

>he actually thinks the question is about whether one can solve it
I sincerely hope you learn how to interview one day.

Find the 59th prime number starting from 1

So you're the type of company that works without direction, planning or even briefings and expects the workers to simply guess what the customer wanted? Why are you wasting my time by calling me to this bogus interview?

What is 2 to the power of 8

What is the difference between abstract vs interface (very popular interview question I'm finding)

>Are you aware that you would be working in a diverse, multicultural team, with gender non-conforming people?
>Why are you playing as a girl in RPGs?
>What is implementation inheritance and when should you use it?

Attached: 1544302614615.jpg (500x373, 26K)

>we’re going to go with Bill. While you were pretty close, Bill gave us an answer immediately. He also won a «guess how much change is in this jar» contest as a child

>Reverse the words in a sentence, i.e. "My name is Chris" becomes "Chris is name My." Optimize for speed and space.
IN THE NAME OF LAMBDA:

main = interact $ unwords . reverse . words

the fact that this was programmed in assembly still blows my mind.

When would you use list vs when would you use arrays?

Nobody wants to die alone

Attached: rekt.jpg (368x264, 48K)

Google interview question I got:
Given a string of characters output the biggest palendrome you can form from it. You don't have to output the ties, just one.

>How many line can you code in one hour?

Up until Playstation, ALL console games were assembly.

a=a+b
b =a-b
a= a-b

now, implement a non-recursive merge sort method on an array of size n.

Everything was programmed in assembly back then, and only by a few people, often just one. When people didn't expect you to simulate every cockroach's flatulence, simpler times.

It's just a simple database search problem. Weird that they'd ask it at Google.

kek
Xigger
based
based lol kek
>>Why are you playing as a girl in RPGs?
>Prove to me you know programming.
That isn't even a question, it's a demand / statement.
I'd link her to my github and make her some quick example fun programs (card delaer dice roller etc)
yes the autism is the problem
What's the answer to this one?
What's your favorite Star Wars movie?
If you could have any super power, which one would you pick?
Where do you see yourself in 5 years?
What makes you passionate about working at this company?
Write down a sample output of
cisco-router01#sh ip flow top-talkers

Boipussy / Buttslut / cocksock / cum deposit / cocksleeve / cockslave / cum addict / shaft whore

1. "If you could throw a parade of any caliber through the Zappos office, what type of parade would it be?" -- The Zappos Family, customer loyalty team member

2. "How lucky are you and why?" -- Airbnb, content manager

3. "If you were a pizza delivery man, how would you benefit from scissors?" -- Apple, specialist

4. "If you could sing one song on American Idol, what would it be?" -- Red Frog Events, event coordinator

5. "Are you more of a hunter or a gatherer?" -- Dell, account manager

6. "If you were on an island and could only bring three things, what would you bring?" -- Yahoo, search quality analyst

7. "If you were a box of cereal, what would you be and why?" -- Bed Bath & Beyond, sales associate

8. "Do you believe in Bigfoot?" -- Norwegian Cruise Line, casino marketing coordinator

9. "Why is a tennis ball fuzzy?" -- Xerox, client manager

10. "What is your least favorite thing about humanity?" -- ZocDoc, operations associate

11. "How would you use Yelp to find the number of businesses in the U.S.?" -- Factual, software engineer

12. "How honest are you?" -- Allied Telesis, executive assistant

13. "How many square feet of pizza are eaten in the U.S. each year?" -- Goldman Sachs, programmer analyst

14. "Can you instruct someone how to make an origami 'cootie catcher' with just words?" -- LivingSocial, consumer advocate

15. "If you were 80 years old, what would you tell your children?" -- McKinsey & Company, associate

cont.

16. "You're a new addition to the crayon box, what color would you be and why?" -- Urban Outfitters sales associate

17. "How does the internet work?" -- Akamai, director

18. "If there was a movie produced about your life, who would play you and why?" -- SinglePlatform, inside sales consultant

19. "What's the color of money?" -- American Heart Association, project manager

20. "What was the last gift you gave someone?" -- Gallup, data analyst

21. "What is the funniest thing that has happened to you recently?" -- Applebee’s, bartender/neighborhood expert server

22. “How many snow shovels sold in the U.S. last year?” -- TASER, leadership development program

23. “It’s Thursday; we’re staffing you on a telecommunications project in Calgary, Canada on Monday. Your flight and hotel are booked; your visa is ready. What are the top five things you do before you leave?” -- ThoughtWorks, junior consultant

24. “Describe to me the process and benefits of wearing a seatbelt.” -- Active Network, client applications specialist

25. “Have you ever been on a boat?” -- Applied Systems, graphic designer

Ironically old shit has way more details than today's games. Half-Life wasn't assembly, but each creature had sensory-based AI. Cockroaches scramble in the light for example. Ultima Online had a virtual ecosystem before they realized video game players are virtual psychopaths that will literally murder everything for no reason.

what's the correct way to do it?
I'd just look for repeating consecutive characters, store the index and look from there until string[i - k]!=string[i+k+1] but I dunno, sounds naive as fuck.

prove you aren't an incel

>9. "Why is a tennis ball fuzzy?" -- Xerox, client manager
Functionally, to limit the speed the ball can travel at by increasing turbulence around it's surface. Aesthetically, that is what the customer expects as traditionally tennis balls have been a fuzzy texture.

>I DONT LIKE PARADES
>VERY UNLUCKY, I MEAN I'M HERE TALKING TO YOU, AREN'T I?
>MAYBE I COULD CUT OFF MY MANAGER'S DICK WITH THE SCISSORS
>NIGGERZBOP REMIX
>I WILL FUCKING HUNT YOU DOWN AND KILL YOU
>GUNS DRUGS AND MONEY
>I'M KOOKOO FOR COCOA PUFFS
>I AM BIGFOOT
>BALLS IN YOUR MOUTH
>IT EXISTS
>FUCK YELP AND FUCK YOU
>AS HONEST AS I NEED TO BE
>PIZZA IS MEASURED IN ROUND FEET NOT SQUARE FEET
>I CAN INSTRUCT YOU ON HOW TO MAKE A PIPE BOMB INSTEAD
>WE ARE ANONYMOUS WE ARE LEGION WE NEVER FORGET WE NEVER FORGIVE ETC
>BLACK AS YOUR SOUL
>SERIES OF TUBES
>A MOVIE WAS ALREADY MADE ABOUT MY LIFE, IT'S CALLED BEN-HUR
>WHAT'S THE COLOR OF PAPER?
>THE GIFT OF BEING ABLE TO STAND IN MY PRESENCE
>SOME APPLEBEES SERVER ASKED ME A DUMBFUCK QUESTION I'M GONNA POST ONLINE, IT WAS HILARIOUS
>NOT ENOUGH
>1: POST ON Jow Forums 2: POST ON Jow Forums 3: POST ON Jow Forums 4:POST ON Jow Forums 5: POST ON Jow Forums
>SEATBELTS ARE FOR FAGS
>I'M ON A BOAT.MP3

You take a database of palyndromes, query for all that contain letters from given string sorted by length, then iterate over them and count up number of each character and see if your string has at least that many, return on first match. Probably possible to do using a single SQL query which would be the true right answer.

Well when I took the interview the interviewer didn't raise to me if I got it wrong or right. But I didn't get a follow up interview after. I used a hashmap.

It’s so use a table or hash table. I post code in a minute.

The set of all palindromes is enormous.
You can’t put them all in a database.

Alpha as fuck

I wouldn't say enormous but its unreasonable to even seek out all possible palindromes in the ether

Entire english is something like 200k words, palyndromes are tiny fraction of it. You can store all palyndromes in existence in all languages and that wouldn't amount to a million entries, that's chump change.

They mean all palindromes, e.g., strings that equal their reverse. Not limited to english words.

Oh OK. Then it's pretty simple:
1) count how many of each letters are there in the string
2) round down the count to the nearest multiple of 2, remember "remainders"
3) using half the characters from the rounded down list, construct first half of the word
4) put any "remainder" character in the middle
5) using remaining half of the characters from the rounded down list, construct the second half of the word in reverse order

" ".join(sentence.split(" ")[::-1])

>neither fast nor small footprint
Ya blew it.

You're not allowed to reorder it.

IT
JUST
WERKS

It didn't say so in the description. It said "longest you can form from it".

>trying to reverse 20 gigabyte string
It just fails.

only this

Attached: Screen Shot 2019-03-07 at 16.01.50.png (545x369, 233K)

user's paraphrasing

>implying the interviewers are even thinking about that

Anyway if what it actually meant is "longest you can find inside of it" then the search is as follows:
1) iterate front to back one letter at a time
2) in each iteration, iterate back to front one letter at a time
3) when match is found, run carets toward each other while checking for letter equality, break if characters aren't equal
4) if carets meet or there's exactly 1 character between them, record current palindrome if it's bigger than already recorded one
They specifically asked to optimize for size and space and you did neither, so it's fair to say that they care about things like that and that you didn't pass.

Not fast enouhg.