Skip to content

Commit 2e8a07b

Browse files
committed
add question 58 length of last word
1 parent b906a5c commit 2e8a07b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

1-100/58-length-of-last-word.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
Author :- Rishabh Jain <contact@rishabh1403.com>
3+
Solution for :- https://leetcode.com/problems/length-of-last-word/
4+
blog for this code :- https://rishabh1403.com/posts/coding/leetcode/2020/03/leetcode-length-of-last-word
5+
youtube video :- https://youtu.be/2PQ4vtnLfnw
6+
*/
7+
18
// library methods
29

310
var lengthOfLastWord = function (s) {

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Solutions of all the questions from Leetcode in JavaScript.
1616

1717
- 20.Valid Parentheses - [Question](https://leetcode.com/problems/valid-parentheses/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/1-100/20-valid-parentheses.js) | [Blog](https://rishabh1403.com/leetcode-solution-of-valid-parentheses-in-javascript)
1818

19+
- 58.Length of Last Word - [Question](https://leetcode.com/problems/length-of-last-word/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/1-100/58-length-of-last-word.js) | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/03/leetcode-length-of-last-word) | [Youtube Video](https://youtu.be/2PQ4vtnLfnw)
20+
1921
- 167.Two Sum-II - [Question](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/101-200/167-two-sum-ii.js) | [Blog](https://rishabh1403.com/leetcode-solution-of-two-sum-ii-in-javascript) | [Youtube Video](https://www.youtube.com/watch?v=MjxN8HIzIRc)
2022

2123
- 242.Valid Anagram - [Question](https://leetcode.com/problems/valid-anagram/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/201-300/242-valid-anagram.js) | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/03/leetcode-valid-anagram) | [Youtube Video](https://youtu.be/7z25qqUCOUE)

0 commit comments

Comments
 (0)