Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

58. Length of Last Word #37

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

Merged
zwfang merged 1 commit into master from len-of-last-word
Jan 2, 2019
Merged

58. Length of Last Word #37

zwfang merged 1 commit into master from len-of-last-word
Jan 2, 2019

Conversation

Copy link
Collaborator

@zwfang zwfang commented Jan 2, 2019

https://leetcode.com/problems/length-of-last-word/

Given a string s consists of upper/lower-case alphabets and empty space characters ' ',
return the length of last word in the string.
If the last word does not exist, return 0.

Note: A word is defined as a character sequence consists of non-space characters only.

@zwfang zwfang added string A string is used to represent text. It is comprised of a set of characters. Easy Coefficient of difficulty easy labels Jan 2, 2019
Copy link

codecov bot commented Jan 2, 2019
edited
Loading

Codecov Report

Merging #37 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@
## master #37 +/- ##
==========================================
+ Coverage 99.28% 99.29% +0.01% 
==========================================
 Files 78 79 +1 
 Lines 1384 1399 +15 
==========================================
+ Hits 1374 1389 +15 
 Misses 6 6 
 Partials 4 4
Impacted Files Coverage Δ
src/0058_length_of_last_word/len_of_last_word.go 100% <100%> (ø)

@zwfang zwfang merged commit 39054d6 into master Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Easy Coefficient of difficulty easy string A string is used to represent text. It is comprised of a set of characters.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /