Actions
text_question #15016
openanswer_id= desc=- 给定两 name=找不同 pod_templa grading_ru
Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/15/2025
Due date:
% Done:
0%
Estimated time:
name:
找不同
score:
10.0
topic_type:
编程题
...
tag:
desc:
'- 给定两个字符串 `s1` 和 `s2`
- `s1` 中的字符无重复,`s2` 由 `s1` 随机重排
- 然后在随机位置添加一个字母, 该字母在 s2 中唯一
- 随机重排及插入字母步骤不需要实现,直接通过参数传入
- 实现代码,找出在 `s2` 中被添加的字母。
测试数据 1:
```python
输入:s1 = "abcd", s2= "abcde"
输出:"e"
解释:''e'' 是那个被添加的字母。
```
测试数据 2:
```python
输入:s1 = "asdfjklhg", s2 = "kjdhlagsfy"
输出:"y"
解释:''y'' 是那个被添加的字母。
```
'
is_delete:
false
answer_id:
15015
tags:
- 11052
grading_rules_id:
14975
pod_template_id:
11364
No data to display
Actions