/* 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. */
Full Stack Software Engineer Interview Questions
1,668 full stack software engineer interview questions shared by candidates
If you ever encountered with discrimination towards a colleague on work, what would you do?
Feedback on the Moonpay products
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.
Design a new data structure with specified complexity
Given a set of n numbers, return a list containing all possible combinations of length n or less (no duplicates).
Tell us about a time when you had to handle a conflict with a teammate.
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.
Explain how a shopping web application works based on the frontend, backend and databases?
Tell me about how the company will get benefit from the project that you have made?a
Viewing 1191 - 1200 interview questions