Questions: 1 680

Answers by our Experts: 1 680

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 algorithm to calculate the total number of advertisement that will be displayed from the .input consist of an integer representing the advertisement
The media company "GlobalAd" has received a
batch of advertisements from different product
brands. The batch of advertisements is a
numeric value where each digit represents the
number of advertisements the media company
has received from different product brands.
Since the company banners permit only even
numbers of advertisements to be displayed, the
media company needs to know the total
number of advertisements it will be able to
display from the given batch.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​

In a bank there are two types of transactions: credit and debit. All transactions are assigned an alphabetical ID. Credit transactions are assigned a vowel and debit transactions are assigned a consonant. To track transactions over a year, all the transaction IDs are combined to form a string of IDs for each customer. A customer wishes to know the number of times he made a debit transaction immediately after a credit transaction.


Write an algorithm to print the count of debit transactions that were made immediately after a credit transaction for that particular customer


The media company "GlobalAd" has received a
batch of advertisements from different product
brands. The batch of advertisements is a
numeric value where each digit represents the
number of advertisements the media company
has received from different product brands.
Since the company banners permit only even
numbers of advertisements to be displayed, the
media company needs to know the total
number of advertisements it will be able to
display from the given batch.
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.
Input
The input consists of an integer batch,
representing the batch of advertisements
Output
Print an integer representing the total number
of advertisements that will be displayed by the
media company
Constraints
0 < batchs 109​
Write an algorithm to calculate the total
number of advertisements that will be
displayed from the batch.

2. There is a binary tree given to you. In which each of the node represents the student in the class. You are playing a game in which you need to team up with one of student in class. Team can be formed in such a way that in a team both of the students can’t have same parent in tree and should be at the same level in binary tree. The number of students in the class is denoted by ‘n’. The value will be user-defined.

Input: we have given you some pair of students you need to find that is the team valid or not.

Output: ‘Yes’ if the team is valid or ‘No’ if the team is invalid.

Also, Find

(a) How many tree traversal is required for the solution of the above problem


  1. . Construct a binary tree, where the input is given as an array. The node present at ’k’th index will have the pair of children at 2kth index and 2k+1th index in the array. Find the post order and pre order traversal for the constructed tree.

The media company global ad


in a bank there are two types odf transactions credit and debit all tranyare assigned an alphabetical id . credit transactions are assigned a vowel and debit transaction are assigned a consonant. to track transactions over a year all the transactions ids for each customer a customer wishes to know the number of times he made a debit transaction immediately after a credit transaction write an algorithm to print the count of debit transaction that were made immediately after a credit transaction forbthat particular customer

Write a program that display the sum of all odd numbers between a and b (inclusive). Where a and b are inputs from the user.


Thank you.


LATEST TUTORIALS
APPROVED BY CLIENTS