Skip to content

Files

Latest commit

3fd2c6d · Oct 17, 2022

History

History
23 lines (20 loc) · 1.03 KB

README.md

File metadata and controls

23 lines (20 loc) · 1.03 KB

Algorithms and Data Structures

Common data structures, algorithms, design thinking, dynamic programming

Requirements - Install Node.js

Once Node.js is installed, individual scripts can be executed by running:

Node filename

Here is the list of snippets solved in this repository

  • Reverse a String
  • Validate a palindrome
    • A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar.
  • Capitalise the first letter of every word of a sentence
  • Find most common character in a string
  • FizzBuzz test
  • Length of longest word in a string
  • Anargam
    • An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
    • For example, "Listen" = "Silent", "evil" = "vile", "restful" = "fluster"
  • Generate all combinations of a string
  • Generate all combinations of an array
  • Add all numbers entered as function parameters
  • Even and odd numbers sum from an array