Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a program to print frequency of each word


There are different kinds of numbers, but among them all, the most commonly used numbers in our daily lives are those positive ones. So, I only want you to count all the positive numbers from the 4 inputted values and print out the result.


Go and search for the positive ones among these four!


Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong".


Write the following menu driven program for the binary tree

----------------------------------------

Binary Tree Menu

----------------------------------------


1. Create

2. In-Order Traversal

3. Pre-Order Traversal

4. Post-Order traversal

5. Search

6. Find Smallest Element

7. Find Largest Element

8. Quit


Maximum Product of the Digits

Given a range represented by two positive integers L and R. Find the number lying in the range having the maximum product of the digits.

Input


The first line of input will be an integer, denoting the number of test cases T.

The next T lines will contain two space-separated integers, denoting the L and R.

Output


The output should be T lines containing the the number with the maximum product of the digits in the range L and R for each test case.

Explanation


For example, if the given T is 2, read the L and R of the first test case in the next line. If the given L and R are 1 and 10 respectively. As 9 is the number with the maximum product of digits, the output for the first test case should be 9.

If the L and R are 15 to 30 respectively. The product of the digits of number 29 is 18. As 18 is the maximum product in the range, the output should be 29.

Sample Input 1

2

1 10

15 30

Sample Output 1

9

29


Sample Input 2

4

100 200

51 62

10 30

20 80

Sample Output 2

199

59

29

79


Write a script to print even and an odd number from any range.




Write a script to print even and an odd number from any range.


Write a script in most simplest way,


Because the way I asked for the same question, it doesn't give me any result, either provide two different method or script

Write a PYTHON program to find the path with the largest sum. Tree can be in N level and draw the binary tree and accept a perfect and imperfect binary tree as an option from the user.



Enter the level of binary tree:4

This code generates binary tree with minimum 4 levels

The maximum sum is 341

The maximum sum path is 65 89 83 53 51




Enter the level of binary tree:2

This code generates binary tree with minimum 2 levels

The maximum sum is 341

The maximum sum path is 65 89 83 53 51  

----Both the sum values are same..but i want based on levels


Create a program in C++

When an input is 1, display ‘True’. When an input is 2, display ‘False’. When an input is other than 1 or 2, display ‘Invalid’. 


In C++ create a code that Asks for a birth date then compute and display the exact age in a year


LATEST TUTORIALS
APPROVED BY CLIENTS