There was an online assessment which consisted of two hard questions.The questions were not standard and required very good competitive programming skills along with dsa.The assessment was very much luck based.
Interview questions [1]
Question 1
You are given an undirected tree T consisting of N nodes rooted at node 1.You have to assign value to each node of the tree such that:1)The assigned value must be a prime number less than or equal to 100.2)The sum of values assigned to any pair of adjacent nodes is not a prime number.Determine the total number of valid assignments.
Pretty straightforward coding challenges that were based around leetcode l2 through l5, typical cracking the coding challenges kinda questions and at least l1 but everything is pretty straightforward if you know how to code
After a coding challenge of two easy question on their own coding platform, I did two rounds of interview. The first one is LeetCode easy and the second one is LeetCode medium.
Interview questions [1]
Question 1
On the second technical interview, they've asked to optimize the answer?