def check_order(boxes):
stack = []
for box in boxes:
if box in ['(', '{', '[']:
stack.append(box)
else:
if not stack:
return box
if box == ')' and stack[-1] != '(':
return box
if box == '}' and stack[-1] != '{':
return box
if box == ']' and stack[-1] != '[':
return box
stack.pop()
if stack:
return stack[0]
return len(boxes)
boxes = input()
result = check_order(boxes)
if isinstance(result, int):
print(result)
else:
print(result)
L1 M2โ
stack = []
for box in boxes:
if box in ['(', '{', '[']:
stack.append(box)
else:
if not stack:
return box
if box == ')' and stack[-1] != '(':
return box
if box == '}' and stack[-1] != '{':
return box
if box == ']' and stack[-1] != '[':
return box
stack.pop()
if stack:
return stack[0]
return len(boxes)
boxes = input()
result = check_order(boxes)
if isinstance(result, int):
print(result)
else:
print(result)
L1 M2โ
๐1
Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
def check_order(boxes): stack = [] for box in boxes: if box in ['(', '{', '[']: stack.append(box) else: if not stack: return box if box == ')' and stack[-1] != '(': โฆ
THis question๐ L1-M2
๐1
def main():
w1 = input().lower()
w2 = input().lower()
w1_list = [0] * 26
w2_list = [0] * 26
for c in w1:
w1_list[ord(c) - ord('a')] += 1
for c in w2:
w2_list[ord(c) - ord('a')] += 1
if w1_list == w2_list:
print(len(w1))
else:
different_letters = []
for i in range(26):
if w1_list[i] != w2_list[i]:
different_letters.append(chr(i + ord('a')))
different_letters.sort()
print("".join(different_letters))
if name == 'main':
main()
WEB dEveloper code โ E1
w1 = input().lower()
w2 = input().lower()
w1_list = [0] * 26
w2_list = [0] * 26
for c in w1:
w1_list[ord(c) - ord('a')] += 1
for c in w2:
w2_list[ord(c) - ord('a')] += 1
if w1_list == w2_list:
print(len(w1))
else:
different_letters = []
for i in range(26):
if w1_list[i] != w2_list[i]:
different_letters.append(chr(i + ord('a')))
different_letters.sort()
print("".join(different_letters))
if name == 'main':
main()
WEB dEveloper code โ E1
๐2
Any one want projects -mini or Major ๐ Unique project๐ฅ๐ฅ
Domain AI/ML
contact -@ILOVEU_143 โค๏ธ
Anyone need help in GRE and TOFEL Exam help ๐จโ๐ป๐จโ๐ป
SOP , LORโ๐
Note -paid ๐ค
shareโ share โ @Coding_000
Domain AI/ML
contact -@ILOVEU_143 โค๏ธ
Anyone need help in GRE and TOFEL Exam help ๐จโ๐ป๐จโ๐ป
SOP , LORโ๐
Note -paid ๐ค
shareโ share โ @Coding_000
๐1
enc=encoded=3_hBf7XNPTK0nFFzvt9WUNFBx6pAnIlSVCqAP3VPlCt7CBg7Dg3.docx
33.4 KB
Resume for deliotte.. ๐๐
๐1๐ฅฐ1
In this channel i will share all 2023 batch offcampus job ๐ค๐ค
https://t.me/Offcampus_000
https://t.me/Offcampus_000
Telegram
Off Campus Updates | AMAZON | IBM | TCS | WIPRO | WILEY EDGE | VIRTUSA | MINDTREE | COGNIZANT
IT Walkins, Off Campus Drives, Walkins, Off Campus Drive & Internship Updates
BE, BTech, ME, MTech, BCA, BSc, MCA, BBA, BBM, MSc, MBA IT Freshers Jobs
Join our group for queries, doubts and discussions
https://t.me/offcampus_000
BE, BTech, ME, MTech, BCA, BSc, MCA, BBA, BBM, MSc, MBA IT Freshers Jobs
Join our group for queries, doubts and discussions
https://t.me/offcampus_000
๐1
Everyone join this for off-campus updates @whitehatcodingโค๏ธ
๐2
Happy rose day guys..๐น๐น
๐ @ILOVEU_143 ๐
๐ @ILOVEU_143 ๐
โค10๐1๐ฅฐ1๐1
Propose day guys..๐๐
๐ @ILOVEU_143 ๐
๐ @ILOVEU_143 ๐
โค1๐ฅฐ1๐1
Wiley edge
Amazon Sde
AMcat
Deliotee
or any exam help available ๐ฅ๐ฏ
Book your slot
Contact here @ILOVEU_143โ
Note: It's Paid ๐ฐ๐ฐ
Shareโ @Coding_000๐ฏ๐ฅ
๐ฏ Clearance and genuine help
Check all previous proofs ๐๐ฏ
Amazon Sde
AMcat
Deliotee
or any exam help available ๐ฅ๐ฏ
Book your slot
Contact here @ILOVEU_143โ
Note: It's Paid ๐ฐ๐ฐ
Shareโ @Coding_000๐ฏ๐ฅ
๐ฏ Clearance and genuine help
Check all previous proofs ๐๐ฏ
๐2๐ฅ1๐ฅฐ1
Any one want projects -mini or Major ๐ Unique project๐ฅ๐ฅ
Domain AI/ML
contact -@ILOVEU_143 โค๏ธ
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help ๐จโ๐ป๐จโ๐ป
SOP , LORโ๐
Note -paid ๐ค
shareโ share โ @Coding_000
Domain AI/ML
contact -@ILOVEU_143 โค๏ธ
Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help ๐จโ๐ป๐จโ๐ป
SOP , LORโ๐
Note -paid ๐ค
shareโ share โ @Coding_000
๐2
๐2
Don`t waste money for accolite..
All ans here @Coding_000
just scroll above...
share with ur frds โ ๐
All ans here @Coding_000
just scroll above...
share with ur frds โ ๐
๐1
Beauty code Accolite pythonโ
@Coding_000 โค๏ธ
share to ur friends and whatsapp to help eachother.๐ ๐
@Coding_000 โค๏ธ
share to ur friends and whatsapp to help eachother.๐ ๐
๐3๐1
Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
Beauty code Accolite pythonโ
@Coding_000 โค๏ธ share to ur friends and whatsapp to help eachother.๐
๐
https://t.me/whitehatcoding
https://t.me/whitehatcoding
https://t.me/whitehatcoding
Join this ๐๐๐
for more...Answers upcoming..๐ ๐
https://t.me/whitehatcoding
https://t.me/whitehatcoding
Join this ๐๐๐
for more...Answers upcoming..๐ ๐
๐2
ษขษชแด แด สแดแดแดแดษชแดษด ษขแดสแดขแดข โค๏ธ๐
โค9