Skip to content

Commit 90db16d

Browse files
committed
add new draft
1 parent 5228794 commit 90db16d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
Author :- Rishabh Jain <contact@rishabh1403.com>
3+
Solution for :- https://leetcode.com/problems/transpose-matrix/
4+
blog for this code :- https://rishabh1403.com/posts/coding/leetcode/2020/04/leetcode-transpose-matrix
5+
youtube video :- https://youtu.be/cMnPxDJlFIc
6+
*/
7+
8+
var decompressRLElist = function (nums) {
9+
const res = [];
10+
11+
for (let i = 0; i < nums.length; i += 2) {
12+
for (let j = 0; j < nums[i]; j++) {
13+
res.push(nums[i + 1])
14+
}
15+
}
16+
17+
return res;
18+
};

README.md

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

5757
- 1281.Subtract the Product and Sum of Digits of an Integer - [Question](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/1201-1300/1281-subtract-product-sum-of-digits.js) | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/04/leetcode-subtract-product-sum-of-digits-of-number) | [Youtube Video](https://youtu.be/BL6VoKQqlmM)
5858

59+
- 1313.Decompress Run-Length Encoded List - [Question]() | [Source Code]() | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/04/leetcode-subtract-product-sum-of-digits-of-number) | [Youtube Video]()
60+
5961
- 1342.Number of Steps to Reduce a Number to Zero - [Question](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/1301-1400/1342-reduce-numer-to-zero.js) | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/03/leetcode-number-of-steps-to-reduce-a-number-to-zero) | [Youtube Video](https://www.youtube.com/watch?v=sQYhrMf1VMc)
6062

6163
- 1365.How Many Numbers Are Smaller Than the Current Number - [Question](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/) | [Source Code](https://github.com/rishabh1403/leetcode-javascript-solutions/blob/master/1301-1400/1365-how-many-numbers-smaller-than-current-number.js) | [Blog](https://rishabh1403.com/posts/coding/leetcode/2020/03/leetcode-how-many-numbers-smaller-than-current-number) | [Youtube Video](https://youtu.be/a2RWy9kqOhs)

0 commit comments

Comments
 (0)