wasPrime
  • Home
  • Archives
  • Categories
  • Tags
  • About

LeetCode 21 - Merge Two Sorted Lists

Difficulty: easy Problem DescriptionEnglish (Merge Two Sorted Lists)You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted lis
2023-06-12
algorithm > leetcode > linked_list
#algorithm #leetcode #linked_list #easy

LeetCode 19 - Remove Nth Node From End of List

Difficulty: medium Problem DescriptionEnglish (Remove Nth Node From End of List)Given the head of a linked list, remove the nth node from the end of the list and return its he
2023-06-11
algorithm > leetcode > linked_list
#algorithm #leetcode #linked_list #medium

LeetCode 206 - Reverse Linked List

Difficulty: easy Problem DescriptionEnglish (Reverse Linked List)Given the head of a singly linked list, reverse the list, and return the reversed list. Example 1: graph LR n
2023-06-10
algorithm > leetcode > linked_list
#algorithm #leetcode #linked_list #easy

LeetCode 2 - Add Two Numbers

Difficulty: medium Problem DescriptionEnglish (Add Two Numbers)You are given two non-empty linked lists representing two non-negative integers. The digits are stored in revers
2023-06-09
algorithm > leetcode > linked_list
#algorithm #leetcode #linked_list #medium

LeetCode 1402 - Reducing Dishes

Difficulty: hard Problem DescriptionEnglish (Reducing Dishes)A chef has collected data on the satisfaction level of his n dishes. Chef can cook any dish in 1 unit of time. Lik
2023-06-08
algorithm > leetcode > dynamic_programming
#algorithm #greedy_algorithm #leetcode #hard #dynamic_programming #dp

A Solution for Collection by Unique Elements with Custom Tolerance

Problem DescriptionSuppose there were such a scenario - we need to put mutiple points into a collection which contains unique points. The form of point is its coordinates (x, y). The type of coordinat
2023-06-07
system_design
#system_design

LeetCode 131 - Palindrome Partitioning

Difficulty: medium Problem DescriptionEnglish (Palindrome Partitioning)Given a string s, partition s such that every substring of the partition is a palindrome. Return all pos
2023-06-06
algorithm > leetcode > backtracking
#algorithm #leetcode #medium #backtracking

A Simple Implementation of Thread Pool

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102#i
2023-06-05
system_design
#system_design #thread_pool

LeetCode 338 - Counting Bits

Difficulty: easy Problem DescriptionEnglish (Counting Bits)Given an integer n, return an array ans of length n + 1 such that for each i (0 <= i <= n), ans[i] is the numb
2023-06-04
algorithm > leetcode > dynamic_programming
#algorithm #leetcode #easy #dynamic_programming #dp

LeetCode 2280 - Minimum Lines to Represent a Line Chart

Difficulty: medium Problem DescriptionEnglish (Minimum Lines to Represent a Line Chart)You are given a 2D integer array stockPrices where stockPrices[i] = [dayi, pricei] indic
2023-06-03
algorithm > leetcode
#algorithm #leetcode #medium
1234…9

Search

Hexo Fluid