Teaching Kids Programming – Is Subsequence Algorithm via Two Pointer March 4, 2021 algorithms, python, string, teaching kids programming, youtube video No Comments Teaching Kids Programming: Videos on Data Structures and Algorithms Given two strings s and t, check if s is a subsequence of t. A subsequence of a string is … [Continue Reading...]
A Faster Exponentiation Algorithm by Squaring (Power Function) December 17, 2012 algorithms, math, programming languages, python No Comments If we want to compute , we can have a naive implementation by multiplication of base number x. def pow(x, n): r = 1 for _ in xrange(n): r *= … [Continue Reading...]