中科紫东太初
一面时间
2026_0716-14:15
一面内容
-
自我介绍
-
Vue 和 React 哪个更熟悉一点?
-
手撕 React 打字机效果:先写
setTimeout版本,再写setInterval版本。 -
箭头函数返回值区别:
const a1 = () => 1; const a2 = () => { 1; }; const a3 = () => { return 1; }; -
实习经历中学到了哪些东西?
一面代码题:React 打字机效果
import { useEffect, useState } from "react";
function App() {
const [result, setResult] = useState("");
const stringChar = "Hello, World!";
useEffect(() => {
let index = 0;
const timer = setInterval(() => {
setResult((prev) => prev + stringChar[index]);
index++;
if (index >= stringChar.length) {
clearInterval(timer);
}
}, 100);
return () => {
clearInterval(timer);
};
}, []);
return (
<div>
<h1>{result}</h1>
</div>
);
}
export default App;
中科紫东太初二面
二面时间
2026_0717-10:30
二面内容
- 自我介绍
- 低代码平台是从零开始的,还是在半成品基础上继续开发的?
- SDD + TDD 框架详情
- MCP Server 是怎么写的?
- 怎么优化弱网条件下的用户体验?
- SSE 和 WebSocket 的区别
- SSE 流式输出怎么终止?
- 手撕:找出数组中第二大的数字
二面代码题:找出数组中第二大的数字
function findSecondMaxNum(arr) {
const uniqueArr = [...new Set(arr)];
if (uniqueArr.length < 2) {
return undefined;
}
let max = -Infinity;
let secondMax = -Infinity;
for (const current of uniqueArr) {
if (current > max) {
secondMax = max;
max = current;
} else if (current > secondMax && current < max) {
secondMax = current;
}
}
return secondMax === -Infinity ? undefined : secondMax;
}
console.log(findSecondMaxNum([1, 4, 5, 6, 7, 1, 2, 3, 4, 5])); // 6
中科紫东太初 HR 面
HR 面时间
2026_0721-10:00
HR 面内容
- 介绍薪资
- 说明公司情况