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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What to do? Technical interview where interviewer stubbornly gets Big-O wrong.

4 点作者 duggieawesome将近 12 年前

1 comment

joshuaellinger将近 12 年前
Pretty funny actually.<p>The tactical error the interviewee made was not addressing the misconception on a different play field and then misplaying the politics (assuming he wanted the job). He should have brought the question up in each subsequent interview and seen the reaction of the organization.<p>The way to address the misconception is to pose a slightly different question of the interviewer, namely, is this O(N) or O(N^2):<p>for (i=0; i&lt;N; i++) { for (j=0; j&lt;N; j++) { if (i==j) maxtrix[i,j] = 1; } }<p>and this<p>for (i=0; i&lt;N; i++) { for (j=i; j&lt;=i; j++) { matrix[i,j] = 1; } }
评论 #6070275 未加载