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:
// here is code in c++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main() {
// variables to read birth month and year
int birthMonth,birthYear;
cout<<"Enter the birth month:";
// read the birth month
cin>>birthMonth;
cout<<"Enter the birth Year:";
// read the birth year
cin>>birthYear;
// print the output
cout<<birthMonth<<"-"<<birthYear<<endl;
return 0;
}
Explanation:
Declare two variables "birthMonth" and "birthYear". Read the value of birthMonth and birthYear from user. Then print the birth month and birth year and a dash(-) in between them.
Output:
Enter the birth month:1
Enter the birth Year:2000
1-2000
Enter the birth month:5
Enter the birth Year:1950
5-1950
Answer:
o f() = 0.3x5
In the function f (x) = bx when 0 < b < 1, the function represents exponential decay.