Skip to content

Commit e396343

Browse files
committed
update feature description, update navbar companies
1 parent 1545f7d commit e396343

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ A free, open source browser extension that adds video solutions, company tags, a
1111
[<img src="https://user-images.githubusercontent.com/3750161/233201810-d1026855-0482-44c8-b1ec-c7247134473e.png" height="40" alt="Chrome">](https://chrome.google.com/webstore/detail/leetcode-explained/cofoinjfjcpgcjiinjhcpomcjoalijbe)
1212
### Features
1313

14-
1️⃣ Adds the top 5 youtube solution videos into each [problem](https://leetcode.com/problems/two-sum/solutions)
14+
1️⃣ Solution videos: Adds the top 5 youtube solution videos into each [problem](https://leetcode.com/problems/two-sum/solutions)
1515

16-
2️⃣ Adds the top 5 companies that ask each [problem](https://leetcode.com/problems/two-sum/description)
16+
2️⃣ Company tags: Adds the top 5 companies that ask each [problem](https://leetcode.com/problems/two-sum/description)
1717

1818
3️⃣ Elo Rating: Adds more accurate ratings to problems used in weekly/biweekly contests (~1500 problems supported)
1919

src/problems-by-company/company.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ select {
109109
text-align: center;
110110
}
111111

112-
#Title,
112+
#Title {
113+
min-width: 300px;
114+
}
115+
113116
#Frequency {
114-
min-width: 200px;
117+
min-width: 150px;
115118
}

src/problems-by-company/company.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const solutions = [] as { id: number, title: string, url: string }[];
22

33
let companyName = 'Amazon';
44
const companies = [
5-
'Adobe', 'Apple', 'Bloomberg', 'Cisco', 'Facebook', 'Google', 'Microsoft', 'Spotify'
5+
'Adobe', 'Amazon', 'Apple', 'Facebook', 'Google', 'Microsoft', 'Netflix', 'Oracle', 'Uber'
66
];
77

88
async function main() {
@@ -235,11 +235,15 @@ function rebuildTable() {
235235
difficultyCell.innerText = difficultyText || 'N/A';
236236
difficultyCell.style.color = color;
237237
difficultyCell.style.fontWeight = 'bold';
238-
difficultyCell.style.fontSize = '10px';
238+
difficultyCell.style.fontSize = '12px';
239239
difficultyCell.style.borderRadius = '5px'; // Apply border radius
240240

241241
row.insertCell(2).innerHTML = `<a href="${solution.url}" target="_blank">${solution.title}</a>`;
242-
row.insertCell(3).innerText = (solution.acceptance ? (solution.acceptance * 100).toFixed(2) + '%' : 'N/A'); // New column for acceptance
242+
243+
// Add acceptance rating
244+
const acceptanceCell = row.insertCell(3);
245+
acceptanceCell.innerText = (solution.acceptance ? (solution.acceptance * 100).toFixed(2) + '%' : 'N/A'); // New column for acceptance
246+
acceptanceCell.style.fontSize = '12px';
243247

244248
// Add frequency as a bar
245249
const frequencyCell = row.insertCell(4);

0 commit comments

Comments
 (0)