Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【手写篇 - Day 13】去除字符 #14

Open
MarsPen opened this issue Apr 17, 2022 · 0 comments
Open

【手写篇 - Day 13】去除字符 #14

MarsPen opened this issue Apr 17, 2022 · 0 comments

Comments

@MarsPen
Copy link
Owner

MarsPen commented Apr 17, 2022

题目描述

给定只含有a、b 和 c的字符串,请去掉其中的b 和 ac。

removeChars('ab') // 'a'
removeChars('abc') // ''
removeChars('cabbaabcca') // 'caa'

你的代码的时间和空间复杂度是?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant