Given an integer array, find the maximum sum of a contiguous subarray. Update the solution when the array is circular, meaning the last element connects…
How to understand, debug, and optimize large-scale data pipelines using Spark and Kafka. They covered investigating slow Spark jobs, identifying data sk…
Write a function that removes duplicate user events occurring within a given time window for the same user and event type, then returns per-user counts,…
Scenario A researcher previously submitted a report to Product Security that initially seemed like a security issue. After engaging the engineering team…
Imagine you are building a proxy (edge layer) application API endpoint which receives a JSON payload. But you don’t know the structure of this payload….
Grouping Sums Given a string s made of digits ( 0-9 ), treat consecutive equal digits as a group. For each group, add it to a running total. Return the…
Given the following 2D Bounding Box struct, write a function to merge n bounding boxes together, and return a final bounding box with the result. struct…
You are given an array of integers and another target integer as input. Your task is to return the index or indices of the target integer in the array a…
Problem 1: Given a budget of $3000 dollars to buy Apple products, create an algorithm to print all possible combinations of products you can buy. Given…
Given a collection of strings, write a function that can group the anagrams together. You can return the answer in any order. Test collection: [“able”,…
Modify an Array Given an array of integers, the cost to change an element is the absolute difference between its initial value and its new value. For ex…