logo

Experiencia de entrevista de Adobe | Conjunto 36 (Conducción fuera del campus)

Prueba escrita en línea: Preguntas de opción múltiple sobre aptitud y programación 2 preguntas de codificación. F2F R1 1) Dada una cuerda de cualquier longitud. imprima todas las combinaciones posibles de longitud de cadena k Sugerencia de uso de recursividad 2) Dada una matriz, imprima en orden de espiral. 3) Verifique si el árbol dado es BST o no. Había resuelto según el método 3. https://www.geeksforgeeks.org/dsa/a-program-to-check-if-a-binary-tree-is-bst-or-not/ Luego, él mismo me informó oralmente sobre el método 1 desde el mismo enlace y me pidió que escribiera el código para el mismo y descubriera qué había de malo en el enfoque. F2f r2 1) Given a Node such that
Node x { boolean ifFile; int[] children; } 
had to print all the paths from root to the file. if there is no file don't print anything. Note: This is not tree or graph. The structure is like windows file system and hierarchy can be any long. So recursion will cause stack overflow. Solve it without recursion 2) Given a sorted array with one number having any number of duplicates For eg [12344456] Find the index of the first occur of duplicating element. So for above example your function should return 3. Hint: Use Binary search 3) Minimum number of jumps to reach end Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function to return the minimum number of jumps to reach the end of the array (starting from the first element). If an element is 0 then cannot move through that element. Example: Input: arr[] = {1 3 5 8 9 2 6 7 6 8 9} Output: 3 (1-> 3 -> 8 ->9) F2F R3 Discutido sobre currículum y proyectos trabajados. 1) Dado un estado de flujo binario si el número es divisible por 3 en cualquier momento Se discuten 2-3 enfoques. 2) Se discutieron varios enfoques para implementar el diccionario. 3) Dado un conjunto, imprima todos los subconjuntos posibles. F2F R4 (última ronda de dirección) También hablé sobre mis proyectos laborales y universitarios. Se discutieron varios enfoques y complejidades para el problema de rotación de matrices. Todos los problemas de práctica para Adobe !

Problemas de práctica relacionados

Número mínimo de saltos.