Grokking Data Structures & Algorithms for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
*a*b*c*d*

jcheenatcode

Jan 22, 2024

There are no instructions given when there is nothing to the left of a . Like in case abcd the first * has no non-star to the left of it.

1

0

Comments
Comments
tai
tai a year ago

I believe in this case you'd just return an empty string - the idea is that the "*" removes any character to the left of it, but if there's no character to its left there's nothing to remove, right? In my solution it returned an empty string and that was accepted as a s...

On this page