COGNIZANT EXAM HELP GROUP
3.55K subscribers
5.3K photos
21 videos
10 files
3.22K links
๐Ÿš€ Placement Preparation Hub

๐ŸŽ“ From Preparation to Placement

โšก OA Support โ€ข Coding โ€ข Aptitude โ€ข Technical โ€ข HR

๐ŸŒŸ Trusted by Hundreds of Students

๐Ÿ† 372+ Placement Successes โœ…

๐Ÿ“ฉ DM: @Mrtrueliving_ix

๐Ÿ’™ Turning Aspirations into Offer Letters.
Download Telegram
import sys
from collections import deque

# Define a class for tree nodes
class TreeNode:
def __init__(self, value):
self.val = value
self.left = None
self.right = None

# Insert a value into the Binary Search Tree (BST)
def insert_bst(root, value):
if root is None:
return TreeNode(value) # Create a new node if the current node is None
if value < root.val:
root.left = insert_bst(root.left, value) # Insert into the left subtree if the value is smaller
else:
root.right = insert_bst(root.right, value) # Insert into the right subtree if the value is larger
return root

# Find the k-th smallest element in the BST using in-order traversal
def kth_smallest(root, k):
stack = []
current = root
count = 0

while True:
# Traverse the left subtree
while current is not None:
stack.append(current)
current = current.left

if not stack:
return None # If the stack is empty, there are fewer than k elements

# Pop the node from the stack
current = stack.pop()
count += 1

# If the count matches k, return the current node's value
if count == k:
return current.val

# Traverse the right subtree
current = current.right

# Main function to read input and output the k-th smallest element
def main():
# Read the number of nodes and the value of k
n, k = map(int, sys.stdin.readline().strip().split())
# Read the values to insert into the BST
values = list(map(int, sys.stdin.readline().strip().split()))

root = None
# Insert all values into the BST
for value in values:
root = insert_bst(root, value)

# Find and print the k-th smallest element
result = kth_smallest(root, k)
print(result)

# Entry point of the script
if __name__ == "__main__":
main()

K-th smallest element // starium๐Ÿ‘

5/ 5 ๐Ÿ‘

Stay tuned

@CODE_ALPHIX

Test accomplished ๐Ÿ“ฃ๐Ÿ’ฏโ–ถ๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘13๐ŸŽ‰3โค1๐Ÿ”ฅ1๐Ÿ‘Œ1๐Ÿ†1๐Ÿซก1
IBM

Both Coding ๐Ÿ’ฏ
๐Ÿ“ฑ

Test accomplished
๐Ÿ”ˆ

DM for any placement help

-
@mrtrueliving_ix

-
@mrtrueliving_ix

-
@mrtrueliving_ix

All placement help available
#IBM #coding  #Done
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Valuefy-On campus

With remote access {clg lab}

Test accomplished

All 3 codes are done
๐Ÿ“ฃ๐Ÿ’ฏโค๏ธ

Leading with rank-1 ๐Ÿ˜‰๐Ÿ‘Œ

All placement help available

-
@mrtrueliving_ix

-
@mrtrueliving_ix

#Valuefy #coding #Done
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘1
Starium

All 5/5 codes are done โœ…๐Ÿ’ฏ

100/100 ๐Ÿš€
๐Ÿ””

All placement help available

-
@mrtryeliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
HELP AVAILABLE

IBM CIC{6PM}

https://t.me/code_alphix/3118

NIVIDA {6PM}

DM-
@MRTRUELIVING_IX

๐Ÿ’ฏ TEST CLEARANCE
โ–ถ๏ธ๐Ÿ’ฏ
Please open Telegram to view this post
VIEW IN TELEGRAM
CISCO all Codes available

DM @mryrueliving_ix
CISCO - Software Engineer

All 3/3 coding are done
โ–ถ๏ธ๐Ÿ˜‡

Test accomplished
๐Ÿฅณ

All placement help available

-
@mrtrueliving_ix

-
@mrtrueliving_ix

-
@mrtrueliving_ix

#CISCO #Software_Engineer #coding #Successfully
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘1๐ŸŽ‰1
Ready to goโ–ถ๏ธโ–ถ๏ธ๐Ÿ“ฃ๐Ÿ“ฃ


Reserve Bank ๐Ÿง๐Ÿฆ
Please open Telegram to view this post
VIEW IN TELEGRAM
IBM SHORTEN SENTENCE
Starium Round- 2

Technical concepts {50 mcq-60mins}
All placement help available
๐Ÿคช Auto desk
๐Ÿคช Accenture {on || Off}
๐Ÿคช UBER
๐Ÿคช COGNIZANT
๐Ÿคช micron
๐Ÿคช Oracle
๐Ÿคช Visa
๐Ÿคช Deloitte
๐Ÿคช Zeta
๐Ÿคช Namma Yatri



Any other OA help available

๐Ÿ’ฏ Test Clearance ๐Ÿ‘Œ

With remote access { High success rate}
๐Ÿ‘

-
@mrtrueliving_ix

-
@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
InfoObjects-ONcampus

All MCQ are done 50/50 ๐Ÿš€
๐Ÿ“ฃ

Test accomplished
โ˜„๏ธ

All placement help available

-
@mrtrueliving_ix

-
@mrtrueliving_ix

#InfoObjects #Aptitude #ONCampus
Please open Telegram to view this post
VIEW IN TELEGRAM
Auto desk codes available

Dm-
@mrtrueliving_ix ๐Ÿ‘

Plag free codes are available
Please open Telegram to view this post
VIEW IN TELEGRAM