Master Every Tech Interview
A community-driven repository of real interview questions from top companies. Sort by company, experience level, and technology to prepare smarter, not harder.
A community-driven repository of real interview questions from top companies. Sort by company, experience level, and technology to prepare smarter, not harder.
Implement the layout based on the provided wireframe using only HTML and CSS. 
Given an array of integers `nums`, sort the array in ascending order and return it. You must solve the problem without using any built-in functions in `O(nlog(n))` time complexity and with the smallest space complexity possible. ### Example 1: **Input:** `nums = [5,2,3,1]` **Output:** `[1,2,3,5]` **Explanation:** After sorting the array, the positions of some numbers are not changed (for example, 2 and 3), while the positions of other numbers are changed (for example, 1 and 5). ### Example 2: **Input:** `nums = [5,1,1,2,0,0]` **Output:** `[0,0,1,1,2,5]` **Explanation:** Note that the values of nums are not necessairly unique. ### Constraints: * `1 <= nums.length <= 5 * 104` * `-5 * 104 <= nums[i] <= 5 * 104`
Anonymous
01/05/2025
You are given a dataset with a significant class imbalance (e.g., 95% of the data belongs to class A, and 5% belongs to class B). Design a strategy to train a classification model that performs well on both classes. Discuss techniques to handle the imbalance, such as sampling methods, cost-sensitive learning, or evaluation metrics that should be prioritized. Assume the dataset contains 10,000 samples, and the model will be evaluated on a separate test set.