Linux Driver Subsystem
from https://www.kernel.org/doc/html/latest/driver-api/driver-model/bus.html Every driver in the Linux kernel is associated with a bus type, which defines the interface between the kernel and the h...
from https://www.kernel.org/doc/html/latest/driver-api/driver-model/bus.html Every driver in the Linux kernel is associated with a bus type, which defines the interface between the kernel and the h...
Design Movie Rental System You have a movie renting company consisting of n shops. You want to implement a renting system that supports searching for, booking, and returning movies. The system sh...
Implement Router Design a data structure that can efficiently manage data packets in a network router. Each data packet consists of the following attributes: source: A unique identifier for the ...
Design Spreadsheet A spreadsheet is a grid with 26 columns (labeled from ‘A’ to ‘Z’) and a given number of rows. Each cell in the spreadsheet can hold an integer value between 0 and 105. Impleme...
Design Task Manager There is a task management system that allows users to manage their tasks, each associated with a priority. The system should efficiently handle adding, modifying, executing, ...
Design a Food Rating System Design a food rating system that can do the following: **Modify** the rating of a food item listed in the system. Return the highest-rated food item for a type of cui...
Replace Non-Coprime Numbers in Array You are given an array of integers nums. Perform the following steps: Find **any** two **adjacent** numbers in nums that are **non-coprime**. If no such numb...
Maximum Number of Words You Can Type There is a malfunctioning keyboard where some letter keys do not work. All other keys on the keyboard work properly. Given a string text of words separated b...
Vowel Spellchecker Given a wordlist, we want to implement a spellchecker that converts a query word into a correct word. For a given query word, the spell checker handles two categories of spell...
Find Most Frequent Vowel and Consonant You are given a string s consisting of lowercase English letters (‘a’ to ‘z’). Your task is to: Find the vowel (one of 'a', 'e', 'i', 'o', or 'u') with th...