𓁟 host1.bitchan.one

This is the future you chose.

⧖expiring0/25 kept5d ago

𓀐 @JPFvTR3A

⏱ 5d 👍 0

⬆ upvote 0

[⇥] sort oldest ⏱
filter [-]
𓀐 @9wmZ+7~C: How will geometry help me develop CRMs?+

⬆ upvote 0↩ reply 0

𓀐 @c7=~nCsf: I've been programming 15+ years, I wouldn't be able to do this without googling. Traversing a linked list isn't the issue, it's that I don't really know the math required to determine if a point is on a line between two X,Y coordinates. I'd need sample data and sample output to validate whatever dogshit solution I come up with on my own.+ 1

⬆ upvote 0↩ reply 1

𓀐 @Wwz5Kjur: >go through each listpoint in the list >cast a vector from the listpoint to the targetpoint >check if all of them point down (y is negative) I dropped out desu, do I get the job?+ 1

⬆ upvote 0↩ reply 1

𓀐 @s3_ySEam: Gen A might be the most misinformed, ill informed, and uninformed generation in over the last 100 years.+

⬆ upvote 0↩ reply 0

𓀐 @*mz=4V9n: dumbest posters award goes to >110449833 >110449929 >110449637 >110450032 >110449740+ 1

⬆ upvote 0↩ reply 1

𓀐 @_diaBFsn: Give me literally 1 use case where a linked list or any data structure for that matter is superior to a hashmap......+

⬆ upvote 0↩ reply 0

𓀐 @*Qg=_CpG: wtf+

⬆ upvote 0↩ reply 0

𓀐 @a4=qwb?o: this isn't what the question is asking+ 1

⬆ upvote 0↩ reply 1

𓀐 @fKRCN8KM: everyone in this thread right now.+

⬆ upvote 0↩ reply 0

𓀐 @qa25aWkT: I have been programming for over 10 years and have never used a linked list.+ 1

⬆ upvote 0↩ reply 1

𓀐 @mSSpLdFn: if 100% of candidates otherwise in consideration are unable to complete a task, maybe the task is an inappropriate test for an intern candidate+

⬆ upvote 0↩ reply 0

𓀐 @QrkB9D2J: It's crazy how immediately /g/ was able to demonstrate the very problem the screenshot is describing.+ 1

⬆ upvote 0↩ reply 1

𓀐 @p6jzZL3V: ...don't you just need to take the x and y from the first node, then the x and y from the second node, find the slope, plug the X of the target point in to that slope, and compare that to the Y of the target point?? This is braindead easy+

⬆ upvote 0↩ reply 0

𓀐 @F6eWT4V?: I attempted this exercise by myself and failed to do linear interpolation. I've also come to realize AI is rotting my brain because I was having trouble even remembering how to traverse a linked list. my broken solution: static bool UnderTheLine(Node line, Point target) { while (line.Next != null) { if (target.Y >= line.Point.Y && target.Y <= line.Next.Point.Y) return true; line = line.Next; } return false; } actual solution: static bool UnderTheLine(Node line, Point target) { while (line.Next != null) { Point a = line.Point; Point b = line.Next.Point; if (target.X >= a.X && target.X <= b.X) { double slope = ((double)b.Y - a.Y) / (b.X - a.X); double lineY = a.Y + slope * (target.X - a.X); return target.Y < lineY; } line = line.Next; } return false; }+

⬆ upvote 0↩ reply 0

𓀐 @dGH=-yDM: what the fuck is this even asking this is such a bizarre question, why is a linked list involved at all?+

⬆ upvote 0↩ reply 0

𓀐 @y+V3SMc4: >The job: You implement CRUD-Shit for enterprise customers >The question: Geometry wankery you don't learn in school and that nobody bothers learning on their own >"We can't find anyone!"+

⬆ upvote 0↩ reply 0

𓀐 @Vx-C5ivV: >saar you are low IQ because you are not confused by simple concepts like me. I am unable to understand the concept of a line, so I am high IQ bloody benchod The absolute fucking state of this board.+

⬆ upvote 0↩ reply 0

𓀐 @EaMaqEyK: wrong. this question is actually useless and the skills to solve it are useless because of AI. you're a retard and you think that being able to manually solve this under time pressure is an actual useful skill and not just a parlor trick. again, you have severe autism and lack theory of mind. So does the OP. If literally every candidate intern was filtered by this, then that means the question was too hard.+

⬆ upvote 0↩ reply 0