• Stars
    star
    237
  • Rank 169,885 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DSA in JavaScript ✅

Data Structure and Algorithm in JavaScript and TypeScript License Build Status

JavaSctipt

  • Max Char
  • Array Chunking
  • Anagram 1
  • Anagram 2
  • Capitalization
  • Chunk Array
  • FizzBuzz
  • Integer Reversal
  • LinkedList
  • Palindrom
  • Queue Weaving
  • Queue
  • Stack
  • String Reversal
  • Circular Linked List
  • Bubble Sort
  • Selection Sort
  • Merge Sort
  • Liner Search
  • Binary Search
  • Check For Pair in Array with Sum as X : X is any Arbitrary Value
  • Largest Consecutive Sum in Array
  • Leader In Array
  • Longest Increasing Sub-Sequence
  • Max Sum Such That No Two Element Are Adjacent
  • Segregate 0s and 1s in an array
  • Sort an array of 0's 1's and 2's in O(n);
  • Find Two Element in Array Whose Sum is Closest to Zero
  • Find Next Greater Element in Array
  • Find Nth Node from end : LinkedList
  • Fibonacci
  • Delete Given Node from Linkeded List
  • Find Middle Node in LinkedList
  • Finding Second Largest Element in Array in O(n)
  • How do you find the missing number in a given integer array of 1 to 100
  • Hash Password
  • Convert Map to Object
  • Find Unique in Array
  • BST
  • DFT
  • BFT
  • Level Width of Tree
  • BST Validation
  • etc..

TypeScript

  • Selection Sort
  • Max Char
  • Array Chunking
  • Anagram 1
  • Anagram 2
  • Capitalization
  • Chunk Array
  • FizzBuzz
  • Integer Reversal
  • LinkedList
  • Palindrom
  • Queue Weaving
  • Queue
  • Stack
  • String Reversal
  • Circular Linked List
  • Bubble Sort
  • Selection Sort
  • Merge Sort
  • Liner Search
  • Binary Search
  • Check For Pair in Array with Sum as X : X is any Arbitrary Value
  • Largest Consecutive Sum in Array
  • Leader In Array
  • Longest Increasing Sub-Sequence
  • Max Sum Such That No Two Element Are Adjacent
  • Segregate 0s and 1s in an array
  • Sort an array of 0's 1's and 2's in O(n);
  • Find Two Element in Array Whose Sum is Closest to Zero
  • Find Next Greater Element in Array
  • Find Nth Node from end : LinkedList
  • Fibonacci
  • Delete Given Node from Linkeded List
  • Find Middle Node in LinkedList
  • Finding Second Largest Element in Array in O(n)
  • How do you find the missing number in a given integer array of 1 to 100
  • Hash Password
  • Convert Map to Object
  • Find Unique in Array
  • etc..

Note: All Above Algorithm will also be written in Typescript in future.
Few Algo not mentioned here in Readme but Available in repo (Only JS => Part of leetcode)

Multiple Ways To Run JavaSctipt Code

  • node filename.js
  • yarn run js filename.js
  • nodemon filename.js
  • npm run js filename.js
  • npm run-script filename.js

Multiple Ways To Run Typescript Code

  • ts-node filename.ts
  • yarn run ts filename.ts
  • npm run ts filename.ts
  • npm run-script filename.ts

Running Prettier on All File

  • npm install prettier -g
  • prettier --write *.js
  • prettier --write *.ts

Note : More Algo solution from Leetcode.com is been Maintained in different Repo : https://github.com/yogain123/leetCode-direct or inside folder leetcode

Watchout Alogs

  • CheckForPairinArrayWithSumAsX.js
  • LargestConsecutiveArraySum.js
  • LeaderInArray.js
  • LongestIncreasingSubSequence.js
  • selectionSort.js
  • anagram2.js
  • binarySearch.js
  • chunk.js
  • linkedlist.js
  • stack.js
  • queue.js

LICENSE: MIT

Author: Yogendra Saxena

More Repositories

1

Workers-Pool

Workers Pooling in NodeJS
JavaScript
15
star
2

VSCode-Extensions

A-to-Z List of Useful JavaScript VSCode Extensions
JavaScript
15
star
3

Mock-Backend

Mocking Backend Server
10
star
4

Drum-Kit

Drum 🥁 Kit
JavaScript
5
star
5

leetCode-direct

Leetcode Solutions in JS
JavaScript
3
star
6

GitHub-Project-Downloader

A Spring Boot Project
Shell
3
star
7

DSA-IN-JAVA

Algorithms in JAVA
Java
3
star
8

Web-Workers

Web Workers - Spawn Threads
JavaScript
3
star
9

twitter-client

Twitter find Mutual Friends: Client
JavaScript
3
star
10

Hodlers

API's for Auctioning things using Bitcoin
JavaScript
2
star
11

debounce-throttling

Debouncing and Throttling in Javascript
JavaScript
2
star
12

Finance-Calcy

Financial Calculator
JavaScript
2
star
13

leetcode-casts

Leetcode Solutions in JavaScript [DEPRECATED]
JavaScript
2
star
14

Finger-Print-WindowsOs

Java
1
star
15

proxy-server

proxy-server in node
JavaScript
1
star
16

VideoGaze-YoutubeAPI-ReactJS

JavaScript
1
star
17

twitter-server

Twitter find Mutual Friends: Server
JavaScript
1
star
18

React-Redux-Routing

JavaScript
1
star
19

Spring-REST-Call

Java
1
star
20

Customer-Relation-Management-Spring

Java
1
star
21

Auth0-demo

Auth0 Demo App
JavaScript
1
star
22

Secure-Form

ANGULAR JS , ROUTING , SPRING-HIBERNATE WITH MVC
Java
1
star
23

Blooming-Beacon-Android

Java
1
star
24

Storybook-Demo

Storybook Basic Setup
CSS
1
star
25

Authentication-Angular-4

TypeScript
1
star
26

Asymmetric-Encryption

Public Key Encryption
JavaScript
1
star
27

yogain123.github.io

Personal Website
CSS
1
star
28

Weather-Sparklines-API-ReactJS

JavaScript
1
star
29

To-Do-Application-Using-Spring-MVC

Java Spring MVC
Java
1
star
30

Geo-Location-Restricted-Wifi-Access

Java
1
star
31

Siege-Server

Benchmark Node Server using Siege
JavaScript
1
star
32

IP-Location-Finder

Java
1
star
33

Hooks

All React Hooks Implementation
JavaScript
1
star
34

NodeJS-REST-Call

NodeJS, ExpressJS, AngularJS, MongoDB
JavaScript
1
star
35

React-Webrtc2

Real Time Video Communication Using OpenTok API
JavaScript
1
star
36

Customer-Relation-Management-NODEJS

HTML
1
star
37

Cast-Javascript

JavaScript
1
star
38

CRM-Angular-4

HTML
1
star
39

Flux_To_Redux

Migrating App from FLUX Store to REDUX Store
JavaScript
1
star
40

UnloadJS

Micro Utility for JavaScript
JavaScript
1
star
41

Speakers-Stage

API's For People Sharing Views, Follow others etc.
JavaScript
1
star
42

dockering-node

Dockering Basic Node app and linking it with mongo image and Logging Errors in Bugsnag
JavaScript
1
star
43

React-SSR

React Server Side Rendering
JavaScript
1
star