Tag: numbers
In System Design Interviews, the availability percentages are the fundamental that a software engineer should be familiar with. In the world of system reliability, availability percentages like 99.9% or …
Given an integer n (in base 10) and a base k, return the sum of the digits of n after converting n from base 10 to base k. After …
Given a string s representing a number in base 3 (consisting only of 0, 1, or 2), return its decimal integer equivalent. Example 1 Input s = “10” Output …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a positive integer num, return the sum of its digits. Bonus: Can you do it without using strings? Constraints …
An integer has sequential digits if and only if each digit in the number is one more than the previous digit. Return a sorted list of all the integers …