Skip to content

This repository for all problems and challenges I solved. all the solutions here use JavaScript

Notifications You must be signed in to change notification settings

tarekelkanaria/problem-solving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem Solving

Demo-Preview

This is some of problems and its solutions

For all solutions here I use JavaScript, the difficulty will vary depending on the time you visit and it'll be updated permanently

Author

Tarek Elkanaria

Table of Contents

leetcode Problem 383

  • Ransom Note

     Hash Map
    

leetcode Problem 1480

  • Running Sum of 1d Array

    prefix sum array
    

leetcode Problem 1672

  • Richest Customer Wealth

leetcode Problem 876

  • Middle of the Linked List

leetcode Problem 1342

  • Number of Steps to Reduce a Number to Zero

leetcode Problem 412

  • Fizz Buzz

leetcode Array Problems

  • Problem 485 - Max Consecutive Ones
  • Problem 1295 - Find Numbers with Even Number of Digits
  • Problem 1089 - Duplicate Zeros
  • Problem 88 - Merge Sorted Array
  • Problem 27 - Remove Element
  • Problem 26 - Remove Duplicates from Sorted Array
  • Problem 1346 - Check If N and Its Double Exist
  • Problem 941 - Valid Mountain Array
  • Problem 1299 - Replace Elements with Greatest Element on Right Side
  • Problem 283 - Move Zeroes
  • Problem 905 - Sort Array By Parity
  • Problem 1051 - Height Checker
  • Problem 414 - Third Maximum Number
  • Problem 448 - Find All Numbers Disappeared in an Array
  • Problem 977 - Squares of a Sorted Array

leetcode Array and string Problems

  • Problem 724 Find Pivot Index
  • Problem 747 Largest Number At Least Twice of Others
  • Problem 66 Plus one
  • Problem 498 Diagonal Traverse
  • Problem 54 Spiral Matrix
  • Problem 118 Pascal's Triangle
  • Problem 67 Add Binary
  • Problem 28 Find the Index of the First Occurrence in a String
  • Problem 14 Longest Common Prefix
  • Problem 344 Reverse String
  • Problem 561 Array Partition
  • Problem 167. Two Sum II - Input Array Is Sorted
  • Problem 209 Minimum Size Subarray Sum
  • Problem 189 Rotate Array
  • Problem 119 Pascal's Triangle II
  • Problem 151 Reverse Words in a String
  • Problem 557 Reverse Words in a String III

leetcode Hash tables problems

  • Problem 217 Contains Duplicate
  • Problem 136 Single Number
  • Problem 349 Intersection of Two Arrays
  • Problem 202 Happy Number
  • Problem 1 Two Sum
  • Problem 205 Isomorphic Strings
  • Problem 599 Minimum Index Sum of Two Lists
  • Problem 387 First Unique Character in a String
  • Problem 350 Intersection of Two Arrays II
  • Problem 219 Contains Duplicate II
  • Problem 49 Group Anagrams
  • Problem 36 Valid Sudoku
  • Problem 771 Jewels and Stones
  • Problem 3 Longest Substring Without Repeating Characters
  • Problem 454 4 Sum II

Different problems

  • Problem sum even length subarrays
  • Problem find special number

About

This repository for all problems and challenges I solved. all the solutions here use JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published