Category: algorithms
Teaching Kids Programming: Videos on Data Structures and Algorithms The Counter() from collections is a handy method allows us to count the elements and their frequencies in an iterable: …
Given a list of integers nums, return the length of the longest contiguous sublist where all its elements are distinct. Constraints n ≤ 100,000 where n is the length …
Teaching Kids Programming: Videos on Data Structures and Algorithms In Python, we can use the string.find method to search for a character: return the index of the first occurence …
Teaching Kids Programming: Videos on Data Structures and Algorithms ROT13 Cipher transform a text to a disguised version that only uppercase and lowercase characters are rotated 13 positions: i.e. …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a list of integers nums, return the number of sublists where the first element and the last element have …