Thanks to visit codestin.com
Credit goes to github.com

Skip to content
View pedroglcbarros's full-sized avatar
🚧
Building...
🚧
Building...

Block or report pedroglcbarros

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. FizzBuzz Algorithm FizzBuzz Algorithm
    1
    function fizzBuzz () {
    2
      for (let i = 1; i <= 100; i++) {
    3
        if (i % 3 === 0 && i % 5 === 0) {
    4
          console.log("FizzBuzz");
    5
        } else if (i % 3 === 0) {
  2. Sequential Search Algorithm Sequential Search Algorithm
    1
    function sequentialSearch (array, query) {
    2
      isItemFound = false;
    3
      
    4
      for (let i = 0; i < array.length; i++) {
    5
        if (array[i] === query) return true;
  3. Palindrome Algorithm Palindrome Algorithm
    1
    function isPalindrome (word) {
    2
     
    3
      invertedString = [];
    4
      
    5
      for (let i = word.length - 1; i >= 0; i--) {
  4. Anagram Algorithm Anagram Algorithm
    1
    function isAnagram (word1, word2) {
    2
    
                  
    3
      return word1.toLowerCase().split("").sort().join("") === word2.toLowerCase().split("").sort().join("")
    4
    
                  
    5
    }
  5. Character Counting Algorithm Character Counting Algorithm
    1
    function strCharCount (str) {
    2
    
                  
    3
      const chars = {};
    4
    
                  
    5
      for (let char of str) {
  6. String Inversion Algorithm String Inversion Algorithm
    1
    function invertString (str) { 
    2
      invertedString = [];
    3
      for (let i = str.length - 1; i >= 0; i--) {
    4
        invertedString.push(str[i])
    5
      }