2 051
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 дней
Архив постов
You have two queues namely A and B. Additionally, you receive Q queries.
The queries are of the following two types:
type1: (1, x) => Add x to the end of queue A.
・ type2: (2, x) => Remove the first element of queue A let's say it was P.
if x==1 add P to the end of A
• if x==2 add P to the end of B.
int m
After processing all the queries you will have two queues A and B with some elements in them.
Your final task is to find the sum of multiplication of elements in both queues modulo 10^9+7
Hi Raju Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@placement_0
@placement_0
Hi Pranavi , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi Aarti , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
Hi K Welcome to this Community, Subscribe Our YouTube Channel📣 for Daily Jobs Updates and Study Material
Hi DANALAPATI THABITHA , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel ✅
👇👇
@offcampusjobs_0
@offcampusjobs_0
TCS NQT Registration Open
2018-2022 Batch
Register Now ❤️
👇👇
https://youtu.be/kg2L0-biy6E
.
Hi B Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates ❤️
👇👇
@offcampusjobs_0
@offcampusjobs_0
