Author: ACMer
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: …
As you may know, the famous factorial can be done in Recursion via: where BASH supports function declaration and recursion – just like other modern programming language. See below …
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 …