Skip to content

Common algorithm practice using Javascript, helpful for people who want find Javascript related job.

Notifications You must be signed in to change notification settings

hkbarton/algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm practice using Javascript

As Javascript become more and more popular, there are many Javascript related jobs (Front-End, NodeJS...), so maybe you'll be asked some basic computer science question during the interview. It's cool if you can finish these algorithm and data structure puzzle with Javascript. Even though you will not attend any interview recently, learning some basic CS knowlege is still good for Front-End web developer. So I write some basic algorithms using Javascript, and also hope other guys can contribute to, and make a Javascript algorithm libray for us who love Javascript!

LeetCode

LeetCode is a good place to prepare your technical interview, however LeetCode's online judge only support C++, Java and Python. I include some puzlles from LeetCode in here, all of them can be running as a standard NodeJS process which can accept input from stdin and output to the stdout. I put them under /LeetCode/ dir, for example if you want run JumpGame puzzle of LeetCode, you just need type this in shell: node LeetCode/JumpGame.js and then type data in stdin, press Ctrl+D to end the input, and the algorithm should be start running and give you the result in stdout.

Basic data structure and algorithm

I also write some basic algorithm and data structure using Javascript, put them under /Others/ folder. Still not cover enough CS basic knowlege, hope you guys can contribute more in future.

Helper code

Under root folder, there are some code files can be used as teamplate or helper class to resolve LeetCode puzzle, they are:

These helper code are still not perfect, they are very simple now, hope others can modify them and give us a better version.

About

Common algorithm practice using Javascript, helpful for people who want find Javascript related job.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published