Answer:A) O(1)
Explanation:While dequeuing operation takes place,that is the elimination of the front element from the queue.In doubled linked list/chain, the dequeue operation operates at the consecutive elements lined in the chain with O(1) time period for the eliminating the item or returning the last value from the link along with the reference.from the chain link.Therefore, the correct option is option(A).
Answer:
Codes are given below:
Explanation:
Since the language is not specified, I am writing it in c++
#include <iostream>
using namespace std;
int main() //Start of main function
{
int number;
cout << "Enter your number"<<endl;
cin >> number; //this will take your number as an input
cout <<"The next three numbers are: " << number + 1 << endl; //this will write the next number to your input input
cout << number + 2 << endl;
cout << number + 3 << endl;
return 0;
} //End of main function
Anther and Filament
hope his helped ;)
Answer:
JavaScript is a great language to do animations and even make video games!
I would go with D) JavaScript
Explanation: