Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

18.56K

## Total Set :1

##### Question: 1 / 10

Write a program to convert Fahrenheit to centigrade and test that program and tell an exact value to test all most all scenario.

##### Question: 2 / 10

There were two puzzle, I am not able to to recall second one.
temple, 1 priest have x number of flower and y flower in first temple, there is a pond that double the remaining flowers and again y flower in second temple and double the remaining flowers and after third temple priest have zero flower.
(A) tells values of x and y
(B) Generate equation to calculate x nad y and give nxt value.
(c) general equation for n number of temple and pond increment flower m number of times

##### Question: 3 / 10

Given an unsorted array and an item K, write a program to get kth largest element.

##### Question: 4 / 10

Given a sorted array and an item k, write a program to get a pair of items whose subtraction equal to K.

##### Question: 5 / 10

Write a program to delete a node in single linklist, if address of that node is given.

There will be three scenario, depending upon the address of node is given
1. if the node is head
2. if the node in middle or any position i.e one node is next to it.
3. if the given node is last node.

1. if the node is head
free (node)

2. if the node in middle or any position i.e one node is next to it.
copy the next node information to given node and delete the next node.
node->data = node->next->data;
node->next=node->next->next;
free(node->next)

3. if the given node is last node.
In single linked list operation not possible.

##### Question: 6 / 10

Write a Program to sort the number 100001110101 in one traverse. 