这是 2026-10-23 的上一版评测(LiveCodeBench 最新 35 题)。最新的阶梯评测见 首页。

题目 › 3770

Lexicographically Smallest Generated String

LeetCode 周赛 439 · 2025-03-01 · 困难

构造长度为 n+m−1 的字符串,使 str1 为 T 的位置都以 str2 开头、为 F 的位置都不以 str2 开头;求字典序最小的结果,不存在时返回空串。

查看原题