Category: algorithms
June 23, 2021
algorithms, BASH, bash script, Combination, math, Permutation, programming languages, Recursion, recursive, string
Swap Two Characters in BASH In BASH, we can use “${#string}” to get the length of a string. And in a function, we use “local” keyword to declare local …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two lowercase alphabet strings s and t, both of them the same length. You can pick one …
Given an integer numRows, return the first numRows of Pascal’s triangle. In Pascal’s triangle, each number is the sum of the two numbers directly above it as shown: Example …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a positive integer n, return whether n can be written as the sum of distinct positive factorial numbers. Example …