[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Well, your Resume looks good, I think were all set. Oh, one more

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 48
Thread images: 10

File: interviewerc.jpg (32KB, 540x395px) Image search: [Google]
interviewerc.jpg
32KB, 540x395px
Well, your Resume looks good, I think were all set. Oh, one more thing, show us you can reverse an integer mathematically.
>>
def reverse(num):
reverse = 0
while num > 0:
reverse = reverse*10 + num%10
num = int(num/10)
return reverse
>>
>>61495186

I can do it for a binary integer in assembly
>>
File: huh.png (94KB, 800x800px) Image search: [Google]
huh.png
94KB, 800x800px
>>61495186
you must mean reverse the digits, and by mathematically you must mean using traditional mathematics and not using a machine designed specifically to make a process like that easy such as a computer.

Such problems have already been solved and I'm happy to google the answer for you. Given half an hour to review the appropriate materials and another 30 minutes to develop test cases and a solution, I'd be happy to show you I'm capable of doing so.

Alternatively, you could challenge me with a task that would be relevant to the job you are hiring me for.
>>
>>61495777
nice trips, also sorry but we found a more qualified candidate who won't make us feel stupid
>>
>>61495276
This doesn't work when
num[/num] is a multiple of 10.
>>
>>61495832
Wow sry about the code tag lmao
>>
>mathematically
what? just bitwise shift idiot
>>
>>61495777
lol this is what I would say and hence will never get a job in software. fuck hr.

i'd also say:

>>61495186
>mathematically
turing machines are mathematical constructs so using strings should be ok. perhaps you meant arithmetically?
>>
>>61495186
Sure thing: int reverse(int x) { return x; }

This reverses the base-2147483648 number x in constant time
>>
>>61495948
clever girl. i'd hire your nerdy ass
>>
File: 1051284315207.png (197KB, 613x641px) Image search: [Google]
1051284315207.png
197KB, 613x641px
>>61495777
Well thanks for your time, anon. We have lots of people to interview so we'll be in touch.
>>
>>61495186
Base-2?
uint32_t reverse(uint32_t x) {
x = (x << 16) & 0xFFFF0000 | (x >> 16) & 0x0000FFFF; /* swap words */
x = (x << 8) & 0xFF00FF00 | (x >> 8) & 0x00FF00FF; /* swap bytes */
x = (x << 4) & 0xF0F0F0F0 | (x >> 4) & 0x0F0F0F0F; /* swap nybbles */
x = (x << 2) & 0xCCCCCCCC | (x >> 2) & 0x33333333; /* swap couplets */
x = (x << 1) & 0xAAAAAAAA | (x >> 1) & 0x55555555; /* swap bits */
return x;
}

80 columns.
>>
>>61495832
It works fine

The reversed integer of 10 is 1, 110 is 11, etc.
>>
>>61496174
>tab is size of 4 spaces
sory but we do not hire special needs kids.
>>
File: 1500496411475.jpg (107KB, 797x1173px) Image search: [Google]
1500496411475.jpg
107KB, 797x1173px
>>61496286
>indenting with anything else but 4 spaces

Found the actual retard
>>
>>61496286
Infidel
>>
>>61496302
tab is supposed to be 8 space wide, dumb fuck.
>>
>>61496321
I use 16 spaces to prevent me from nesting too much. alot of nesting means bad code. get on my level.
>>
File: 1497569064924.gif (2MB, 316x213px) Image search: [Google]
1497569064924.gif
2MB, 316x213px
>>61495791
>>61495982

No worries. Your lack of insight into the real world challenges of developing and maintaining complex software has enlightened me. The probable outcome is that your company will eventually attempt to replace local engineers with a team of outsourced workers in the third-world. The few remaining Senior Engineers will then either quit out of frustration, become alcoholics, or die of job-related stress. From there, your products and company will begin to atrophy. All because antiquated hiring practices and useful idiots like yourselves are unknowingly killing the proverbial golden goose. My only regret is that I won't have a fiddle to play while your company burns to the ground due to internal incompetence.
>>
>>61496349
>I use 16 spaces
Yeah, well you are dumb fuck.
>>
if (x == 3) { return Ɛ; }

I could do this for other integers but I don't work for free, you have to hire me first.
>>
>>61496376
haha
>>
>>61496350
/thread
>>
>>61496376
kek
>>
>>61496321
>indenting with tabs

Okay, you literally are retarded. 4 spaces, not a tab.
>>
>>61496350
Go flip the hamburgers, McDonald
>>
>>61496426
dumb reddit poster.
>>
File: 1500356855579.jpg (19KB, 400x400px) Image search: [Google]
1500356855579.jpg
19KB, 400x400px
>>61496452
>heh, he hit enter while he was typing, must be from reddit

typical projecting redditard
>>
>>61496496
>projecting
you're just full of bait, aren't you?
>>
File: 1492467127570.png (293KB, 778x702px) Image search: [Google]
1492467127570.png
293KB, 778x702px
>>61496539
I predicted what you would post 2 posts ago. How does that make you feel?
>>
>>61496496
dumb nigger poster.
>>
TFW t.brainlet when it comes to math, but i still land programming jobs.

Even I think I should not be hireable because my math skills are so shit.
But yet here is am, building speed critical systems without any further knowledge than algebra III.
>>
File: 1499988988764.png (14KB, 216x208px) Image search: [Google]
1499988988764.png
14KB, 216x208px
>>61495186
int reverse(const int x) {
return __bswap_64(x);
}
>>
>>61495186
I assume you meant find the inverse, in which case I can pull the euclidian algorithm out of my ass faster than you can say remainder
>>
>>61495186
>we'd like you computer the primes under 2 million and sum them, implement bubble sort on a whiteboard, and show us your fizz buzz. One, two, three - go!
How fucked are you?
>>
>>61496661
This problem usually means to reverse the string of an integer in base 10.
>>
>>61496669
>computer the primes
lol
with what probability?
>>
>>61496669
p fugged
>>
>>61495186
num = num * -1
>>
>>61496669
not fucked, ill refuse and show my resume to a better company, if i get asked a question like that i know i made a mistake applying. this kind of shit only hampers people trying to get into hip companies that look good on paper without having much experience
>>
>>61496783
>>61497267

I hope you two are joking, if you can't do the 3 listed things you definitely won't be hired anywhere, interview questions literally cannot get easier.
>>
>>61497292
i can do all of them, i just refuse to do so in an interview

anyone who looks at my resume and then asks me to write fizzbuzz is too stupid to live tbqh
>>
>>61496438
Shut the fuck you little burger flipping faggot
>>
>>61495186

sorry, I am a programmer, I don't math.
>>
>>61498470
>t. brainlet
>>
>>61498470
>sorry, I am a programmer, I don't math.
So true, so true.
>>
Define "reverse an integer mathematically."
Thread posts: 48
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.