0% found this document useful (0 votes)
5 views4 pages

Electric Scooter Charging Stations Setup

Uploaded by

sanja1.6y
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Electric Scooter Charging Stations Setup

Uploaded by

sanja1.6y
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Question 1 — Charging Stations / Complete Levels

You are setting up a series of charging stations for electric scooters.


Each station level i requires exactly i battery packs to be fully operational.
If you do not have enough battery packs to complete a level, it is incomplete.
Given n battery packs, return the number of fully completed station levels.

Examples:
Input: n = 6
Output: 3

Input: n = 11
Output: 4

Question 2 — Smart Ad Injection System

You have a sorted list of timestamps where ads may be placed.


Any two ads shown must be at least K seconds apart.
Always take the first valid timestamp.
Return the maximum number of ads that can be shown.

Examples:
Input: timestamps = [10,20,30,40], k = 15
Output: 2

Input: timestamps = [1,2,3,10], k = 5


Output: 2

Question 3 — Total Stove Time (Cloud Kitchen Efficiency)

Each order requires the stove to be ON during interval [start, end].


Overlapping intervals merge (stove stays ON), gaps turn stove OFF.
Return the total minutes the stove was ON.

Examples:
Input: [[1,4],[2,5],[7,9]]
Output: 6

Input: [[1,10],[2,3],[4,5]]
Output: 9

Question 4 — Max Fulfilled Delivery Orders

Riders have skill levels. Orders have difficulty.


A rider can accept an order if skill ≥ difficulty.
Each rider can accept one order.
Return the maximum fulfilled orders.

Examples:
Riders: [10,5,20]
Orders: [5,30,10]
Output: 2

Riders: [1,2]
Orders: [3,4]
Output: 0

Question 5 — SQL: Top Customers by Total Spend


You have tables:

customers(id, name)
orders(id, customer_id, amount)

Return customers whose total amount > 10,000 with:

columns: name, total_spent

sorted by total_spent DESC

Example Output Format


name | total_spent
Charlie | 20000
Alice | 11000

Question 6 — SQL: Above Average Earners by Department

Tables:

departments(id, dept_name)
employees(id, name, dept_id, salary)

Return, for each department having at least one employee earning above the dept
average:

department name

sum of salaries of above-average employees, total_salary

order by dept_name ASC

Example Output Format


dept_name | total_salary
Finance | 90000
IT | 200000

General / HR Questions

Are you ready to commit to a full-time internship for a minimum duration of 12


months?

Do you have your own device that meets the required technical specifications for
remote work?

Tell me about yourself.

How do you usually collaborate with team members when implementing new features?

Can you share an example where you received constructive criticism on your code
during a review and how you adapted in response?

How do you explain technical concepts to individuals lacking a technical


background?

Project-Based / Technical Questions

Tell me about a project in which you used React for front-end and [Link] for back-
end services. What particular contributions did you make?

What were the key challenges you faced in that project, and how did you overcome
them?

AI / ML Project Questions

(From earlier preparation for your AI projects)


9. Why did you choose CNN for face manipulation / deepfake detection?
10. How did you prepare and preprocess your dataset?
11. How do you evaluate model performance?
12. What is RAG and why did you use it in your AskMe chatbot project?
13. Why FAISS for vector search?
14. How do you handle hallucination in LLMs?
15. How do you prevent overfitting in machine learning models?

Core Concepts

Explain bias vs variance.

Explain precision vs recall and when each is important.

Explain train–test–validation split.

Coding / Problem-Solving

Largest possible number by arranging integers (string sorting problem).

Max pair weight under K (drone capacity problem).

Number of completed charging levels problem (n staircase / greedy).

SQL

Write a query to sum salary of employees who are above department average.

List customers who spent more than 10,000 sorted by highest first.

A delivery setup has charging station levels.


Each level i requires exactly i battery packs.
If you don’t have enough packs to complete a level, it is incomplete.

Given an integer n (battery packs),


return the number of fully completed levels.

Example:
Input: n = 6
Output: 3

Input: n = 11
Output: 4
You are given a list of non-negative integers nums.
Arrange them so that when concatenated they form the largest possible number.
Return the result as a string.

Example:
Input: nums = [10, 2]
Output: "210"

Input: nums = [3, 30, 34, 5, 9]


Output: "9534330"

A delivery drone has a strict weight limit K.


The drone must carry exactly two packages per trip.
Choose two packages whose combined weight is the largest possible without exceeding
K.
Return the maximum weight sum. If none are valid, return -1.

Example:
Input: weights = [10, 20, 30], K = 45
Output: 40

Input: weights = [50, 60], K = 100


Output: -1

Write a query that returns department name and total salary of employees
whose salary is greater than their department average.
Sort by department name ascending.

Write a query that returns customer name and total_spent


for customers who spent more than 10,000.
Sort by highest spending first.

You might also like