algorithm-notes

This blog is mainly about algorithm analysis. The coding questions are mainly from Leetcode and Lintcode. Please leave your message if you have any comments or suggestions. Thanks!

Wednesday, November 27, 2024

[System Design] Design an efficient parking lot system

›
System requirements Functional: User can reserve a parking spot. User pays for the reservation. User can park a car on the parking spot. Use...
Sunday, January 15, 2023

[Leetcode]: 2536. Increment Submatrices by One

›
You are given a positive integer n, indicating that we initially have an n x n 0-indexed integer matrix mat filled with zeroes. You are also...
Sunday, June 5, 2022

[Leetcode] 2296. Design a Text Editor

›
2296. Design a Text Editor Design a text editor with a cursor that can do the following: Add text to where the cursor is. Delete text from w...
Saturday, June 4, 2022

[Leetcode] 2293. Min Max Game

›
2293. Min Max Game You are given a 0-indexed integer array nums whose length is a power of 2. Apply the following algorithm on nums: Let n b...
Saturday, May 7, 2022

[Leetcode] 2145. Count the Hidden Sequences

›
2262. Total Appeal of A String The appeal of a string is the number of distinct characters found in the string. For example, the appeal of ...
Saturday, January 29, 2022

[Leetcode] 2145. Count the Hidden Sequences

›
2145. Count the Hidden Sequences You are given a 0-indexed array of n integers differences, which describes the differences between each pai...
Tuesday, December 28, 2021

[Leetcode] 813. Largest Sum of Averages

›
813. Largest Sum of Averages You are given an integer array nums and an integer k. You can partition the array into at most k non-empty adja...
›
Home
View web version

About Me

algorithm_notes
keep on learning
View my complete profile
Powered by Blogger.