📚 Javascript Algorithms And Data Structures
-
Updated
Apr 27, 2024 - JavaScript
📚 Javascript Algorithms And Data Structures
Implemented solutions for coding challenges & web app projects of 1800 hour long full stack developer roadmap from freeCodeCamp.
Solving exercises from Freecodecamp.org using Elixir programming language. Includes benchmarks and tests for every functions.
Here are the codes that I wrote while doing the "JavaScript Algorithms and Data Structures" course on FreeCodeCamp.com. Hope it will help you get through any problem you might face while solving the problems. PEACE :)
My solutions to the JavaScript Algorithms on freeCodeCamp.
Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), payment as the second argument (cash), and cash-in-drawer (cid) as the third argument.
Return true if the passed string looks like a valid US phone number.
Write a function which takes a ROT13 encoded string as input and returns a decoded string.
Convert the given number into a roman numeral.
Return true if the given string is a palindrome. Otherwise, return false. A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
According to Kepler's Third Law, the orbital period T of two point masses orbiting each other in a circular or elliptic orbit is:
Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum.
Check if the predicate (second argument) is truthy on all elements of a collection (first argument).
Return an English translated sentence of the passed binary string. The binary string will be space separated.
Flatten a nested array. You must account for varying levels of nesting.
Given the array arr, iterate through and remove each element starting from the first element (the 0 index) until the function func returns true when the iterated element is passed through it. Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array
Given a positive integer num, return the sum of all odd Fibonacci numbers that are less than or equal to num.
Convert the characters &, <, >, " (double quote), and ' (apostrophe), in a string to their corresponding HTML entities.
Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays. In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array.
freeCodeCamp - JavaScript Algorithms and Data Structures (2022)
Add a description, image, and links to the algorithm-scripting topic page so that developers can more easily learn about it.
To associate your repository with the algorithm-scripting topic, visit your repo's landing page and select "manage topics."