Tagged “algorithm”

Solving Sieve Of Eratosthenes
the Sieve of Eratosthenes algorithm is known for fining all prime numbers up to a given number, so for example if we were give the number 20 we must return an array of all prime numbers found from 0 to 20.algorithm javascript 
Two sum algorithm in Javascript
Two sum Algorithm will take in an array and a given number and will check of all pairs of number in the array that will adds up and equals the given number, So keep in mind that result will be an array of arrays.algorithm highlight complixity 
Mean Median Mode Algorithm
The Mean Median Mode Algorithm will take in a numeric array and return an object with Mean Median Mode of all the numbers in the array, you will learn some math calculation technique and functional programming, which means that you will break down your ...algorithm highlight 
Reverse words algorithm in Javascript
The reverse words algorithm is pretty easy and straight forward to implement, it will improve your critical thinking skills, the idea is to reverse each word in a given sentence, but keep in mind on every word in the string should be reversed.algorithm 
Caesar cipher encryption in Javascript
The caesar cipher is an encryption technique where we shift every letter in a given string by a given number for example the word Car would become Dbs if we shifted the letter by 1 and if we test the word Zoo it become 'App' notice that the letter Z shifted to A.algorithm 
Check for palindromes with Javascript
A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward, For example the term race car is a palindrome because it spells out the same term whether it is written forward or if it is written backward.algorithm highlight 
Implement Harmless Ransom Note
The harmless ransom note is simply a note made of words cut out from a magazine text, Imagine that a kidnapper wants to write a ransom note and he doesn't want it to be handwritten and be traced back to him so he got a magazine and cuts off a whole word and use them to create an untraceable replica of his ransom note.algorithm highlight hashtable 
Solving Fizz Buzz Using Javascript
Fizz Buzz is a common interview question where a program should print numbers from 1 to 20 but for multiples of 3 it will print Fizz instead of that number and for the multiples of five print Buzz and print FizzBuzz for the numbers which is multiple of 3 and 5 at the same time.algorithm highlight
See all tags.