Skip to content

Commit 797e2fd

Browse files
committed
add link to other platform solutions
1 parent d8cd225 commit 797e2fd

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@
2222
Most of the problems are solved by using the <a href="https://github.com/alexprut/Algo">Algo</a> library.
2323
</td>
2424
</tr>
25+
<tr>
26+
<td>
27+
<a href="https://github.com/alexprut/LeetCode">
28+
<img src="https://github.com/alexprut/LeetCode/raw/master/leetcode-logo.png" width="80" height="auto"/>
29+
</a>
30+
</td>
31+
<td>
32+
Solutions to <a href="https://github.com/alexprut/LeetCode">LeetCode</a> problems.
33+
</td>
34+
</tr>
35+
<tr>
36+
<td>
37+
<a href="https://github.com/alexprut/InterviewBit">
38+
<img src="https://github.com/alexprut/InterviewBit/raw/master/interviewbit-logo-small.png" width="80" height="auto"/>
39+
</a>
40+
</td>
41+
<td>
42+
Solutions to <a href="https://github.com/alexprut/InterviewBit">InterviewBit</a> problems.
43+
</td>
44+
</tr>
2545
</table>
2646

2747
The problem solutions and implementations are entirely provided by [Alex Prut](https://www.hackerrank.com/alexprut).

script.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function getList(domain, subDomain) {
2+
$('.challenge-list-item').each(function (index) {
3+
var item = $(this)
4+
var title = item.find('.challengecard-title')
5+
.clone()
6+
.children()
7+
.remove()
8+
.end()
9+
.text()
10+
var difficulty = item.find(".difficulty").text();
11+
var score = item.find(".max-score").text().replace("Max Score: ", "");
12+
var link = "https://www.hackerrank.com" + item.attr("href");
13+
console.log(
14+
"|" +subDomain+ "|[" +title+ "](" +link+ ")|" +difficulty+ "|" +score+ "|[Solution.java](" +domain+ "/" +subDomain+ "/" +title+ "/Solution.java)|"
15+
)
16+
})
17+
}

0 commit comments

Comments
 (0)