Tag: python
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary tree root, return whether all leaves are at the same level. Constraints n ≤ 100,000 where n …
Given an integer n, you can swap any two digits at most once. Return the maximum value of the resulting number. Constraints 0 ≤ n < 2 ** 31 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary tree root, return whether all leaves are at the same level. Constraints n ≤ 100,000 where n …
Given a list of strings sentence where each sentence is a string with single character, reverse the order of the words in the sentence. You may assume there’s no …
Teaching Kids Programming: Videos on Data Structures and Algorithms Similar to Power of Three: Teaching Kids Programming – Algorithms to Check Integer Power of Three, we can check if …