Category: python
Given an alphanumeric string s, return the second largest numerical digit that appears in s, or -1 if it does not exist. An alphanumeric string is a string consisting …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary tree root, return the number of nodes that are an only child. A node x is an …
You are given a string word that consists of digits and lowercase English letters. You will replace every non-digit character with a space. For example, “a123bc34d8ef34″ will become ” …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given a string s and an integer k. Return the number of palindromes you can construct of length …
In Python, given a dictionary object e.g: data = {"abc": 2, "cde": 10, "def": -1} What are the ways to return the key which has corresponding largest (or smallest) …