Based on string and array (Hackerrank)
Trainee Software Engineer Interview Questions
6,022 trainee software engineer interview questions shared by candidates
Encoding a sequence of inputs with a particular given pattern so that the pattern is the output when you give a numerical input.
Languages I know, and my code logic. Some display tree printing and sorting questions.
2 Coding questions based on arrays and strings( Medium level)
interviewer will give you hackerrank programming questions and you have to solve in given time
they asked questions in maths and project which is in the resume
Q1. Arrange the given array in required format. Required format = [First largest, First smallest, second largest, second smallest, third largest, third smallest, and so on..] in= [9, 2, 1, 7, 3, 4, 8, 28] op= [26, 1, 9, 2, 8, 3, 7, 4 ] Q2. Given an Array, considering first element as no of column, make a 2D array from the given elements from array except first element as that is representing no of columns and queries are given in form of list that [[i,j],[i,j],[i,j]] find that i,j element in formed 2D array. in = [4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] q = [[1,2],[3,3],[2,4],[3,1]] output = [1, 11, 8, 9] Q3. print the below pattern:- Solution should be general based on n. in :- n = 4 op :- 4 4 4 4 4 4 4 3 3 3 3 3 2 2 2 1 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 4 4 Q4. Pattern Printing input =[Apple, mohan, hp, LG, IBM, Amit] op = e n l a t p h I i p o p G B m A m h L I A Q5. Rotation of a 2D array by 270 degree.
Tell me something about yourself.
Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.
Basic question related to array and string
Viewing 2411 - 2420 interview questions