en
Feedback
Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Open in Telegram

Main channel https://t.me/Coding_000 Contact Admin 👉 @ILOVEU_143 for booking your exam slots Web- https://coding000.github.io/Projects/ 💯% clearance in any placement exams OffCampus -https://t.me/Offcampus_000 Discussion- https://t.me/exams_discussion

Show more
3 362
Subscribers
-224 hours
-67 days
-4130 days
Posts Archive
def treasure_hunt(matrix, m, n):     res = []     k, l = 0, 0     while k < m
+1
def treasure_hunt(matrix, m, n):     res = []     k, l = 0, 0     while k < m and l < n:         for i in range(l, n):             res.append(matrix[k][i])         k += 1         for i in range(k, m):             res.append(matrix[i][n - 1])         n -= 1         if k < m:             for i in range(n - 1, l - 1, -1):                 res.append(matrix[m - 1][i])             m -= 1         if l < n:             for i in range(m - 1, k - 1, -1):                 res.append(matrix[i][l])             l += 1     return res # Test case 1 matrix = [     [12, 31, 20, 50, 54],     [53, 24, 32, 52, 65],     [38, 10, 99, 1, 44],     [1, 62, 89, 22, 39] ] m = 4 n = 5 print(*treasure_hunt(matrix, m, n)) # Test case 2 matrix = [     [1, 2, 3],     [4, 5, 6],     [7, 8, 9] ] m = 3 n = 3 print(*treasure_hunt(matrix, m, n))

def check_sequence(sequence):     stack = []     upper = []     for tag in sequence:         if tag.isupper():             stack.append(tag.lower())             upper.append(tag)         else:             if not stack or stack[-1] != tag:                 return tag             stack.pop()       if stack:         return stack[0]     return len(upper)    sequence = input().strip() result = check_sequence(sequence) if type(result) == int:     print(result) else:     print(result) Level 1-M2 ✅

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 😎💯

Guys pls share the Accolite Coding mcq to ur friends who writing Accolite 😊👍 Share our channel keep support 👨‍💻 @Coding_000 ❤️ 4.5k✅

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💯💥

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💯💥

This life is yours. Take the power to choose what you want to do and do it well. Take the power to control your own life. No one else can do it for you. Take the power to make your life happy. # @ILOVEU_143 ❤️

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💯💥

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💯💥