Given a set of numbers in an array which represent number of consecutive days of AirBnB reservation requested, as a host, pick the sequence which maximizes the number of days of occupancy, at the same time, leaving atleast 1 day gap in between bookings for cleaning. Problem reduces to finding max-sum of non-consecutive array elements. // [5, 1, 1, 5] => 10 The above array would represent an example booking period as follows - // Dec 1 - 5 // Dec 5 - 6 // Dec 6 - 7 // Dec 7 - 12 The answer would be to pick dec 1-5 (5 days) and then pick dec 7-12 for a total of 10 days of occupancy, at the same time, leaving atleast 1 day gap for cleaning between reservations. Similarly, // [3, 6, 4] => 7 // [4, 10, 3, 1, 5] => 15
Software Engineer Interviews
Software Engineer Interview Questions
Software engineers write programs to design and develop computer software. Interviews are highly technical, so come ready to work through coding problems and math brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific software discipline such as web development, application development, or system development.
Top Software Engineer Interview Questions & How to Answer
Question #1: How would you describe your programming task process?
Question #2: Which programming languages do you know and prefer?
Question 3: What is an example of a successful project that you completed?
419,197 software engineer interview questions shared by candidates
To solve problems using any programming language.
Write a program to count the number of occurrences of any two vowels in succession in a line of text. For example, in the sentence, “Please read this application and give me gratuity”, such occurrences are ea, ea, io and ui.
Online coding: given an array of positive and negative numbers, return a maximum possible product of 3 numbers.
Find the largest possible difference in an array of integers, such that the smaller integer occurs earlier in the array.
what happens when you call fork() fork () fork()
Common integers in two arrays.
Reverse a linked-list.
find the missing number of an array of consecutive numbers.
NDA
Viewing 1101 - 1110 interview questions