Given two positive numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of these two numbers. Examples: Input : num1 = 4154 num2 = 51454 Output…
Category: Python
Roman Number to Integer Example in JAVA, PHP, JS, PYTHON
Given a Roman numeral, the task is to find its corresponding decimal value. Example : Input: IX Output: 9 IX is a Roman symbol which represents 9 Input: XL Output: 40 XL is a Roman symbol which represents 40 Input:…
Find duplicates in an array
Explanation We need to find the duplicate elements in the array in this programme. This can be accomplished with two loops. The first loop selects an element, while the second loop iterates across the array by comparing the selected element…
Machine Learning Interview Questions
1) What do you mean when you say “machine learning”? Machine learning is a branch of Artificial Intelligence that works with system programming and data analysis, allowing computers to learn and respond without being explicitly programmed. 2) What is the…
Check if the given Array is Monotonic Python
We’ll learn how to determine whether an array is a monotone in this article. An array is a data structure that holds elements and allows you to retrieve them using their indexes. When the items of an array are constantly…