Answer:
Let the function be Node* ins(Node *root,int k)
if root node is NULL then return new node with data equal to k.
If the k <root->data
root->left=ins(root->left,k);
else if k >root->data
root->right =ins(root->right,k);
At last return root.
Explanation:
Node is always inserted at the at the leaf node.We will search k in the tree if we hit a the leaf node the new node is inserted as the child of the leaf node.
Answer:
29
Explanation:
for n=28:
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 28*28 + 28/2 = 798
Algorithm 2 performs f(n) = 12*28 + 500 = 836
for n=29
--------------
Algorithm 1 performs f(n) = n2 + n/2 = 29*29 + 29/2 = 855.5
Algorithm 2 performs f(n) = 12*29 + 500 = 848
so, for n=29, algorithm 2 will be faster than algorithm 1
<span>CMYK means cyan, magenta, yellow, and key (black). They are the four color model used in color printing or printing color images. It lets you subtract the colors on the image. CMYK partially or fully masks colors on a lighter view. </span>
Based on the information given regarding how email should be written, it can be deduced that the statement is false.
<h3>
Importance of emails.</h3>
It should be noted that email is an important method that is used for communication. It's fast, cheap, and easily accessible.
People do not prefer your email as one big paragraph rather, it's important to add line breaks for new sections or paragraphs. This is essential to convey the information effectively.
In conclusion, using email us also beneficial for businesses to reach their customers.
Learn more about emails on:
brainly.com/question/24558412
Random integer, in this case betweeen 1 and 100