COGNIZANT EXAM HELP GROUP pinned ยซAll placement help available ๐ฌ Wipro:https://t.me/code_alphix/2890 ๐ฌ Infosys Sp: https://t.me/code_alphix/1240 https://t.me/code_alphix/1408 ๐ฌ Tech Mahindra:https://t.me/code_alphix/3553 ๐ฌ Impetus ๐ฌ Amazon ๐ฌ IBM DM @MRTRUELIVING_IX โ๏ธ @MRTRUELIVING_IXโฆยป
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
WIPRO Elite 9 am
All MCQs along with Coding done ๐ฏ
Test accomplished
All placement help available
DM for help (๐ฏ test Clearance)
@mrtrueliving_ixโ๏ธ
@mrtrueliving_ixโ๏ธ
#WIPRO #Offcampus #Elite
All MCQs along with Coding done ๐ฏ
Test accomplished
All placement help available
DM for help (๐ฏ test Clearance)
@mrtrueliving_ix
@mrtrueliving_ix
#WIPRO #Offcampus #Elite
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Infosys Exam Start.....(11 am)
DM @MRTRUELIVING_IXโ๏ธ ๐ธ
Ready for the test
All the best guys ๐คโค๏ธ
DM @MRTRUELIVING_IX
Ready for the test
All the best guys ๐คโค๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
Guys share our channel to all your friends๐ฃ
INFOSYS free answers
Share @Code_alphix๐
https://t.me/Code_alphix
https://t.me/Code_alphix
https://t.me/Code_alphix
Join the discussion group ( free)
Drop your questions here ( all company's)
Open for all
https://t.me/free4zone
https://t.me/free4zone
https://t.me/free4zone
Career growth ๐น
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
def get_ans(n, k, a, q, three, queries):
max_val = (1 << k) - 1
answer = 0
for query in queries:
if query[0] == 1:
idx, val = query[1] - 1, query[2]
a[idx] = val
elif query[0] == 2:
l, r = query[1] - 1, query[2] - 1
or_result = 0
min_length = float('inf')
start = l
for end in range(l, r + 1):
or_result |= a[end]
while or_result == max_val:
min_length = min(min_length, end - start + 1)
or_result ^= a[start]
start += 1
if min_length != float('inf'):
answer += min_length
return answer
def main():
import sys
input = sys.stdin.read
data = input().splitlines()
n = int(data[0])
k = int(data[1])
a = [int(data[i + 2]) for i in range(n)]
q = int(data[n + 2])
three = int(data[n + 3])
queries = [list(map(int, data[i + n + 4].split())) for i in range(q)]
print(get_ans(n, k, a, q, three, queries))
Main()
Bitwise Or // Infosys
Please open Telegram to view this post
VIEW IN TELEGRAM
โค3
Infosys Sp( upgrade -9.5 Lpa)
Duration 1h:28minsโค๏ธโ๐ฅ ๐ฏ
Prev 1st code
https://t.me/code_alphix/4718
Test accomplishedโ
โ๏ธ
All placement help available๐ฅ ๐ฅ
DM @MRTRUELIVING_IX ๐ซก
@MRTRUELIVING_IXโ๏ธ ๐ธ
#Infosys #Sp #upgrade
Slot-1
Duration 1h:28mins
Prev 1st code
https://t.me/code_alphix/4718
Test accomplished
All placement help available
DM @MRTRUELIVING_IX ๐ซก
@MRTRUELIVING_IX
#Infosys #Sp #upgrade
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Infosys Sp( upgrade -9.5 Lpa)โ
๐ฌ 2.7/3 codes are done ๐ธ
Test accomplished๐ป ๐ฑ
All placement help available
DM @MRTRUELIVING_IXโ๏ธ
@MRTRUELIVING_IXโ๏ธ
#Infosys #Sp #upgrade
Slot -2
Test accomplished
All placement help available
DM @MRTRUELIVING_IX
@MRTRUELIVING_IX
#Infosys #Sp #upgrade
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM