2 Interview Experiences
Question 1 A forest is represented as a list of integers, where each element stores the index of its parent node.Rules:1. Each node stores its parent’s index in the list. 2. For a root node, the parent index is the node’s own index. 3. For any
I recently gave the Snowflake SWE AI/ML Intern OA, and these were the three problems asked. The languages allowed were Go, Java, and Python only.Problem 1: Simple Array Rotation GameDescription:You are given an array of distinct positive integers an