Skip to content

Commit

Permalink
auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CyC2018 committed Nov 17, 2020
1 parent fe29962 commit 236b85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion notes/58.1 翻转单词顺序列.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Output:

## 解题思路

先旋转每个单词再旋转整个字符串
先翻转每个单词再翻转整个字符串

题目应该有一个隐含条件就是不能用额外的空间虽然 Java 的题目输入参数为 String 类型需要先创建一个字符数组使得空间复杂度为 O(N),但是正确的参数类型应该和原书一样为字符数组并且只能使用该字符数组的空间任何使用了额外空间的解法在面试时都会大打折扣包括递归解法

Expand Down
2 changes: 2 additions & 0 deletions notes/58.2 左旋转字符串.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## 题目描述

将字符串 S 从第 K 位置分隔成两个子字符串并交换这两个子字符串的位置

```html
Input:
S="abcXYZdef"
Expand Down

0 comments on commit 236b85a

Please sign in to comment.