Full Stack Software Engineer Interview Questions

1,668 full stack software engineer interview questions shared by candidates

/* Given an array of arrays, implement an iterator class to allow the client to traverse and remove elements in the array list. This iterator should provide three public class member functions: boolean has_next() return true or false if there is another element in the set int next() return the value of the next element in the set void remove() remove the last element returned by the iterator. That is, remove the element that the previous next() returned This method can be called only once per call to next(), otherwise, an exception will be thrown. See http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html#remove() for details. The code should be well structured, and robust enough to handle any access pattern. Additionally, write code to demonstrate that the class can be used for the following basic scenarios: Print elements Given: [[],[1,2,3],[4,5],[],[],[6],[7,8],[],[9],[10],[]] Print: 1 2 3 4 5 6 7 8 9 10 Remove even elements Given: [[],[1,2,3],[4,5],[],[],[6],[7,8],[],[9],[10],[]] Should result in: [[],[1,3],[5],[],[],[],[7],[],[9],[],[]] Print: 1 3 5 7 9 */ import java.io.*; import java.util.*; /* * To execute Java, please define "static void main" on a class * named Solution. * * If you need more classes, simply define them inline. */
avatar

Full Stack Software Engineer

Interviewed at Airbnb

4
Mar 17, 2015

/* Given an array of arrays, implement an iterator class to allow the client to traverse and remove elements in the array list. This iterator should provide three public class member functions: boolean has_next() return true or false if there is another element in the set int next() return the value of the next element in the set void remove() remove the last element returned by the iterator. That is, remove the element that the previous next() returned This method can be called only once per call to next(), otherwise, an exception will be thrown. See http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html#remove() for details. The code should be well structured, and robust enough to handle any access pattern. Additionally, write code to demonstrate that the class can be used for the following basic scenarios: Print elements Given: [[],[1,2,3],[4,5],[],[],[6],[7,8],[],[9],[10],[]] Print: 1 2 3 4 5 6 7 8 9 10 Remove even elements Given: [[],[1,2,3],[4,5],[],[],[6],[7,8],[],[9],[10],[]] Should result in: [[],[1,3],[5],[],[],[],[7],[],[9],[],[]] Print: 1 3 5 7 9 */ import java.io.*; import java.util.*; /* * To execute Java, please define "static void main" on a class * named Solution. * * If you need more classes, simply define them inline. */

Design a system which takes text, parses and gets related data from 3rd party web services. Eg: take city name and get weather and relaed info. such as news. What database schema would you use to store the data if you don't want to query it once you got the results.
avatar

Associate Full Stack Software Engineer

Interviewed at CLARA analytics

4.1
Jan 11, 2019

Design a system which takes text, parses and gets related data from 3rd party web services. Eg: take city name and get weather and relaed info. such as news. What database schema would you use to store the data if you don't want to query it once you got the results.

How would you make an api request to get a list of users and display their information in react. How would you style the results? How would you implement pagination? How would you implement an API route on a Nest.js backend to insert data into a SQL database.
avatar

Full Stack Software Engineer

Interviewed at Rightway

3.4
Jul 22, 2024

How would you make an api request to get a list of users and display their information in react. How would you style the results? How would you implement pagination? How would you implement an API route on a Nest.js backend to insert data into a SQL database.

Viewing 1191 - 1200 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 1,668 interview questions and reports from Full stack software engineer interviews. Prepare for your interview. Get hired. Love your job.