面试官应选用什么样的力扣题

版主: hci

fantasist
见习点评
见习点评
帖子互动: 227
帖子: 1711
注册时间: 2022年 7月 24日 19:52

#61 Re: 面试官应选用什么样的力扣题

帖子 fantasist »

laoxg 写了: 2025年 10月 2日 16:02

你为什么觉得码农工作都是“日常crud和ops这种级别的搬砖活”呢,根据自身的经历吗?那我就好理解了。

一个基层码农除了这些还能干啥?你刚入行的时候能给日活一亿的服务搭建一套infra?
大厂里大头兵占80-90%,别告诉我你觉得这些人都在做什么高端的活。


标签/Tags:
头像
laoxg
见习点评
见习点评
帖子互动: 87
帖子: 1387
注册时间: 2022年 8月 4日 21:58

#62 Re: 面试官应选用什么样的力扣题

帖子 laoxg »

我刚入行的时候,就被分配跟组里的seniors一起做一个新的framework,给全公司用的。我当时只是辅助,做不太重要的components,比如logger/timer啥的,还包括写很多unit tests/integration tests。但公司里绝对不会有一个人觉得我做的是CRUD。

fantasist 写了: 2025年 10月 2日 16:06

一个基层码农除了这些还能干啥?你刚入行的时候能给日活一亿的服务搭建一套infra?

头像
hci(海螺子)楼主
论坛支柱
论坛支柱
帖子互动: 505
帖子: 10246
注册时间: 2022年 7月 22日 15:29

#63 Re: 面试官应选用什么样的力扣题

帖子 hci(海螺子)楼主 »

跟你说不是motivation的问题。她觉得自己已经很努力了,我们PIP她,她哭得梨花带雨的。她的问题是以为什么都有标准答案,好像我们给她的任务是学校教授给的作业一样。可我们是个初创公司,我们给的任务都是没有标准答案的,是想让人找出答案的。我如果有了答案,我就不需要人来干了,我已经干了。她完全不能适应这种充满不确定性的环境。比如她说“我没学过html",就是字面意思:她没上过一门课教html,所以我们出题超纲了,就是这个意思。的确,她CS本科四年,CS硕士两年,的确可能没有任何课程教过html。

听到这个我们都傻了,就是这样。她赢了。哈哈。

fantasist 写了: 2025年 10月 2日 13:25

这个例子正好说明是motivation的问题。她肯定不是一开始就会LC,没学过但最终至少学到能通过你们的面试的程度,而html就没学会(不肯去学),这中间出现了一个明显的逻辑矛盾。从结果看,她肯定不觉得学会html是对自己有好处,得赶紧去做的事,你们估计也找不到办法让她自发地愿意学,最后需要用权力去强迫她完成布置的任务(客观描述,非贬义)。所以显然是你们要她干什么事,她出于某种原因,没有任何动力。具体是什么原因只有当事人自己知道,外人只能猜测,也许是她本身不爱对着电脑只是为了混口饭吃,也许是不想碰前端,也许是当时心理抑郁了,也许嫌钱少,可能性非常多。
话说回来,即使不考标准题,也很难在短短的面试中看出一个新入行的人潜在的严重问题。因为对于大多数candidate来说拿到offer是一个比较明显的激励,所以不管考什么他们都会尽力做,真正开始工作后,情况就复杂了。

上次由 hci 在 2025年 10月 2日 17:35 修改。
原因: 未提供修改原因
fantasist
见习点评
见习点评
帖子互动: 227
帖子: 1711
注册时间: 2022年 7月 24日 19:52

#64 Re: 面试官应选用什么样的力扣题

帖子 fantasist »

laoxg 写了: 2025年 10月 2日 16:12

我刚入行的时候,就被分配跟组里的seniors一起做一个新的framework,给全公司用的。我当时只是辅助,做不太重要的components,比如logger/timer啥的,还包括写很多unit tests/integration tests。但公司里绝对不会有一个人觉得我做的是CRUD。

你说的这些不就是新人ramp up时,分配的CRUD中最有确定性的task子集吗?一般CRUD项目包含分析产品数据,理解和设计新业务逻辑,然后开始改代码,比如对应的DB schema改动,各种logging/testing,再加上加上system/product的observability,deploy/oncall等ops。一些写framework的活其实跟CRUD差不多,可能加点DSL,包装魔改一下开源轮子。

Dahuaidanyimei(Badegg)
见习点评
见习点评
帖子互动: 59
帖子: 1480
注册时间: 2023年 3月 14日 16:18

#65 Re: 面试官应选用什么样的力扣题

帖子 Dahuaidanyimei(Badegg) »

laoxg 写了: 2025年 10月 2日 15:51

互联网大厂们至少十几年前就开始general hire了,面试官和被招进去的人可能一辈子都再无交集。这你都不知道?

那我孤陋寡闻了,也许是有利有弊,但是确实质量难控嘛,关键是面试官事不关己

头像
laoxg
见习点评
见习点评
帖子互动: 87
帖子: 1387
注册时间: 2022年 8月 4日 21:58

#66 Re: 面试官应选用什么样的力扣题

帖子 laoxg »

LOL,您老还开始重新定义CRUD了,那可真是立于不败之地了,就是脸皮略显肥厚。

给你看看Google AI对CRUD的定义吧:

CRUD is an acronym representing the four fundamental operations performed on data in persistent storage, such as a database. These operations are:

Create: This operation involves adding new data records to a database. In SQL, this typically corresponds to an INSERT statement.
Read: This operation involves retrieving existing data records from a database. In SQL, this typically corresponds to a SELECT statement.
Update: This operation involves modifying existing data records in a database. In SQL, this typically corresponds to an UPDATE statement.
Delete: This operation involves removing data records from a database. In SQL, this typically corresponds to a DELETE statement.

These four operations form the foundation of data management in most software applications, particularly those interacting with databases. A data access layer framework designed for "typical CRUD work" would provide standardized methods and tools to easily perform these create, read, update, and delete operations on data, abstracting away the underlying database-specific commands.

fantasist 写了: 2025年 10月 2日 16:44

你说的这些不就是新人ramp up时,分配的CRUD中最有确定性的task子集吗?一般CRUD项目包含分析产品数据,理解和设计新业务逻辑,然后开始改代码,比如对应的DB schema改动,各种logging/testing,再加上加上system/product的observability,deploy/oncall等ops。一些写framework的活其实跟CRUD差不多,可能加点DSL,包装魔改一下开源轮子。

头像
wmysh(我没有啥好)
论坛精英
论坛精英
帖子互动: 887
帖子: 5958
注册时间: 2023年 3月 10日 20:59
来自: Ex medio nullis locis

#67 Re: 面试官应选用什么样的力扣题

帖子 wmysh(我没有啥好) »

擦,CRUD能算码工?

There are two ways to conquer and enslave a country. One is by the sword. The other is by debt. - John Adams
fantasist
见习点评
见习点评
帖子互动: 227
帖子: 1711
注册时间: 2022年 7月 24日 19:52

#68 Re: 面试官应选用什么样的力扣题

帖子 fantasist »

laoxg 写了: 2025年 10月 2日 17:01

LOL,您老还开始重新定义CRUD了,那可真是立于不败之地了,就是脸皮略显肥厚。

给你看看Google AI对CRUD的定义吧:

CRUD is an acronym representing the four fundamental operations performed on data in persistent storage, such as a database. These operations are:

Create: This operation involves adding new data records to a database. In SQL, this typically corresponds to an INSERT statement.
Read: This operation involves retrieving existing data records from a database. In SQL, this typically corresponds to a SELECT statement.
Update: This operation involves modifying existing data records in a database. In SQL, this typically corresponds to an UPDATE statement.
Delete: This operation involves removing data records from a database. In SQL, this typically corresponds to a DELETE statement.

These four operations form the foundation of data management in most software applications, particularly those interacting with databases. A data access layer framework designed for "typical CRUD work" would provide standardized methods and tools to easily perform these create, read, update, and delete operations on data, abstracting away the underlying database-specific commands.

码农间自嘲用的CRUD当然不是原本的字面意思。

头像
laoxg
见习点评
见习点评
帖子互动: 87
帖子: 1387
注册时间: 2022年 8月 4日 21:58

#69 Re: 面试官应选用什么样的力扣题

帖子 laoxg »

再咋自嘲,工作难度超过CRUD原意太多的,当然就不能再算成CRUD。反正我自入行起,做CRUD性质的工作,从没超过工作总量的30%。

如果有人对我说,只会背solution的小仙女们干的事难度比我的工作更高,我无以为报,只能对他狠狠伸出中指。

fantasist 写了: 2025年 10月 2日 17:06

码农间自嘲用的CRUD当然不是原本的字面意思。

wangxuefei618
见习会员
帖子互动: 0
帖子: 2
注册时间: 2024年 3月 29日 16:20

#70 Re: 面试官应选用什么样的力扣题

帖子 wangxuefei618 »

LC202这题当年刷的时候恰好研究过一些,没你想象那么简单。先别扯别的,这题哪有那么好写?刷题套路是快慢指针,训练过才懂吧?管理岗能在被面试时看出来/想出来这个?如果硬算/一个一个位数去算(假设就给定正整数1到100000),数学上可以证明“不快乐数最终会陷入一个固定循环(4→16→37→58→89→145→42→20→4)”,你让面试现场的管理岗mananger去推导这个?不然来来来你告诉我来个管理岗的遇到这题要写成什么样子你才打算让他过?

头像
hci(海螺子)楼主
论坛支柱
论坛支柱
帖子互动: 505
帖子: 10246
注册时间: 2022年 7月 22日 15:29

#71 Re: 面试官应选用什么样的力扣题

帖子 hci(海螺子)楼主 »

你想多了。这个题没人要求什么快慢指针,只要能写出来就行。也不要求证明计算复杂度。更不需要证明会形成循环,因为题目都告诉你了会形成循环,也告诉你了会如何循环。你只需要写代码就行。

这个题本质上就是看一个人会不会写循环,条件语句,知道mod是啥,还会用一个集合来记录已经见过的数字。

就这。所以这是LC Easy. 本质上,写出下面这个,就100分通过了。EM能写个这个不应该么?当然了,一半SDE候选人写不出这个,也是真的。

代码: 全选

def isHappy(self, n: int) -> bool:
    def ss(n):
        res = 0
        while n:
            digit = n % 10
            res += digit * digit
            n = n // 10
        return res

    seen = set()
    while n not in seen:
        seen.add(n)
        n = ss(n)
        if n == 1:
            return True
    return False
wangxuefei618 写了: 2025年 10月 2日 17:29

LC202这题当年刷的时候恰好研究过一些,没你想象那么简单。先别扯别的,这题哪有那么好写?刷题套路是快慢指针,训练过才懂吧?管理岗能在被面试时看出来/想出来这个?如果硬算/一个一个位数去算(假设就给定正整数1到100000),数学上可以证明“不快乐数最终会陷入一个固定循环(4→16→37→58→89→145→42→20→4)”,你让面试现场的管理岗mananger去推导这个?不然来来来你告诉我来个管理岗的遇到这题要写成什么样子你才打算让他过?

上次由 hci 在 2025年 10月 2日 17:50 修改。
原因: 未提供修改原因
heteroclinic(Heteroclinic)
著名点评
著名点评
heteroclinic 的博客
帖子互动: 47
帖子: 4151
注册时间: 2022年 10月 31日 00:35

#73 Re: 面试官应选用什么样的力扣题

帖子 heteroclinic(Heteroclinic) »

删除了前面评论,去掉感情色彩,问chatgpt 两个问题:
那么最好的static scan工具是什么?
那么leetcode上公布的“答案”是否也都通过这样 static analysis?

回复

回到 “葵花宝典(Programming)”