"Given an array of integers, return the indices of the two numbers that add up to a specific target." Example: Input: nums = [2, 7, 11, 15], target = 9 Output: [0, 1] Explanation: nums[0] + nums[1] = 2 + 7 = 9
Software Intern Interview Questions
17,775 software intern interview questions shared by candidates
Differentiate between OOP and non-OOP languages
how to check if a string of difeerent parantheses is valid or not
If you were to code a program something, what would you think about in the planning stage for it?
Interview 1: Given the following rules of python, write a compiler for it. 1st line has no margin on the left. Each subsequent line has margin which is greater than or equal to the margin of any of the lines above it(as in python). Each line which ends with a ‘:’ should have next line with alignment > the previous line (like function definition in python). Report erroneous line number if any of this is violated.
Interview 2: You have a string of words and 2 given words. Find the shortest substring that has both the words. Print 6 preceding words before the first word and 6 succeeding words after the last word in the original string. Ex. if the words are a & b, then the substring to be printed should be. word1 word2 … word 6 a …. b word7 word 8 … word 12 He later asked me to extend it if we have 3 words a,b and c. And the substring should contain all the words.
Do you have a youtube channel and which YouTube channels do you follow?
Oops concept
About your basic infor, cert and abiLity, ưhy u think u are suitable for the job
Do you have any side projects?
Viewing 2611 - 2620 interview questions