|
jesus WEP posted:i put probably less than 10% thought into handing out the sixer than you did into making this post, it was literally just “ew what a gross word lol they’re getting their rap sheet stained for it” so basically DELETE CASCADE posted:it was garbage. he broke no forum rules, the idiot mod just found it distasteful
|
![]() |
|
![]()
|
# ? Feb 8, 2025 23:18 |
|
yeah pretty much
|
![]() |
|
"i put barely any thought into my moderation activities" isn't the slam dunk you think it is
|
![]() |
|
DELETE CASCADE posted:"i put barely any thought into my moderation activities" isn't the slam dunk you think it is Get a load of this back seat 'erator
|
![]() |
|
DELETE CASCADE posted:"i put barely any thought into my moderation activities" isn't the slam dunk you think it is the median Postin experience on the pos is like 10 years, we just need a mod for whoever's the little poo poo this year e: i guess the fyad mods are takin care of hbag nowadays bob dobbs is dead fucked around with this message at 22:19 on Sep 24, 2021 |
![]() |
|
jesus WEP posted:i put probably less than 10% thought into handing out the sixer than you did into making this post, it was literally just “ew what a gross word lol they’re getting their rap sheet stained for it” It's always projection.
|
![]() |
|
lmao imagine whining about a sixer
|
![]() |
|
whos whining about sixers now
|
![]() |
|
hbag posted:whos whining about sixers now Ben Simmons.
|
![]() |
|
Coco13 posted:Ben Simmons. who the gently caress is that
|
![]() |
|
Achmed Jones posted:lmao imagine whining about a sixer
|
![]() |
|
Coco13 posted:Ben Simmons. i appreciated this
|
![]() |
|
That was a funny sixer I'd wear that poo poo like a badge of honor
|
![]() |
|
Coco13 posted:Ben Simmons. lmao hbag posted:who the gently caress is that a basketball player who has been kind of poo poo for the philadelphia, pennsylvania, usa seventy-sixers professional basketball team who, because he has been inexplicably poo poo in very important situations and is all in his feelings about being poo poo, now refuses to report to the team during the upcoming season and wants to be traded, but no one wants to trade for him because he has been poo poo.
|
![]() |
|
just had an intro call with some company who's hiring nearby, looking for an embedded system software lead. Highlights: - CEO is the one making recruiting calls, for a company of around 50 people. - Pay: best offer would be around $30k less/year than I'm making right now. - Startup. But don't worry it's very well funded, honest. - Hardware is primarily off-the-shelf dev boards. - I would have architecture and ownership over all platform code. - Also, all code is written by an offshore team in India, including the code that I will own. - Offshore team doesn't have full access to the target hardware. - Also, they're not very good so maybe I can help them with the hard parts. ![]() Poopernickel fucked around with this message at 04:27 on Sep 25, 2021 |
![]() |
|
Coco13 posted:Ben Simmons. lol
|
![]() |
|
DELETE CASCADE posted:"i put barely any thought into my moderation activities" isn't the slam dunk you think it is i mean, it should fall under the schadenboner rule, where it is rightly bannable to make up dumb words and force them into every post as if that in itself is comedy.
|
![]() |
|
Poopernickel posted:just had an intro call with some company who's hiring nearby, looking for an embedded system software lead. pay aside, lol at the last 4 points
|
![]() |
|
DELETE CASCADE posted:"i put barely any thought into my moderation activities" isn't the slam dunk you think it is ![]()
|
![]() |
|
DELETE CASCADE posted:"i put barely any thought into my moderation activities" isn't the slam dunk you think it is https://www.youtube.com/watch?v=kmcpiM3SSOA
|
![]() |
|
Poopernickel posted:just had an intro call with some company who's hiring nearby, looking for an embedded system software lead. oh that’s not so…uhh…oh drat that really nosedived hard
|
![]() |
|
I tried taking a Codility practice exam in Python. The practice exam consists of 30 minutes for a single problem. The actual test is 110 minutes. The problem is writing a function solution(A) to find the lowest positive integer not in a given array of integers. Find an efficient solution for an array length <= 100,000 and integers in the range [-100000, 100000]. I assume that there has to be a positive integer in the array. So I wrotecode:
So I'd throw in code:
galenanorth fucked around with this message at 19:17 on Sep 25, 2021 |
![]() |
|
you probably want to sort the array first, binary search for the index containing zero or the next lowest number, then traverse up the array until you find a gap between numbers greater than one alternatively you could traverse the array a single time placing all positive integers into their own array while keeping them in order and then do the same thing. that would probably be faster because we don’t care about the negative numbers
|
![]() |
your solution has quadratic complexity, because list membership is o(n), and the i boundary check is not elegant either. there are a few ways that all should score better on performance 1 - keep everything as is and create a set for membership check. list membership is o(n), which makes your code quadratic in worst case scenario, whereas set membership is o(1) 2 - create a set of positive integers in your range, subtract set of input list from that and the first element is your result 3 - filter input list to positive values with a list comprehension, then sort it using default sort, then loop over range(1, len(l)) to check difference between current and previous number and deduce earliest gap to break the for loop without knowing how your performance measure scores memory vs speed, performance order should roughly be 2 > 3 > 1 >> your version edit: for 3 you would want to also compare the minimum value vs 1 to see if there’s something before the loop begins cinci zoo sniper fucked around with this message at 19:30 on Sep 25, 2021 |
|
![]() |
|
id guess that the n^2 implementation is a fail state, naive sort then traverse is a pass, and the optimizations pizza.bat mentioned (while talking about premature optimization etc) are extra credit. id probably put the second array in a heap during the filter pass for the delta>1 step but tbh when you get this far things are already fine. if i'm reviewing code, anything but the n^2 implementation is gonna be fine for non-trivially-small arrays
|
![]() |
|
the thing to understand about that kind of question is that context in which you're solving it isn't "inside a python application, in which it forms no more crucial a component of the application's operation than you'd assume based on a simple reading of it." the correct context is "as an interview question," and in that context, you have to interpret it as being a proxy for several specific sub-questions, such as "do you know basic python syntax?" the sub-question you failed to answer correctly is "are unnecessary quadratic time operations acceptable?" and in the context of the kind of interview that asks that question, the correct answer is always "categorically no," even though this isn't true in the real world. lots of people would argue that this makes both the question and the style of interviewing dumb as hell, but you're still going to have to deal with it.
|
![]() |
|
this is reminding me of an interview question i appreciated a couple of jobs ago where the "correct" path was to ask enough questions about the details of the input to determine that a brute force solution would be fine and just do that. basically the optimal solution they were looking for was some O(exp(N)) thing but N was, like, four, so who gives a poo poo. it was refreshing. they weren't looking for hotshot algorithm jockeys, they were looking for people who actively tried to understand the problem they were solving. (and it wasn't a trick question - if you didn't go down this path early they'd explicitly suggest it to you and see how you reacted.)
|
![]() |
|
inplace heapify is rear end in a top hat thing to do but hey 0 extra memory
bob dobbs is dead fucked around with this message at 21:34 on Sep 25, 2021 |
![]() |
|
imo all of the situational optimizations are pretty meaningless to just answering the q, unless you can explain what kinds of situations they are/aren’t valuable. being able to explain the nlgn in place and n extra space solns is good stuff
|
![]() |
i had an interviewer tell me that nlogn is faster than n because logn can be less than 1
|
|
![]() |
|
cinci zoo sniper posted:i had an interviewer tell me that nlogn is faster than n because logn can be less than 1 lol that’s precious
|
![]() |
cinci zoo sniper posted:i had an interviewer tell me that nlogn is faster than n because logn can be less than 1 good god
|
|
![]() |
|
cinci zoo sniper posted:i had an interviewer tell me that nlogn is faster than n because logn can be less than 1 Numbers can be negative, therefore n is faster. QED.
|
![]() |
|
it is true that a nlogn algorithm can be faster than the n algorithm for the values of n that you care about, and it is also true that logn is less than one when n is one, but those two facts aren't actually connected and the second isn't the reason why the first is true
|
![]() |
|
idk it seems most likely to me that the interviewer was making a joke. it also serves as a "does the interviewee assume others' competence or think everyone else is an idiot" check
|
![]() |
|
i would absolutely assume that someone who said incompetent poo poo in a professional setting is actually incompetent. i have been burned so much in my career by assuming that someone saying stupid poo poo has some deeper reason for it, or they're joking, or whatever.
|
![]() |
|
Menacer posted:i would absolutely assume that someone who said incompetent poo poo in a professional setting is actually incompetent. i have been burned so much in my career by assuming that someone saying stupid poo poo has some deeper reason for it, or they're joking, or whatever.
|
![]() |
|
raminasi posted:is "are unnecessary quadratic time operations acceptable?" and in the context of the kind of interview that asks that question, the correct answer is always "categorically no," even though this isn't true in the real world.
|
![]() |
Achmed Jones posted:idk it seems most likely to me that the interviewer was making a joke. it also serves as a "does the interviewee assume others' competence or think everyone else is an idiot" check i implemented interview problem in 2 ways - o(nlogn) and o(n). they told me o(nlogn) is faster than o(n), and instructed me to further improve the former variant. even if this would have been a joke, this is like “boss jokes about firing you” tier of appropriateness of jokes. and that’s not touching the obvious language difficulties the interviewer, a non-native speaker, was having.
|
|
![]() |
|
![]()
|
# ? Feb 8, 2025 23:18 |
|
cinci zoo sniper posted:i implemented interview problem in 2 ways - o(nlogn) and o(n). they told me o(nlogn) is faster than o(n), and instructed me to further improve the former variant. o(nlogn) is faster than o(n)...... NOT
|
![]() |