Skip to content

rajatdua/leetcode-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-js

JS only solutions to leetcode problems.

Easy

Number Problem Name Done
1 Two Sum
9 Palindrome Number
21 Merge Two Sorted Lists
26 Remove Duplicates From Sorted Array
27 Remove Element
28 Implement strStr
88 Merge Sorted Array
169 Majority Element
404 Sum Of Left Leaves
412 Fizz Buzz
276 Number Complement
728 Self Dividing Number
771 Jewels And Stones
832 Flipping An Image
977 Squares Of A Sorted Array
1108 Defanging An IP Address
1185 Day Of The Week
1221 Split A String In Balanced Strings
1281 Subtract The Products And Sum Of Digits Of An Integer
1351 Count Negative Numbers In A Sorted Matrix
1365 How Many Numbers Are Smaller Than The Current Number
1417 Reformat The String
1480 Running Sum Of 1D Array
1486 XOR Operation In An Array
1748 Sum Of Unique Elements

Medium

Number Problem Name Done
2 Add Two Numbers
3 Longest Substring Without Repeating Characters
11 Container With Most Water
15 3 Sum
31 Next Permutation
34 Find Fist And Last Position Of Element In Sorted Array
78 Subsets
162 Find Peak Element
238 Product Of Array Except Self
647 Palindromic Substring
735 Asteroid Collision
1561 Maximum Number Of Coins You Can Get
2149 Rearrange Array Elements By Sign

Hard

Number Problem Name Done
4 Median Of Two Sorted Arrays
51 N-Queens

Utilities

  1. List Node
    const { ListNode } = require("../utils");
    const l1 = new ListNode(1);
  2. Stack
    const { Stack } = require("../utils");
    let instance = new Stack();
    // instance.push(1);
    // instance.pop();
    // instance.isEmpty();
    // instance.peek();
    // instance.printStack();

About

JS only solutions to leetcode problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published