TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Coding Interview Preparation in JavaScript

159 点作者 fahimulhaq大约 9 年前

7 条评论

jbob2000大约 9 年前
So today I had to implement the XDomainRequest API to support IE9 for one of our features. Yesterday I worked on a branch to upgrade our front end framework to a newer version. The day before that I was refactoring out our old API from an older module. Last week I was working through a specification document from our product team to implement a new interface.<p>Where, in any of my day-to-day job duties, am I going to need to find the kth permutation of a set of numbers? or clone a directed graph? If someone presented me with these questions in an interview, I would be tempted to leave.<p>And in reflecting on my job as a coder, I find that most of the work I do is janitorial; clean this up, add support for this, fix this, talk with product about this, break this up into smaller pieces... Never once have I had to implement a feature that would require these types of algorithms. Like 98% of my challenges are &quot;this needs to work this way, but that needs to work that way, how can we make them work together?&quot;.<p>I&#x27;m not picking at educative.io per se, they&#x27;re just a symptom. It just really sucks that there are some companies out that believe that if you can rattle off an algorithm, then you must be a good coder.
评论 #11205433 未加载
评论 #11205168 未加载
评论 #11206207 未加载
评论 #11204983 未加载
评论 #11207120 未加载
评论 #11206527 未加载
评论 #11205063 未加载
评论 #11205003 未加载
评论 #11205758 未加载
评论 #11205797 未加载
评论 #11207771 未加载
评论 #11206392 未加载
评论 #11205372 未加载
评论 #11205760 未加载
mycroft-holmes大约 9 年前
The sample problems are...well let&#x27;s just say if every dev I work with had to solve those problems on the spot right now, there&#x27;d be no developers in the office tomorrow. And guess what? We still push code. Our application is still being built.<p>It&#x27;s problems like that which terrify newbies.
评论 #11204711 未加载
评论 #11204576 未加载
评论 #11204599 未加载
iamflimflam1大约 9 年前
I don&#x27;t think I&#x27;d ever ask these algorithm questions in an interview. Much better to sit down with a candidate and do some pair programmer. Add some unit tests to some code, add some small new features. Can they grok an existing code base easily. Do they understand why we are writing unit tests. Etc..
评论 #11207064 未加载
评论 #11205753 未加载
Chefkoochooloo大约 9 年前
This is what is so intriguing to me about education. We all go to school and learn about problems like these, but we retain so little information without brushing the dust off of our old Comp classes and review the material.
评论 #11206050 未加载
评论 #11204918 未加载
joeax大约 9 年前
My two cents, but for these algorithmic questions the language shouldn&#x27;t matter. Are you hiring someone deeply proficient in data structures and algorithmic programming? Then let them solve it in their language of choice.<p>If the role is JavaScript-centric, how about a question specific to the language like <i>Describe the difference between var and let, and when you would use one over the other?</i>
z3t4大约 9 年前
Permutations are more a IQ test. The closest we have in JS is implementing a &quot;marquee tag&quot;.<p>Traversing JSON, or cloning an object or array is actually somewhat common. But I find it funny that the solution is to make a Class, having a &quot;for in&quot; loop, and variable declarations in a loop. It&#x27;s clear that the one who made that solution has never done any serious JS coding <i>silly smile</i><p>I could make another rant about making a new Class for each problem. You want to write code that is easily removed, not complexed!
belzebub大约 9 年前
Site is down unfortunately.<p>Edit: In safari, javascript error in web inspector ironically.
评论 #11204864 未加载
评论 #11204507 未加载