write asingle linked list which read from two list & the do
the following

1 sort the prime & nonprime num (prime should be less tn
nonprime)

2 each node has a prime num followd by nonprime

3 add a new node into its sutable plce

4 erase the most three duplicated non prime num

5 find the least duplicated prime num


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Can you please explain the difference between using macro and inline functions?

0 Answers  


When does a name clash occur in c++?

0 Answers  


What is a loop? What are different types of loops in c++?

0 Answers  


Explain virtual functions in C++.

3 Answers  


What is flush () in c++?

0 Answers  


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

0 Answers  


What kind of problems can be solved by a namespace?

0 Answers  


What is a singleton c++?

0 Answers  


Does c++ have string data type?

0 Answers  


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

0 Answers  


What is ios :: in in c++?

0 Answers  


Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list.

16 Answers   BNB, FDS, Goldman Sachs, Nagarro,


Categories