Skip to content

Commit a5a2ea3

Browse files
authored
Merge pull request gzc426#226 from zjukk/patch-4
Create zjukk.md
2 parents b301888 + 235b2b8 commit a5a2ea3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

2018.12.2-leetcode58/zjukk.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```
2+
class Solution {
3+
public:
4+
int lengthOfLastWord(string s) {
5+
istringstream is(s);
6+
string tmp;
7+
while (is >> tmp);
8+
return tmp.size();
9+
}
10+
};
11+
```

0 commit comments

Comments
 (0)