Tag: python
You are given integers n, e, o, t. You have n dollars in principal that you invested in the stock market. Given the stock market alternates between first returning …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a Parenthese (aka brackets) string that only contains “(” or “)” return if it is a valid Parenthese i.e. …
Teaching Kids Programming: Videos on Data Structures and Algorithms In a few days ago, we talked about how to merge two sorted list, the Python code to demonstrate the …
Given an integer n, return whether its prime factors only include 2, 3 or 5. Constraints n ≤ 2**31 -1 Example 1 Input n = 10 Output true Explanation …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two sorted list, if we want to merge it, we can do this optimally using two pointers in O(N+M) …