2 051
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
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
