Skip to content

Maryam-bit/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Logo

LeetCode Solutions

This repository contains my solutions to various LeetCode problems.

What is LeetCode?

LeetCode is a platform for practicing and improving your coding skills through solving coding problems. It offers a large collection of problems in different categories such as algorithms, data structures, database, shell, and more.

How to Use This Repository

This repository is organized by problem number and name. Each solution includes the problem description, my thought process, and the code I used to solve it.

Feel free to browse the solutions and use them as a reference for your own LeetCode practice. If you find any errors or have suggestions for improving a solution, please create an issue or submit a pull request.

List of Problems

Here's a list of the problems I have solved so far:

Arrays & Strings

# Problem Solution Difficulty
1 Subtract the Product and Sum of Digits of an Integer JavaScript
2 Maximum Number of Words Found in Sentences JavaScript
3 Smallest Even Multiple JavaScript
4 Number of Good Pairs JavaScript
5 Add Two Integers JavaScript
6 Left and Right Sum Differences JavaScript
7 Final Value of Variable After Performing Operations JavaScript
8 Convert The Temperature JavaScript
9 Build Array from Permutation JavaScript
10 Concaatenation Of Array JavaScript
11 Reverse Words in a String III TypeScript
12 Squares of a Sorted Array TypeScript
13 Search Insert Position JavaScript
14 Find First Bad Version JavaScript
15 Binary Search JavaScript
16 Goal Parser Interpretation JavaScript
17 How Many Numbers Are Smaller Than the Current Number JavaScript
18 Create Target Array in a Given Order JavaScript
19 Decompress Run-Length Encoded List JavaScript
20 Number of Steps to Reduce a Number to Zero JavaScript
21 Shuffle String JavaScript
22 Count The Digits that Divide a Number JavaScript
23 Difference Between Element Sum and Digit Sum of an Array JavaScript
24 XOR Operation in an Array JavaScript
25 Sorting The Sentence JavaScript
26 Check If Two Arrays are Equal JavaScript
27 Reverse String JavaScript
28 Merge Sort Array JavaScript
29 Remove ELement JavaScript
30 Remove Duplicates from Sorted Array JavaScript
31 Remove Duplicates from Sorted Array II JavaScript
32 Majority Element JavaScript
33 Rotate Array JavaScript
34 Best Time to Buy and Sell Stock JavaScript
35 Best Time to Buy and Sell Stock II JavaScript
36 Jump Game JavaScript
37 Roman to Integer JavaScript
38 Length of Last Word JavaScript
39 Longest Common Prefix JavaScript
40 Index of First Occurance in a String JavaScript
41 Jump Game II JavaScript
42 Gas Station JavaScript
43 Candy JavaScript
44 Integer To Roman JavaScript
45 Text Justification JavaScript
46 H-index JavaScript
47 Trapping Rain Water JavaScript
48 Reverse Words in a String JavaScript
49 Zigzag conversion JavaScript
50 Insert Delete GetRandom O(1) JavaScript

Two Pointers

# Problem Solution Difficulty
1 Two Sum II - Input Array Is Sorted JavaScript
2 Valid Palindrome JavaScript
3 Is Subsequence JavaScript
4 Container With Most Water JavaScript
5 3Sum JavaScript

Sliding Window

# Problem Solution Difficulty
1 Minimum Size Subarray Sum JavaScript
2 Longest Substring Without Repeating Characters JavaScript
3 Minimum Window Substring JavaScript

Matrix

# Problem Solution Difficulty
1 Valid Sudoku JavaScript
2 Spiral Matrix JavaScript
3 Rotate Image JavaScript
4 Set Matrix Zeros JavaScript
4 Game of Life JavaScript

Hashmap

# Problem Solution Difficulty
1 Ransom Note JavaScript
2 Isomorphic Strings JavaScript
3 Word Pattern JavaScript
4 Is Anagram JavaScript
5 Group Anagram JavaScript
6 Two Sum JavaScript
7 Is Happy JavaScript
8 Contains Duplicate II JavaScript
9 Substring with Concatenation of All Words JavaScript
10 Longest Consecutive Sequence JavaScript

Intervals

# Problem Solution Difficulty
1 Summary Range JavaScript
2 Merge Intervals JavaScript
3 Insert Intervals JavaScript
4 Minimum Number of Arrows to Burst Ballon JavaScript

Stack

# Problem Solution Difficulty
1 Valid Parentheses JavaScript
2 Simplify Path JavaScript
3 Min Stack JavaScript
4 Evaluate Reverse Polish Notation JavaScript

About Me

I am a Polyglot Engineer with a passion for problem-solving and continuous learning. In my free time, I enjoy practicing my coding skills on platforms like LeetCode and contributing to open source projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published