Category: string
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string s, return the first non-repeating character in it and return its index. If it does not exist, …
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 You are given two lowercase alphabet strings s and t, both of them the same length. You can pick one …
Let’s program a commline line tool using GoLang. And we take the first parameter and perform a full permutation on it – then it outputs each permutation line by …
You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the other, append …