Q1: Given a string comprising only of integer values 1 or 2, return true/false if you can reach the end of the string assuming you start at the beginning. You can only move forward/backward by the current position's integer value. Ex// "1121" -> false, "12111" -> true Q2: Graph problem (electric car) - given a list of nodes and their edge weights, find the minimum number (battery size) in order for the car to reach the final destination, starting from the initial destination. The graph is undirected and there is always at least 1 solution.
Junior Software Engineer Interview Questions
7,249 junior software engineer interview questions shared by candidates
Prior to the on-site interview, I spent most time on reviewing and practicing algorithm problems from LeetCode, GeeksForGeeks, and Glassdoor. During the on-site interview, I have been asked about simple SQL query statements and JavaScript programmings, which are supposed to be really easy for me and be solved without any hesitation. However, I did not recall those details immediately, which would impact on the decision that hiring committee made.
The graph problem was a shortest path problem from node A to node B. but it came with a twist, where you only cared about the edge with the highest value in that route from A to B
What were the biggest challenges you’ve faced in your previous roles?
What is a string literal and how is it different from a regular string?
You are given some starter code for a class of pokemon trading cards with a getter and setter for the names of the pokemon (which are unique). Using only C-style strings, fix up the functions. Now suppose you have an array with the pokemon cards initialized with their names. Write a function to randomize the pokemon cards array (without using STL library functions for randomization) which will be printed out afterwards. The randomization has to be as uniform as possible.
Say we have a game with some enemies. What would be the cost/benefits using a STL list and STL vector to store them? With regards to random access and insertion, what are the runtimes? How are both of these types implemented in the back?
What is memory fragmentation? What are some possible ways to prevent it best as possible?
Group Discussion asked about artificial intelligence pros and cons
I didn't attend an interview due to the fault of the company's time management
Viewing 5291 - 5300 interview questions