TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SkillUpper – practice coding interview questions step-by-step

143 pointsby rhc2104over 6 years ago

3 comments

tralarpaover 6 years ago
Your posting is already 13 hours old but I hope you still see this message :)<p>First of all, being sometimes involved in teaching CS to people, I like your website. You have obviously spent a lot of time on the question of how to teach people programming (the latter in the sense of &quot;How to write a program that solves a given problem?&quot;). I have seen textbook authors with less dedication.<p>However (there is always a &quot;however&quot; or &quot;but&quot;), I am wondering whether you are using the right approach for the N Queens problem. You are following a bottom-up approach. For example, on the first page you let people write a helper function &quot;validateQueenPlacement&quot;, followed by another helper function &quot;nextRowColumns&quot; on page 2. For somebody who doesn&#x27;t know the complete solution, it&#x27;s very hard to see why you would need those two functions. Of course, <i>you</i> know that you will need them but you have already seen the final solution!<p>You are probably familar with the top-down approach by Wirth (1971) called Stepwise Refinement. I think (but I cannot prove it) that most CS educators see Stepwise Refinement as the superior approach because it encourages people to think about the problem and not the code. Why don&#x27;t you let the reader write first the high-level (pseudo-)code for the backtracking:<p><pre><code> http:&#x2F;&#x2F;sunnyday.mit.edu&#x2F;16.355&#x2F;wirth-refinement.html#3 </code></pre> Once the reader has written the code for the highest layer, it becomes obvious what the helper functions should be, what their parameters are, and what data structures are needed. I know that Stepwise Refinement is unpopular nowadays because it forms a kind of psychological hurdle (bottom-up gives you <i>directly</i> small functions that you can unit-test) but I think it really helps people to guide <i>themselves</i> to the solution.
评论 #18500011 未加载
krainboltgreeneover 6 years ago
Feels very weird to me to spend time and energy building tools for a type of interview process that is becoming more and more derided by the community?
评论 #18491863 未加载
评论 #18491271 未加载
评论 #18491391 未加载
评论 #18491805 未加载
评论 #18493651 未加载
评论 #18491517 未加载
评论 #18492669 未加载
merlincoreyover 6 years ago
For me, completing the Spiral Matrix, I did not find the hint for the third and final section relate-able at all to my solution.<p>Essentially, it assumes a bit too much the shape of the resulting solution.<p>That&#x27;s not to say I didn&#x27;t get value from the hint, or that I think others will not - on the contrary, it is a valuable and clear hint.<p>The unfortunate part is just the feeling of being taken completely &quot;out of it&quot; in solving the solution with a slightly different approach and wondering momentarily if somehow one is wrong, even though one is passing all the tests.<p>The recap is also fairly lacking in content, but I imagine that is clear to you already.<p>Nice job on the site, generally. I only had a couple hiccups with submissions and some weird aliasing on the editor if I would edit a line before it redrew.<p>Edit: add some dropped words
评论 #18492400 未加载