রবিবার, ১২ মার্চ, ২০১৭

Dequeue operation

insert element at back-    q.push_back(element); /push in right
insert element at front-    q.push_front(element); / push in left
remove last element   -                  q.pop_back();  /pop in right
remove first element       -               q.pop_front();  /pop in left
examine last element       -       q.back() / see right/last element
examine first element       -       q.front() / see left/first element
ক্যাপশন যোগ করুন

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন

Factorization with prime Sieve

vector <int> prime; char sieve[1000009]; int N=1000009; void primeSieve ( ) { sieve[0] = sieve[1] = 1; prime.push_back(2); ...