Coding

How can you determine the shortest subarray that meets or exceeds a target sum from a given integer array, using a greedy algorithm?

Did you come across this question in an interview?

Interview question asked to Machine Learning Engineers and Data Scientists interviewing at Kraken, ClassPass, Airtable and others: How can you determine the shortest subarray that meets or exceeds a target sum from a given integer array, using a greedy algorithm?.