Home / MCQ Bank / Computer
Computer Heaps

What is the time complexity for creating a ternary heap using swapping?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • O (n)

Related Computer Questions

What will be the output of the following C# code snippet? class maths { int fact(int n) { int result; if (n == 1) return 1; result = fact(n - 1) * n; return result; } } class Output { static void main(String args[]) { maths obj = new maths() ; Console.WriteLine(obj.fact(4)*obj.fact(2)); } } What will be the output of the following C# code? static void Main(string[] args) { long x; x = Convert.ToInt32(Console.ReadLine()); do { Console.WriteLine(x % 10); }while ((x = x / 10) != 0); Console.ReadLine(); } enter x = 1234. A user-interface that is easy to use is considered to be Portrait and Landscape are__________? What type of algorithm is not available in creating our own STL style algorithms?