FastPrepGet Minimum Development Time
Problems/Get Minimum Development Time

Get Minimum Development Time

Salesforce logoSalesforce● MediumFULLTIMEOA

Updated Sep 2026

QuestionFunctionExamplesConstraints

Problem statement

A team of software developers is working on a new application with n features to implement. Each feature requires specific resources for development: they are either built from scratch or integrated using an existing library.

Given two arrays of size n, developmentTime and integrationTime, where developmentTime[i] (0 ≤ i < n) represents the estimated hours needed to develop the ith feature from scratch, and integrationTime[i] (0 ≤ i < n) represents the estimated hours to integrate the feature from the library.

The integration of features using an existing library is performed only by the team lead, while the development of features can be distributed among team members (assuming there are more than n team members). Thus, the development of features takes place simultaneously while the integration is sequential.

The task is to implement all the features in the minimum possible time and return this minimal development time.

Function

getMinimumDevelopmentTime(developmentTime: int[], integrationTime: int[]) → int

Complete the function getMinimumDevelopmentTime in the editor.

getMinimumDevelopmentTime has the following parameters:

  1. 1. int[] developmentTime: an array of integers representing the hours needed to develop each feature
  2. 2. int[] integrationTime: an array of integers representing the hours needed to integrate each feature

Returns int: the minimum development time

( ˶ˆᗜˆ˵ ) All credit goes to our GG of Error-Free Excellence - spike!

Examples

Example 1

developmentTime = [10, 12, 13, 8, 15]integrationTime = [1, 2, 1, 1, 1]return = 6

If the team lead integrates all the features using the libraries, it requires 1 + 2 + 1 + 1 + 1 = 6 units of time. Since this is less than 8, the minimum development time, there is no need to consider developing a feature.

Hence, the minimum time required is 6 hours.

Constraints

  • 🍑🍑

More Salesforce interview questions

  • Count Increasing TripletsONSITE INTERVIEW · Seen Nov 2026
  • Longest Substring Without Repeating CharactersONSITE INTERVIEW · Seen Nov 2026
  • Reverse a Sublist of a Linked ListONSITE INTERVIEW · Seen Nov 2026
  • Rotting OrangesONSITE INTERVIEW · Seen Nov 2026
  • 3Sum SmallerONSITE INTERVIEW · Seen Nov 2026
  • Count Zero Request ServersONSITE INTERVIEW · Seen Nov 2026
  • Count Subarrays With Product Equal to KOA · Seen Nov 2026
  • Minimum No-Repeat Segments After One Character RemovalOA · Seen Nov 2026
  • Get Message StatusOA · Seen Nov 2026
  • Group Identical Tree LevelsONSITE INTERVIEW · Seen Oct 2026

Similar questions at other companies

  • Capacity to Ship Packages Within DaysMicrosoft · OA · ONSITE INTERVIEWMicrosoft interview questions
  • Rock JumpingIMC Trading · OAIMC Trading interview questions
  • Minimum Robot and Human Fulfillment TimeAmazon · OA
  • Minimize Maximum Group DifferenceDRW · OADRW interview questions
  • Array NullificationQRT · OA
  • Minimum-Cost Solar Rooftop AllocationDeloitte · OADeloitte interview questions
  • Three-Part Partition with Minimum Largest RangeLSEG · OALSEG interview questions
  • K-Means ClusteringAtlassian · OAAtlassian interview questions
  • Job ExecutionMathWorks · OAMathWorks interview questions
  • Police Station 🚓The D.E. Shaw Group · OAThe D.E. Shaw Group interview questions

Salesforce interview experiences

  • Salesforce Infrastructure SWE OA and Onsite: 1 Experience
  • Salesforce Experienced Backend SWE First Round: 1 Experience
All Salesforce interview questionsSee Salesforce hiring insights
Saved
class Solution {
    public int getMinimumDevelopmentTime(int[] developmentTime, int[] integrationTime) {
      // write your code here
    }

}
Checking account…