|
CaptainMeatpants posted:to weed out the undesirables we always ask: fizzbuzzin' code:
|
# ? Apr 26, 2012 18:39 |
|
|
# ? May 11, 2024 09:31 |
|
i got some mad dirty puerh and its like im drinking an entire moldy forest
|
# ? Apr 26, 2012 18:40 |
|
CaptainMeatpants posted:to weed out the undesirables we always ask: i had one place ask me during an interview to determine if a string is a rotation of another, so i go and write a hacky longest common substring algo and get 'er done as they say apparently it's one of those trick ones where you just concat the string and to a strstr. shame on me for not reading the "tricks of the trade: ace the programming interview!!!!" book
|
# ? Apr 26, 2012 18:43 |
|
the only thing worse than interviewing a show off is being interviewed by one.
|
# ? Apr 26, 2012 18:45 |
tef posted:fizzbuzzin' it's nice to know that stuff like this is built into python. permutations is another cool one.
|
|
# ? Apr 26, 2012 18:46 |
|
Police Academy III posted:please explain, this sounds wonderfully hacky I almost forgot https://gist.github.com/295200
|
# ? Apr 26, 2012 18:52 |
|
trex eaterofcadrs posted:i had one place ask me during an interview to determine if a string is a rotation of another, so i go and write a hacky longest common substring algo and get 'er done as they say that's not a helpful question to determine the ability of a dude, it's just jerkery. gah
|
# ? Apr 26, 2012 18:58 |
|
once a year ill listen to girl talk - night ripper. at an internship interview i talked about 90s bmws and the giant f1 bmw poster i have
|
# ? Apr 26, 2012 19:02 |
|
tef posted:fizzbuzzin' I often forget about a bunch of the cool stuff python has in its standard libs. COllections has some other cool stuff too, like groupby
|
# ? Apr 26, 2012 19:05 |
|
if people ask for my github ill just show them my last.fm
|
# ? Apr 26, 2012 19:05 |
|
Shaggar posted:i dont like that maps are called dictionaries in c#
|
# ? Apr 26, 2012 19:07 |
|
ppp posted:if people ask for my github ill just show them my last.fm I got hired for my first student cj job partially because I mentioned that I liked Jethro Tull.
|
# ? Apr 26, 2012 19:07 |
|
Janin posted:dictionaries and maps are different thing. the c# Dictionary type is a dictionary, not a map. oh yeah? whats the difference?
|
# ? Apr 26, 2012 19:08 |
|
Ronald Raiden posted:I got hired for my first student cj job partially because I mentioned that I liked Jethro Tull. they hired you to laugh at you
|
# ? Apr 26, 2012 19:08 |
|
wait are u guys talking about hashes?
|
# ? Apr 26, 2012 19:10 |
|
HashMap is a type of map but not all maps are hash maps
|
# ? Apr 26, 2012 19:10 |
|
JawnV6 posted:wait are u guys talking about hashes? i think perl/ruby are wrong here cause it's confusing as poo poo (even tho they are implemented with hashing algos) map is the perfect name cause it's what we've been calling that concept (function from X->Y) since set theory got all hollywood
|
# ? Apr 26, 2012 19:19 |
|
Map is correct because it is a mapping of keys to values Dictionary is incorrect because dictionaries are a specific type of map Hash is incorrect because it is a specific implementation of a map.
|
# ? Apr 26, 2012 19:20 |
|
Nomnom Cookie posted:preserve insertion order lol you seriously think this is a bad thing
|
# ? Apr 26, 2012 19:22 |
|
php arrays are pretty much god's own data structure. i have yet to encounter a problem i couldn't solve with them
|
# ? Apr 26, 2012 19:22 |
|
trex eaterofcadrs posted:i think perl/ruby are wrong here cause it's confusing as poo poo (even tho they are implemented with hashing algos) well "map" is already taken by the first half of the "map-reduce" concept
|
# ? Apr 26, 2012 19:23 |
|
Tiny Bug Child posted:php arrays are pretty much god's own data structure. i have yet to encounter a problem i couldn't solve with them tahts good cause it's not like there are any other data structures in php
|
# ? Apr 26, 2012 19:29 |
|
tef posted:I almost forgot https://gist.github.com/295200
|
# ? Apr 26, 2012 19:30 |
|
CaptainMeatpants posted:tahts good cause it's not like there are any other data structures in php yeah cause you don't need them. php arrays are literally all the good data structures rolled into one
|
# ? Apr 26, 2012 19:30 |
|
code:
seriously i can't imagine any case where this would take > 2-3 minutes at most, drat
|
# ? Apr 26, 2012 19:33 |
|
BonzoESC posted:well "map" is already taken by the first half of the "map-reduce" concept could be that i'm dumb but idk where you're going w/ that
|
# ? Apr 26, 2012 19:33 |
|
Anal Tributary posted:
well done captain obvious
|
# ? Apr 26, 2012 19:35 |
|
trex eaterofcadrs posted:could be that i'm dumb but idk where you're going w/ that map in map -educe refers to a proper map so idgi
|
# ? Apr 26, 2012 19:35 |
|
Dr. Honked posted:well done captain obvious i was bored + just woke up
|
# ? Apr 26, 2012 19:36 |
|
Tiny Bug Child posted:yeah cause you don't need them. php arrays are literally all the good data structures rolled into one sorry tbc i replied before i realized it was you, just disregard that, tia
|
# ? Apr 26, 2012 19:37 |
|
Shaggar posted:map in map -educe refers to a proper map so idgi ya that's why i'm confused too
|
# ? Apr 26, 2012 19:37 |
|
Anal Tributary posted:
|
# ? Apr 26, 2012 19:38 |
|
Anal Tributary posted:
what the gently caress dude
|
# ? Apr 26, 2012 19:40 |
|
Werthog posted:welp have fun working at best buy again oh goddammit lol brb killing myself
|
# ? Apr 26, 2012 19:40 |
|
Anal Tributary posted:
dude... http://documentcloud.github.com/underscore/
|
# ? Apr 26, 2012 19:42 |
|
tef posted:I almost forgot https://gist.github.com/295200 it's beautiful, tyvm
|
# ? Apr 26, 2012 19:43 |
|
Anal Tributary posted:seriously i can't imagine any case where this would take > 2-3 minutes at most, drat yeah that's the point of interview questions easy enough to not be awkward, but a good judge of whether someone can solve logic puzzles well, or just desperately try to remember that top rated stack overflow solution
|
# ? Apr 26, 2012 19:50 |
|
trex eaterofcadrs posted:dude... _.each(string.split(""), function(char) { counts[char] = counts[char]+1 || 1 }); is a cool one-liner but it's not like there's anything with just using a for loop
|
# ? Apr 26, 2012 19:50 |
|
Dr. Honked posted:personally when i look at code samples i'm looking at their coding style. you can learn a lot about a person by looking at their code. here's where you are wrong: the person who likes to code intentionally write it in the longest way possible because he loves typing in code so much code code code tap tap tap
|
# ? Apr 26, 2012 19:52 |
|
|
# ? May 11, 2024 09:31 |
|
text editor posted:here's where you are wrong: the person who likes to code intentionally write it in the longest way possible because he loves typing in code so much drat i never thought about it that way.. all those great programmers who have slipped through my fingers....
|
# ? Apr 26, 2012 19:54 |