JP Morgan Chase & Co. organized its first round for internship hiring on 20th Feb 2021 for Software Engineer Program, 2022. The test was conducted on HackerRank. It had 2 coding questions for 1 hour 15 minutes. The difficulty level of these questions was fairly easy with very easy constraints too (The first question could be solved in O(n) but the constraint on n was 1 to 100).
- Given an array of string containing names of tools (can be duplicates), the starting index and a target tool, find the minimum number of steps required to reach the target tool from the starting index. The array is circular, that is, if you reach the end of the array, go to its start and vice versa.
- Given a linked list having either 0 or 1 as its elements, find the decimal representation of the binary number formed by the nodes of the list.