力扣 LeetCode 2196. 根据描述创建二叉树 - 力扣(LeetCode) 2196. 根据描述创建二叉树 - 给你一个二维整数数组 descriptions ,其中 descriptions[i] = [parenti, childi, isLefti] 表示 parenti 是 childi 在 二叉树 中的 父节点,二叉树中各节点的值 互不相同 。此外: * 如果 isLefti == 1 ,那么 childi 就是 parenti 的左子节点。 * 如果 isLefti == 0 ,那么 childi 就是 parenti 的右子节点。 请你根据... 思路 比较常规的建树题,因为每个节点值各不相同,因此节点值可以当作每个节点的唯一标识。用哈希表维护节点值到树节点的映射,以及每个节点是否有前驱节点(没有前驱节点的节点就是根节点)。 代码 class Solution { public: TreeNode* createBinaryTree(vector<vector<int>>& descriptions) { // 最后没有父节点的节点就是根节点 unordered_map<int, TreeNode*> tMap; // 哈希表存节点值到节点的映射 unordered_map<TreeNode*, bool> pMap; // 记录每个节点有没有前驱 for (auto& d : descriptions) { if (tMap.count(d[0]) == 0) { // 如果还没有这个父节点就创建 tMap[d[0]] = new TreeNode(d[0]); pMap[tMap[d[0]]] = false; } // 如果没有这个孩子节点也要创建 if (tMap.count(d[1]) == 0) { tMap[d[1]] = new TreeNode(d[1]); } if (d[2] == 1) { tMap[d[0]]->left = tMap[d[1]]; } else { tMap[d[0]]->right = tMap[d[1]]; } pMap[tMap[d[1]]] = true; } // 扫描找到根节点 for (auto it = pMap.begin(); it != pMap.end(); it++) { if (!it->second) { return it->first; } } return nullptr; } }; 1 个帖子 - 1 位参与者 阅读完整话题
free账号,已经ping过官方网页正常连通,为什么还是一直显示重连timeout waiting for child process to exit? 11 个帖子 - 6 位参与者 阅读完整话题
我真无语了,“used by a child”?开玩笑呢? 18 个帖子 - 5 位参与者 阅读完整话题
Turn this photo into a strange vintage Soviet children's book illustration with grotesque humorous cartoon energy. Use thin shaky black ink lines, awkward anatomy, elongated limbs uncomfortable facial expressions, chaotic movement, weird proportions, sparse composition, and intentionally clumsy drawing style. Make the characters look slightly absurd nervous. and ridiculous rather than cute. Use pale faded watercolor washes, dirty paper texture, uneven coloring, washed-out muted colors, lots of empty space, careless sketchy linework, and rough old-print illustration texture Keep the background minimal and random, with small strange details and loose doodles. The mood should feel weird, humorous, slightly unsettling, and authentically like an old Eastern European children's book illustration from the 1980s. Do NOT make it polished, aesthetic, modern, cute, detailed, or realistic. Write an absurd text in English that is slightly related to the illustration, but not much, with a confusing rhyme. The font is handwritten, clumsy as an illustration style 模型 GPT 5.5 / gpt-image-2
Turn this photo into a strange vintage Soviet children's book illustration with grotesque humorous cartoon energy. Use thin shaky black ink lines, awkward anatomy, elongated limbs uncomfortable facial expressions, chaotic movement, weird proportions, sparse composition, and intentionally clumsy drawing style. Make the characters look slightly absurd nervous. and ridiculous rather than cute. Use pale faded watercolor washes, dirty paper texture, uneven coloring, washed-out muted colors, lots of empty space, careless sketchy linework, and rough old-print illustration texture Keep the background minimal and random, with small strange details and loose doodles. The mood should feel weird, humorous, slightly unsettling, and authentically like an old Eastern European children's book illustration from the 1980s. Do NOT make it polished, aesthetic, modern, cute, detailed, or realistic. Write an absurd text in English that is slightly related to the illustration, but not much, with a confusing rhyme. The font is handwritten, clumsy as an illustration style 模型 GPT 5.5 / gpt-image-2
试了一个雅思口语part 3的题目: What can today’s children do to become famous? 回答由gpt-5-mini返回: Children today can become famous in several ways. Some are born into fame because their parents are celebrities and they inherit public attention. Others gain recognition through talent — for example, by posting videos on platforms like YouTube or TikTok, performing on talent shows, or excelling in sports or music. Social media makes it easier to go viral, and a funny or unusual video can spread rapidly. Parents’ connections and professional management can also accelerate a child’s public profile. However, becoming famous early can bring pressure and a loss of privacy, so it has both advantages and risks. 我把回答又拿去给不同的模型批改,结论差得都挺远啊。 gpt免费版 给的分数是 7/7.5 ,流畅度-词汇-语法-发音(X)给的分别是7.5-8-7.5/8-X gemini pro 给的 8.5/9 ,三项给的分别是9-9-8.5/9 deepseek 给的 6.5 ,三项分别是6.5-7-6.5 怎么分段差那么远啊?有没有懂的佬来说一下谁说的更接近真实情况啊 还有哪些在语言写作表达上更优的模型可以试一下? 1 个帖子 - 1 位参与者 阅读完整话题
Reconnecting… 2/5 timeout waiting for child process to exit 每次在windows初次使用codex的时候都会出现这个问题,把沙箱关闭了也解决不了,不知道该怎么操作了 1 个帖子 - 1 位参与者 阅读完整话题