<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
  <channel>
    <title>GitHub C++ Weekly Trending</title>
    <description>Weekly Trending of C++ in GitHub</description>
    <pubDate>Sun, 17 May 2026 01:43:35 GMT</pubDate>
    <link>http://mshibanami.github.io/GitHubTrendingRSS</link>
    
    <item>
      <title>hyprwm/Hyprland</title>
      <link>https://github.com/hyprwm/Hyprland</link>
      <description>&lt;p&gt;Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn&#39;t sacrifice on its looks.&lt;/p&gt;&lt;hr&gt;&lt;div align=&quot;center&quot;&gt; 
 &lt;img src=&quot;https://raw.githubusercontent.com/hyprwm/Hyprland/main/assets/header.svg?sanitize=true&quot; width=&quot;750&quot; height=&quot;300&quot; alt=&quot;banner&quot; /&gt; 
 &lt;br /&gt; 
 &lt;p&gt;&lt;a href=&quot;https://github.com/hyprwm/Hyprland/actions/workflows/ci.yaml&quot;&gt;&lt;img src=&quot;https://github.com/hyprwm/Hyprland/actions/workflows/ci.yaml/badge.svg?sanitize=true&quot; alt=&quot;Badge Workflow&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/hyprwm/Hyprland/main/LICENSE&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/license/hyprwm/Hyprland&quot; alt=&quot;Badge License&quot; /&gt;&lt;/a&gt; &lt;img src=&quot;https://img.shields.io/github/languages/top/hyprwm/Hyprland&quot; alt=&quot;Badge Language&quot; /&gt; &lt;a href=&quot;https://github.com/hyprwm/Hyprland/pulls&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/issues-pr/hyprwm/Hyprland&quot; alt=&quot;Badge Pull Requests&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/hyprwm/Hyprland/issues&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/issues/hyprwm/Hyprland&quot; alt=&quot;Badge Issues&quot; /&gt;&lt;/a&gt; &lt;img src=&quot;https://img.shields.io/badge/Hi-mom!-ff69b4&quot; alt=&quot;Badge Hi Mom&quot; /&gt;&lt;br /&gt;&lt;/p&gt; 
 &lt;br /&gt; 
 &lt;p&gt;Hyprland is a 100% independent, dynamic tiling Wayland compositor that doesn&#39;t sacrifice on its looks.&lt;/p&gt; 
 &lt;p&gt;It provides the latest Wayland features, is highly customizable, has all the eyecandy, the most powerful plugins, easy IPC, much more QoL stuff than other compositors and more... &lt;br /&gt; &lt;br /&gt;&lt;/p&gt; 
 &lt;hr /&gt; 
 &lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://wiki.hypr.land/Getting-Started/Installation/&quot;&gt;&lt;kbd&gt; &lt;br /&gt; Install &lt;br /&gt; &lt;/kbd&gt;&lt;/a&gt;&lt;/strong&gt;  &lt;strong&gt;&lt;a href=&quot;https://wiki.hypr.land/Getting-Started/Master-Tutorial/&quot;&gt;&lt;kbd&gt; &lt;br /&gt; Quick Start &lt;br /&gt; &lt;/kbd&gt;&lt;/a&gt;&lt;/strong&gt;  &lt;strong&gt;&lt;a href=&quot;https://wiki.hypr.land/Configuring/&quot;&gt;&lt;kbd&gt; &lt;br /&gt; Configure &lt;br /&gt; &lt;/kbd&gt;&lt;/a&gt;&lt;/strong&gt;  &lt;strong&gt;&lt;a href=&quot;https://wiki.hypr.land/Contributing-and-Debugging/&quot;&gt;&lt;kbd&gt; &lt;br /&gt; Contribute &lt;br /&gt; &lt;/kbd&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; 
 &lt;hr /&gt; 
 &lt;br /&gt; 
&lt;/div&gt; 
&lt;h1&gt;Features&lt;/h1&gt; 
&lt;ul&gt; 
 &lt;li&gt;All of the eyecandy: gradient borders, blur, animations, shadows and much more&lt;/li&gt; 
 &lt;li&gt;A lot of customization&lt;/li&gt; 
 &lt;li&gt;100% independent, no wlroots, no libweston, no kwin, no mutter.&lt;/li&gt; 
 &lt;li&gt;Custom bezier curves for the best animations&lt;/li&gt; 
 &lt;li&gt;Powerful plugin support&lt;/li&gt; 
 &lt;li&gt;Built-in plugin manager&lt;/li&gt; 
 &lt;li&gt;Tearing support for better gaming performance&lt;/li&gt; 
 &lt;li&gt;Easily expandable and readable codebase&lt;/li&gt; 
 &lt;li&gt;Fast and active development&lt;/li&gt; 
 &lt;li&gt;Not afraid to provide bleeding-edge features&lt;/li&gt; 
 &lt;li&gt;Config reloaded instantly upon saving&lt;/li&gt; 
 &lt;li&gt;Fully dynamic workspaces&lt;/li&gt; 
 &lt;li&gt;Two built-in layouts and more available as plugins&lt;/li&gt; 
 &lt;li&gt;Global keybinds passed to your apps of choice&lt;/li&gt; 
 &lt;li&gt;Tiling/pseudotiling/floating/fullscreen windows&lt;/li&gt; 
 &lt;li&gt;Special workspaces (scratchpads)&lt;/li&gt; 
 &lt;li&gt;Window groups (tabbed mode)&lt;/li&gt; 
 &lt;li&gt;Powerful window/monitor/layer rules&lt;/li&gt; 
 &lt;li&gt;Socket-based IPC&lt;/li&gt; 
 &lt;li&gt;Native IME and Input Panels Support&lt;/li&gt; 
 &lt;li&gt;and much more...&lt;/li&gt; 
&lt;/ul&gt; 
&lt;br /&gt; 
&lt;br /&gt; 
&lt;div align=&quot;center&quot;&gt; 
 &lt;h1&gt;Gallery&lt;/h1&gt; 
 &lt;br /&gt; 
 &lt;p&gt;&lt;img src=&quot;https://i.ibb.co/XxFY75Mk/greerggergerhtrytghjnyhjn.png&quot; alt=&quot;Preview A&quot; /&gt;&lt;/p&gt; 
 &lt;br /&gt; 
 &lt;p&gt;&lt;img src=&quot;https://i.ibb.co/C1yTb0r/falf.png&quot; alt=&quot;Preview B&quot; /&gt;&lt;/p&gt; 
 &lt;br /&gt; 
 &lt;p&gt;&lt;img src=&quot;https://i.ibb.co/2Yc4q835/hyprland-preview-b.png&quot; alt=&quot;Preview C&quot; /&gt;&lt;/p&gt; 
 &lt;br /&gt; 
 &lt;br /&gt; 
&lt;/div&gt; 
&lt;h1&gt;Special Thanks&lt;/h1&gt; 
&lt;br /&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://gitlab.freedesktop.org/wlroots/wlroots&quot;&gt;wlroots&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For powering Hyprland in the past&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/tinywl/tinywl.c&quot;&gt;tinywl&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For showing how 2 do stuff&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/swaywm/sway&quot;&gt;Sway&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For showing how 2 do stuff the overkill way&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/inclement/vivarium&quot;&gt;Vivarium&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For showing how 2 do stuff the simple way&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://codeberg.org/dwl/dwl&quot;&gt;dwl&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For showing how 2 do stuff the hacky way&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/WayfireWM/wayfire&quot;&gt;Wayfire&lt;/a&gt;&lt;/strong&gt; - &lt;em&gt;For showing how 2 do some graphics stuff&lt;/em&gt;&lt;/p&gt; 
&lt;!----&gt; 
&lt;!--{ Thanks }---------------------------------&gt; 
&lt;!--{ Images }---------------------------------&gt; 
&lt;!--{ Badges }---------------------------------&gt;</description>
      
      <media:content url="https://repository-images.githubusercontent.com/470730648/62af9cdd-2851-437f-9250-05b8ae4a5bb0" medium="image" />
      
    </item>
    
    <item>
      <title>kamyu104/LeetCode-Solutions</title>
      <link>https://github.com/kamyu104/LeetCode-Solutions</link>
      <description>&lt;p&gt;🏋️ Python / Modern C++ Solutions of All 3928 LeetCode Problems (Weekly Update)&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;&lt;a href=&quot;https://leetcode.com/problemset/all/&quot;&gt;LeetCode&lt;/a&gt;&lt;/h1&gt; 
&lt;p&gt;&lt;img src=&quot;https://img.shields.io/badge/language-Python%20%2F%20Modern%20C++-orange.svg?sanitize=true&quot; alt=&quot;Language&quot; /&gt;&amp;nbsp; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/LICENSE.md&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/license-MIT-blue.svg?sanitize=true&quot; alt=&quot;License&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;img src=&quot;https://img.shields.io/badge/update-weekly-green.svg?sanitize=true&quot; alt=&quot;Update&quot; /&gt;&amp;nbsp; &lt;img src=&quot;https://img.shields.io/badge/progress-3928%20%2F%203928-ff69b4.svg?sanitize=true&quot; alt=&quot;Progress&quot; /&gt;&amp;nbsp; &lt;a href=&quot;https://saythanks.io/to/kamyu104&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/say-thanks-ff69f4.svg?sanitize=true&quot; alt=&quot;SayThanks&quot; /&gt;&lt;/a&gt;&amp;nbsp; &lt;img src=&quot;https://visitor-badge.laobi.icu/badge?page_id=kamyu104.leetcode.solutions&quot; alt=&quot;Visitors&quot; /&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;R.I.P. to my old Leetcode repository, where there were &lt;code&gt;5.7k+&lt;/code&gt; stars and &lt;code&gt;2.2k+&lt;/code&gt; forks (ever the top 3 in the field).&lt;/li&gt; 
 &lt;li&gt;Since free questions may be even mistakenly taken down by some companies, only solutions will be post on now.&lt;/li&gt; 
 &lt;li&gt;There are new LeetCode questions every week. I&#39;ll keep updating for full summary and better solutions.&lt;/li&gt; 
 &lt;li&gt;For more problem solutions, you can see my &lt;a href=&quot;https://github.com/kamyu104/LintCode&quot;&gt;LintCode&lt;/a&gt;, &lt;a href=&quot;https://github.com/kamyu104/GoogleKickStart-2022&quot;&gt;GoogleKickStart&lt;/a&gt;, &lt;a href=&quot;https://github.com/kamyu104/GoogleCodeJamIO-2022&quot;&gt;GoogleCodeJamIO&lt;/a&gt; repositories.&lt;/li&gt; 
 &lt;li&gt;For more challenging problem solutions, you can also see my &lt;a href=&quot;https://github.com/kamyu104/GoogleCodeJam-Farewell-Rounds&quot;&gt;GoogleCodeJam&lt;/a&gt;, &lt;a href=&quot;https://github.com/kamyu104/MetaHackerCup-2025&quot;&gt;MetaHackerCup&lt;/a&gt; repositories.&lt;/li&gt; 
 &lt;li&gt;Hope you enjoy the journey of learning data structures and algorithms.&lt;/li&gt; 
 &lt;li&gt;Notes: &quot;🔒&quot; means your subscription of &lt;a href=&quot;https://leetcode.com/subscribe/&quot;&gt;LeetCode premium membership&lt;/a&gt; is required for reading the question.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Solutions&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/0001-1000.md&quot;&gt;0001 - 1000&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/1001-2000.md&quot;&gt;1001 - 2000&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/2001-3000.md&quot;&gt;2001 - 3000&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/README.md&quot;&gt;3001 - Latest&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Algorithms&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#bit-manipulation&quot;&gt;Bit Manipulation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#array&quot;&gt;Array&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#string&quot;&gt;String&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#linked-list&quot;&gt;Linked List&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#stack&quot;&gt;Stack&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#queue&quot;&gt;Queue&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#binary-heap&quot;&gt;Binary Heap&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#tree&quot;&gt;Tree&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#hash-table&quot;&gt;Hash Table&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#math&quot;&gt;Math&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#sort&quot;&gt;Sort&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#two-pointers&quot;&gt;Two Pointers&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#recursion&quot;&gt;Recursion&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#binary-search&quot;&gt;Binary Search&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#binary-search-tree&quot;&gt;Binary Search Tree&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#breadth-first-search&quot;&gt;Breadth-First Search&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#depth-first-search&quot;&gt;Depth-First Search&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#backtracking&quot;&gt;Backtracking&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#dynamic-programming&quot;&gt;Dynamic Programming&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#greedy&quot;&gt;Greedy&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#graph&quot;&gt;Graph&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#geometry&quot;&gt;Geometry&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#simulation&quot;&gt;Simulation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#constructive-algorithms&quot;&gt;Constructive Algorithms&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#design&quot;&gt;Design&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;JavaScript&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#js&quot;&gt;JS&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Database&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#sql&quot;&gt;SQL&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Pandas&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kamyu104/LeetCode-Solutions#pd&quot;&gt;PD&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Reference&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/REFERENCE.md&quot;&gt;Links&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Bit Manipulation&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3064&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/guess-the-number-using-bitwise-questions-i/&quot;&gt;Guess the Number Using Bitwise Questions I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/guess-the-number-using-bitwise-questions-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/guess-the-number-using-bitwise-questions-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3094&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/guess-the-number-using-bitwise-questions-ii/&quot;&gt;Guess the Number Using Bitwise Questions II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/guess-the-number-using-bitwise-questions-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/guess-the-number-using-bitwise-questions-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3125&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-that-makes-result-of-bitwise-and-zero/&quot;&gt;Maximum Number That Makes Result of Bitwise AND Zero&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-that-makes-result-of-bitwise-and-zero.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-that-makes-result-of-bitwise-and-zero.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3133&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-array-end/&quot;&gt;Minimum Array End&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-array-end.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-array-end.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3199&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-triplets-with-even-xor-set-bits-i/&quot;&gt;Count Triplets with Even XOR Set Bits I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-triplets-with-even-xor-set-bits-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-triplets-with-even-xor-set-bits-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Brute Force, Bit Manipulation, Parity&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3215&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-triplets-with-even-xor-set-bits-ii/&quot;&gt;Count Triplets with Even XOR Set Bits II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-triplets-with-even-xor-set-bits-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-triplets-with-even-xor-set-bits-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation, Parity&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3226&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-bit-changes-to-make-two-integers-equal/&quot;&gt;Number of Bit Changes to Make Two Integers Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-bit-changes-to-make-two-integers-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-bit-changes-to-make-two-integers-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3289&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/the-two-sneaky-numbers-of-digitville/&quot;&gt;The Two Sneaky Numbers of Digitville&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/the-two-sneaky-numbers-of-digitville.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/the-two-sneaky-numbers-of-digitville.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3304&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-k-th-character-in-string-game-i/&quot;&gt;Find the K-th Character in String Game I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-k-th-character-in-string-game-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-k-th-character-in-string-game-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3307&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-k-th-character-in-string-game-ii/&quot;&gt;Find the K-th Character in String Game II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-k-th-character-in-string-game-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-k-th-character-in-string-game-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3314&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-the-minimum-bitwise-array-i/&quot;&gt;Construct the Minimum Bitwise Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-the-minimum-bitwise-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-the-minimum-bitwise-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3315&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-the-minimum-bitwise-array-ii/&quot;&gt;Construct the Minimum Bitwise Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-the-minimum-bitwise-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-the-minimum-bitwise-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3344&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-sized-array/&quot;&gt;Maximum Sized Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-sized-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-sized-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: O(max_s^(1/5) * log(max_s))&lt;br /&gt;runtime: O(log(max_s))&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max_s^(1/5))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Precompute, Bitmasks, Combinatorics, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3370&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-number-with-all-set-bits/&quot;&gt;Smallest Number With All Set Bits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-number-with-all-set-bits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-number-with-all-set-bits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3566&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/partition-array-into-two-equal-product-subsets/&quot;&gt;Partition Array into Two Equal Product Subsets&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/partition-array-into-two-equal-product-subsets.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/partition-array-into-two-equal-product-subsets.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3632&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/subarrays-with-xor-at-least-k/&quot;&gt;Subarrays with XOR at Least K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/subarrays-with-xor-at-least-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/subarrays-with-xor-at-least-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Prefix Sum, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3646&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/next-special-palindrome-number/&quot;&gt;Next Special Palindrome Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/next-special-palindrome-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/next-special-palindrome-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(9 * 2^9 + 16 * p + plogp)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(logp)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Precompute, Bitmasks, Sort, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3702&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-subsequence-with-non-zero-bitwise-xor/&quot;&gt;Longest Subsequence With Non-Zero Bitwise XOR&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-subsequence-with-non-zero-bitwise-xor.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-subsequence-with-non-zero-bitwise-xor.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3750&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-flips-to-reverse-binary-string/&quot;&gt;Minimum Number of Flips to Reverse Binary String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-flips-to-reverse-binary-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-flips-to-reverse-binary-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3766&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-binary-palindrome/&quot;&gt;Minimum Operations to Make Binary Palindrome&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-binary-palindrome.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-binary-palindrome.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(sqrt(r) * logr)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Precompute, Bitmasks, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3769&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sort-integers-by-binary-reflection/&quot;&gt;Sort Integers by Binary Reflection&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sort-integers-by-binary-reflection.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sort-integers-by-binary-reflection.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3782&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/last-remaining-integer-after-alternating-deletion-operations/&quot;&gt;Last Remaining Integer After Alternating Deletion Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/last-remaining-integer-after-alternating-deletion-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/last-remaining-integer-after-alternating-deletion-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3827&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-monobit-integers/&quot;&gt;Count Monobit Integers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-monobit-integers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-monobit-integers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Array&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3009&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-intersections-on-the-chart/&quot;&gt;Maximum Number of Intersections on the Chart&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-intersections-on-the-chart.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-intersections-on-the-chart.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Line Sweep, Coordinate Compression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3010&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/divide-an-array-into-subarrays-with-minimum-cost-i/&quot;&gt;Divide an Array Into Subarrays With Minimum Cost I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/divide-an-array-into-subarrays-with-minimum-cost-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/divide-an-array-into-subarrays-with-minimum-cost-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3015&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-houses-at-a-certain-distance-i/&quot;&gt;Count the Number of Houses at a Certain Distance I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-houses-at-a-certain-distance-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-houses-at-a-certain-distance-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Prefix Sum, Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3017&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-houses-at-a-certain-distance-ii/&quot;&gt;Count the Number of Houses at a Certain Distance II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-houses-at-a-certain-distance-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-houses-at-a-certain-distance-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Prefix Sum, Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3026&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-good-subarray-sum/&quot;&gt;Maximum Good Subarray Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-good-subarray-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-good-subarray-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3028&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/ant-on-the-boundary/&quot;&gt;Ant on the Boundary&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/ant-on-the-boundary.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/ant-on-the-boundary.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3030&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-grid-of-region-average/&quot;&gt;Find the Grid of Region Average&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-grid-of-region-average.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-grid-of-region-average.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3033&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/modify-the-matrix/&quot;&gt;Modify the Matrix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/modify-the-matrix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/modify-the-matrix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3038&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-operations-with-the-same-score-i/&quot;&gt;Maximum Number of Operations With the Same Score I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-operations-with-the-same-score-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-operations-with-the-same-score-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3065&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-exceed-threshold-value-i/&quot;&gt;Minimum Operations to Exceed Threshold Value I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-exceed-threshold-value-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-exceed-threshold-value-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3069&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/distribute-elements-into-two-arrays-i/&quot;&gt;Distribute Elements Into Two Arrays I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/distribute-elements-into-two-arrays-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/distribute-elements-into-two-arrays-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3070&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-submatrices-with-top-left-element-and-sum-less-than-k/&quot;&gt;Count Submatrices with Top-Left Element and Sum Less Than k&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-submatrices-with-top-left-element-and-sum-less-than-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-submatrices-with-top-left-element-and-sum-less-than-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3071&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-write-the-letter-y-on-a-grid/&quot;&gt;Minimum Operations to Write the Letter Y on a Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-write-the-letter-y-on-a-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-write-the-letter-y-on-a-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3079&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-sum-of-encrypted-integers/&quot;&gt;Find the Sum of Encrypted Integers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-sum-of-encrypted-integers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-sum-of-encrypted-integers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3096&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-levels-to-gain-more-points/&quot;&gt;Minimum Levels to Gain More Points&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-levels-to-gain-more-points.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-levels-to-gain-more-points.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3105&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-strictly-increasing-or-strictly-decreasing-subarray/&quot;&gt;Longest Strictly Increasing or Strictly Decreasing Subarray&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-strictly-increasing-or-strictly-decreasing-subarray.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-strictly-increasing-or-strictly-decreasing-subarray.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3127&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/make-a-square-with-the-same-color/&quot;&gt;Make a Square with the Same Color&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/make-a-square-with-the-same-color.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/make-a-square-with-the-same-color.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n - w + 1)^2 * w^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3131&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-integer-added-to-array-i/&quot;&gt;Find the Integer Added to Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-integer-added-to-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-integer-added-to-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3142&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-grid-satisfies-conditions/&quot;&gt;Check if Grid Satisfies Conditions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-grid-satisfies-conditions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-grid-satisfies-conditions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3147&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/taking-maximum-energy-from-the-mystic-dungeon/&quot;&gt;Taking Maximum Energy From the Mystic Dungeon&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/taking-maximum-energy-from-the-mystic-dungeon.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/taking-maximum-energy-from-the-mystic-dungeon.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3151&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/special-array-i/&quot;&gt;Special Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/special-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/special-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3152&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/special-array-ii/&quot;&gt;Special Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/special-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/special-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3153&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-digit-differences-of-all-pairs/&quot;&gt;Sum of Digit Differences of All Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-digit-differences-of-all-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-digit-differences-of-all-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10 * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3159&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-occurrences-of-an-element-in-an-array/&quot;&gt;Find Occurrences of an Element in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-occurrences-of-an-element-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-occurrences-of-an-element-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3173&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/bitwise-or-of-adjacent-elements/&quot;&gt;Bitwise OR of Adjacent Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/bitwise-or-of-adjacent-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/bitwise-or-of-adjacent-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3187&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/peaks-in-array/&quot;&gt;Peaks in Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/peaks-in-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/peaks-in-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3195&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-minimum-area-to-cover-all-ones-i/&quot;&gt;Find the Minimum Area to Cover All Ones I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-minimum-area-to-cover-all-ones-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-minimum-area-to-cover-all-ones-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3224&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-array-changes-to-make-differences-equal/&quot;&gt;Minimum Array Changes to Make Differences Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-array-changes-to-make-differences-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-array-changes-to-make-differences-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3279&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-area-occupied-by-pistons/&quot;&gt;Maximum Total Area Occupied by Pistons&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-area-occupied-by-pistons.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-area-occupied-by-pistons.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(h)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(h)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Line Sweep, Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3285&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-indices-of-stable-mountains/&quot;&gt;Find Indices of Stable Mountains&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-indices-of-stable-mountains.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-indices-of-stable-mountains.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3300&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-element-after-replacement-with-digit-sum/&quot;&gt;Minimum Element After Replacement With Digit Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-element-after-replacement-with-digit-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-element-after-replacement-with-digit-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3330&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-original-typed-string-i/&quot;&gt;Find the Original Typed String I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-original-typed-string-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-original-typed-string-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3334&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-factor-score-of-array/&quot;&gt;Find the Maximum Factor Score of Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-factor-score-of-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-factor-score-of-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3349&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/adjacent-increasing-subarrays-detection-i/&quot;&gt;Adjacent Increasing Subarrays Detection I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/adjacent-increasing-subarrays-detection-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/adjacent-increasing-subarrays-detection-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3350&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/adjacent-increasing-subarrays-detection-ii/&quot;&gt;Adjacent Increasing Subarrays Detection II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/adjacent-increasing-subarrays-detection-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/adjacent-increasing-subarrays-detection-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3353&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-total-operations/&quot;&gt;Minimum Total Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-total-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-total-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3354&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/make-array-elements-equal-to-zero/&quot;&gt;Make Array Elements Equal to Zero&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/make-array-elements-equal-to-zero.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/make-array-elements-equal-to-zero.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://www.codechef.com/problems/BOUNCE_BALL&quot;&gt;CodeChef Starters 146 - Bouncing Ball&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3355&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zero-array-transformation-i/&quot;&gt;Zero Array Transformation I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zero-array-transformation-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zero-array-transformation-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3361&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shift-distance-between-two-strings/&quot;&gt;Shift Distance Between Two Strings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shift-distance-between-two-strings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shift-distance-between-two-strings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3379&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/transformed-array/&quot;&gt;Transformed Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/transformed-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/transformed-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3380&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-area-rectangle-with-point-constraints-i/&quot;&gt;Maximum Area Rectangle With Point Constraints I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-area-rectangle-with-point-constraints-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-area-rectangle-with-point-constraints-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Brute Force, BIT, Fenwick Tree, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3382&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-area-rectangle-with-point-constraints-ii/&quot;&gt;Maximum Area Rectangle With Point Constraints II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-area-rectangle-with-point-constraints-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-area-rectangle-with-point-constraints-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, BIT, Fenwick Tree, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3386&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/button-with-longest-push-time/&quot;&gt;Button with Longest Push Time&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/button-with-longest-push-time.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/button-with-longest-push-time.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3392&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-subarrays-of-length-three-with-a-condition/&quot;&gt;Count Subarrays of Length Three With a Condition&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-subarrays-of-length-three-with-a-condition.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-subarrays-of-length-three-with-a-condition.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3400&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-matching-indices-after-right-shifts/&quot;&gt;Maximum Number of Matching Indices After Right Shifts&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-matching-indices-after-right-shifts.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-matching-indices-after-right-shifts.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3417&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zigzag-grid-traversal-with-skip/&quot;&gt;Zigzag Grid Traversal With Skip&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zigzag-grid-traversal-with-skip.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zigzag-grid-traversal-with-skip.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3423&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zmaximum-difference-between-adjacent-elements-in-a-circular-array/&quot;&gt;Maximum Difference Between Adjacent Elements in a Circular Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-difference-between-adjacent-elements-in-a-circular-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-difference-between-adjacent-elements-in-a-circular-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3427&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-variable-length-subarrays/&quot;&gt;Sum of Variable Length Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-variable-length-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-variable-length-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3432&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-partitions-with-even-sum-difference/&quot;&gt;Count Partitions with Even Sum Difference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-partitions-with-even-sum-difference.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-partitions-with-even-sum-difference.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3440&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-ii/&quot;&gt;Reschedule Meetings for Maximum Free Time II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reschedule-meetings-for-maximum-free-time-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reschedule-meetings-for-maximum-free-time-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3446&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sort-matrix-by-diagonals/&quot;&gt;Sort Matrix by Diagonals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sort-matrix-by-diagonals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sort-matrix-by-diagonals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3452&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-good-numbers/&quot;&gt;Sum of Good Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-good-numbers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-good-numbers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3467&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/transform-array-by-parity/&quot;&gt;Transform Array by Parity&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/transform-array-by-parity.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/transform-array-by-parity.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3502&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-reach-every-position/&quot;&gt;Minimum Cost to Reach Every Position&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-reach-every-position.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-reach-every-position.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3514&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-unique-xor-triplets-ii/&quot;&gt;Number of Unique XOR Triplets II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-unique-xor-triplets-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-unique-xor-triplets-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Fast Walsh–Hadamard Transform&lt;/code&gt;, FWHT, &lt;code&gt;Fast Subset Transform&lt;/code&gt;, FST, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3531&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-covered-buildings/&quot;&gt;Count Covered Buildings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-covered-buildings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-covered-buildings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3537&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/fill-a-special-grid/&quot;&gt;Fill a Special Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/fill-a-special-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/fill-a-special-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(4^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Divide and Conquer, Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3540&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-visit-all-houses/&quot;&gt;Minimum Time to Visit All Houses&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-visit-all-houses.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-visit-all-houses.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3546&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/equal-sum-grid-partition-i/&quot;&gt;Equal Sum Grid Partition I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/equal-sum-grid-partition-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/equal-sum-grid-partition-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3548&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/equal-sum-grid-partition-ii/&quot;&gt;Equal Sum Grid Partition II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/equal-sum-grid-partition-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/equal-sum-grid-partition-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3549&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/multiply-two-polynomials/&quot;&gt;Multiply Two Polynomials&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/multiply-two-polynomials.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/multiply-two-polynomials.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + m) * log(n + m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Fast Fourier Transform&lt;/code&gt;, FFT&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3550&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-index-with-digit-sum-equal-to-index/&quot;&gt;Smallest Index With Digit Sum Equal to Index&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-index-with-digit-sum-equal-to-index.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-index-with-digit-sum-equal-to-index.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3569&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-count-of-distinct-primes-after-splitx/&quot;&gt;Maximize Count of Distinct Primes After Split&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-count-of-distinct-primes-after-split.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-count-of-distinct-primes-after-split.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + nlogn + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, BST, Sorted List, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3637&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/trionic-array-i/&quot;&gt;Trionic Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/trionic-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/trionic-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3643&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/flip-square-submatrix-vertically/&quot;&gt;Flip Square Submatrix Vertically&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/flip-square-submatrix-vertically.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/flip-square-submatrix-vertically.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3653&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/xor-after-range-multiplication-queries-i/&quot;&gt;XOR After Range Multiplication Queries I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/xor-after-range-multiplication-queries-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/xor-after-range-multiplication-queries-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(qlogm + (q + n) * sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sqrt Decomposition, Difference Array, Fast Exponentiation, Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3655&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/xor-after-range-multiplication-queries-ii/&quot;&gt;XOR After Range Multiplication Queries II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/xor-after-range-multiplication-queries-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/xor-after-range-multiplication-queries-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(qlogm + (q + n) * sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sqrt Decomposition, Difference Array, Fast Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3674&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-equalize-array/&quot;&gt;Minimum Operations to Equalize Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-equalize-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-equalize-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3683&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/earliest-time-to-finish-one-task/&quot;&gt;Earliest Time to Finish One Task&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/earliest-time-to-finish-one-task.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/earliest-time-to-finish-one-task.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3687&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/library-late-fee-calculator/&quot;&gt;Library Late Fee Calculator&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/library-late-fee-calculator.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/library-late-fee-calculator.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3688&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/bitwise-or-of-even-numbers-in-an-array/&quot;&gt;Bitwise OR of Even Numbers in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/bitwise-or-of-even-numbers-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/bitwise-or-of-even-numbers-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3696&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-distance-between-unequal-words-in-array-i/&quot;&gt;Maximum Distance Between Unequal Words in Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-distance-between-unequal-words-in-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-distance-between-unequal-words-in-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3700&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-zigzag-arrays-ii/&quot;&gt;Number of ZigZag Arrays II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-zigzag-arrays-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-zigzag-arrays-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((r - l)^3 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((r - l)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Matrix Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3701&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/compute-alternating-sum/&quot;&gt;Compute Alternating Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/compute-alternating-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/compute-alternating-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3706&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-distance-between-unequal-words-in-array-ii/&quot;&gt;Maximum Distance Between Unequal Words in Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-distance-between-unequal-words-in-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-distance-between-unequal-words-in-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3707&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/equal-score-substrings/&quot;&gt;Equal Score Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/equal-score-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/equal-score-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3708&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-fibonacci-subarray/&quot;&gt;Longest Fibonacci Subarray&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-fibonacci-subarray.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-fibonacci-subarray.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3719&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-balanced-subarray-i/&quot;&gt;Longest Balanced Subarray I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-balanced-subarray-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-balanced-subarray-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Segment Tree, Binary Search, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3721&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-balanced-subarray-ii/&quot;&gt;Longest Balanced Subarray II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-balanced-subarray-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-balanced-subarray-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Segment Tree, Binary Search, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3736&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-equal-array-elements-iii/&quot;&gt;Minimum Moves to Equal Array Elements III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-equal-array-elements-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-equal-array-elements-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3737&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-subarrays-with-majority-element-i/&quot;&gt;Count Subarrays With Majority Element I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-subarrays-with-majority-element-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-subarrays-with-majority-element-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3738&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-non-decreasing-subarray-after-replacing-at-most-one-element/&quot;&gt;Longest Non-Decreasing Subarray After Replacing at Most One Element&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-non-decreasing-subarray-after-replacing-at-most-one-element.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-non-decreasing-subarray-after-replacing-at-most-one-element.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3739&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-subarrays-with-majority-element-ii/&quot;&gt;Count Subarrays With Majority Element II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-subarrays-with-majority-element-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-subarrays-with-majority-element-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3751&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-waviness-of-numbers-in-range-i/&quot;&gt;Total Waviness of Numbers in Range I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-waviness-of-numbers-in-range-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-waviness-of-numbers-in-range-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3756&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/concatenate-non-zero-digits-and-multiply-by-sum-ii/&quot;&gt;Concatenate Non-Zero Digits and Multiply by Sum II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/concatenate-non-zero-digits-and-multiply-by-sum-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/concatenate-non-zero-digits-and-multiply-by-sum-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3762&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-equalize-subarrays/&quot;&gt;Minimum Operations to Equalize Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-equalize-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-equalize-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Coordinate Compression, Persistent Segment Tree, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3774&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/absolute-difference-between-maximum-and-minimum-k-elements/&quot;&gt;Absolute Difference Between Maximum and Minimum K Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/absolute-difference-between-maximum-and-minimum-k-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/absolute-difference-between-maximum-and-minimum-k-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3788&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-score-of-a-split/&quot;&gt;Maximum Score of a Split&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-score-of-a-split.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-score-of-a-split.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3809&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/best-reachable-tower/&quot;&gt;Best Reachable Tower&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/best-reachable-tower.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/best-reachable-tower.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3814&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-capacity-within-budget/&quot;&gt;Maximum Capacity Within Budget&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-capacity-within-budget.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-capacity-within-budget.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + b)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(b)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Prefix Sum, Sort, Mono Stack, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3818&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-prefix-removal-to-make-array-strictly-increasing/&quot;&gt;Minimum Prefix Removal to Make Array Strictly Increasing&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-prefix-removal-to-make-array-strictly-increasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-prefix-removal-to-make-array-strictly-increasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3819&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/rotate-non-negative-elements/&quot;&gt;Rotate Non Negative Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/rotate-non-negative-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/rotate-non-negative-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3833&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-dominant-indices/&quot;&gt;Count Dominant Indices&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-dominant-indices.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-dominant-indices.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3861&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-capacity-box/&quot;&gt;Minimum Capacity Box&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-capacity-box.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-capacity-box.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3862&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-smallest-balanced-index/&quot;&gt;Find the Smallest Balanced Index&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-smallest-balanced-index.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-smallest-balanced-index.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3865&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reverse-k-subarrays/&quot;&gt;Reverse K Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reverse-k-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reverse-k-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3880&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-absolute-difference-between-two-values/&quot;&gt;Minimum Absolute Difference Between Two Values&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-absolute-difference-between-two-values.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-absolute-difference-between-two-values.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3898&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-degree-of-each-vertex/&quot;&gt;Find the Degree of Each Vertex&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-degree-of-each-vertex.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-degree-of-each-vertex.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3903&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-stable-index-i/&quot;&gt;Smallest Stable Index I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-stable-index-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-stable-index-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3904&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-stable-index-ii/&quot;&gt;Smallest Stable Index II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-stable-index-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-stable-index-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3907&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-smaller-elements-with-opposite-parity/&quot;&gt;Count Smaller Elements With Opposite Parity&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-smaller-elements-with-opposite-parity.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-smaller-elements-with-opposite-parity.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Coordinate Compression, BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3909&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/compare-sums-of-bitonic-parts/&quot;&gt;Compare Sums of Bitonic Parts&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/compare-sums-of-bitonic-parts.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/compare-sums-of-bitonic-parts.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3912&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/valid-elements-in-an-array/&quot;&gt;Valid Elements in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/valid-elements-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/valid-elements-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3915&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-non-decreasing/&quot;&gt;Maximum Sum of Alternating Subsequence With Distance at Least K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-non-decreasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-non-decreasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Coordinate Compression, BIT, Fenwick Tree, Sliding Window, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3918&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-primes-between-number-and-its-reverse/&quot;&gt;Sum of Primes Between Number and Its Reverse&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-primes-between-number-and-its-reverse.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-primes-between-number-and-its-reverse.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3925&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/concatenate-array-with-reverse/&quot;&gt;Concatenate Array With Reverse&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/concatenate-array-with-reverse.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/concatenate-array-with-reverse.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;String&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3019&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-changing-keys/&quot;&gt;Number of Changing Keys&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-changing-keys.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-changing-keys.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3023&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-pattern-in-infinite-stream-i/&quot;&gt;Find Pattern in Infinite Stream I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-pattern-in-infinite-stream-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-pattern-in-infinite-stream-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3029&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-revert-word-to-initial-state-i/&quot;&gt;Minimum Time to Revert Word to Initial State I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-revert-word-to-initial-state-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-revert-word-to-initial-state-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;Z-Function&lt;/code&gt;, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3031&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-revert-word-to-initial-state-ii/&quot;&gt;Minimum Time to Revert Word to Initial State II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-revert-word-to-initial-state-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-revert-word-to-initial-state-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;Z-Function&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3034&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-subarrays-that-match-a-pattern-i/&quot;&gt;Number of Subarrays That Match a Pattern I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-subarrays-that-match-a-pattern-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-subarrays-that-match-a-pattern-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, String, &lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3036&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-subarrays-that-match-a-pattern-ii/&quot;&gt;Number of Subarrays That Match a Pattern II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-subarrays-that-match-a-pattern-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-subarrays-that-match-a-pattern-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3037&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-pattern-in-infinite-stream-ii/&quot;&gt;Find Pattern in Infinite Stream II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-pattern-in-infinite-stream-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-pattern-in-infinite-stream-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3042&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-prefix-and-suffix-pairs-i/&quot;&gt;Count Prefix and Suffix Pairs I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-prefix-and-suffix-pairs-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-prefix-and-suffix-pairs-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Trie, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3043&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-length-of-the-longest-common-prefix/&quot;&gt;Find the Length of the Longest Common Prefix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-length-of-the-longest-common-prefix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-length-of-the-longest-common-prefix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + m) * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Trie, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3045&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-prefix-and-suffix-pairs-ii/&quot;&gt;Count Prefix and Suffix Pairs II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-prefix-and-suffix-pairs-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-prefix-and-suffix-pairs-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3076&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-uncommon-substring-in-an-array/&quot;&gt;Shortest Uncommon Substring in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-uncommon-substring-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-uncommon-substring-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3093&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-common-suffix-queries/&quot;&gt;Longest Common Suffix Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-common-suffix-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-common-suffix-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3110&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/score-of-a-string/&quot;&gt;Score of a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/score-of-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/score-of-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3136&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/valid-word/&quot;&gt;Valid Word&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/valid-word.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/valid-word.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3163&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/string-compression-iii/&quot;&gt;String Compression III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/string-compression-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/string-compression-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3210&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-encrypted-string/&quot;&gt;Find the Encrypted String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-encrypted-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-encrypted-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3271&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/hash-divided-string/&quot;&gt;Hash Divided String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/hash-divided-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/hash-divided-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3280&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/convert-date-to-binary/&quot;&gt;Convert Date to Binary&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/convert-date-to-binary.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/convert-date-to-binary.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3303&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-occurrence-of-first-almost-equal-substring/&quot;&gt;Find the Occurrence of First Almost Equal Substring&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-occurrence-of-first-almost-equal-substring.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-occurrence-of-first-almost-equal-substring.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Z-Function&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3324&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-sequence-of-strings-appeared-on-the-screen/&quot;&gt;Find the Sequence of Strings Appeared on the Screen&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-sequence-of-strings-appeared-on-the-screen.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-sequence-of-strings-appeared-on-the-screen.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3340&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-balanced-string/&quot;&gt;Check Balanced String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-balanced-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-balanced-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3407&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/substring-matching-pattern/&quot;&gt;Substring Matching Pattern&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/substring-matching-pattern.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/substring-matching-pattern.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3455&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-matching-substring/&quot;&gt;Shortest Matching Substring&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-matching-substring.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-matching-substring.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, &lt;code&gt;KMP Algorithm&lt;/code&gt;, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3456&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-special-substring-of-length-k/&quot;&gt;Find Special Substring of Length K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-special-substring-of-length-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-special-substring-of-length-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3491&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/phone-number-prefix/&quot;&gt;Phone Number Prefix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/phone-number-prefix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/phone-number-prefix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l * nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Trie, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3498&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reverse-degree-of-a-string/&quot;&gt;Reverse Degree of a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reverse-degree-of-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reverse-degree-of-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3529&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-cells-in-overlapping-horizontal-and-vertical-substrings/&quot;&gt;Count Cells in Overlapping Horizontal and Vertical Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-cells-in-overlapping-horizontal-and-vertical-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-cells-in-overlapping-horizontal-and-vertical-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Z-Function&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3571&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-shortest-superstring-ii/&quot;&gt;Find the Shortest Superstring II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-shortest-superstring-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-shortest-superstring-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;KMP Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3582&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/generate-tag-for-video-caption/&quot;&gt;Generate Tag for Video Caption&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/generate-tag-for-video-caption.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/generate-tag-for-video-caption.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3598&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-common-prefix-between-adjacent-strings-after-removals/&quot;&gt;Longest Common Prefix Between Adjacent Strings After Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-common-prefix-between-adjacent-strings-after-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-common-prefix-between-adjacent-strings-after-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;LCP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3606&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/coupon-code-validator/&quot;&gt;Coupon Code Validator&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/coupon-code-validator.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/coupon-code-validator.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l * nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3744&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-kth-character-in-expanded-string/&quot;&gt;Find Kth Character in Expanded String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-kth-character-in-expanded-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-kth-character-in-expanded-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3746&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-string-length-after-balanced-removals/&quot;&gt;Minimum String Length After Balanced Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-string-length-after-balanced-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-string-length-after-balanced-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3748&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-stable-subarrays/&quot;&gt;Count Stable Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-stable-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-stable-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3758&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/convert-number-words-to-digits/&quot;&gt;Convert Number Words to Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/convert-number-words-to-digits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/convert-number-words-to-digits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3775&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reverse-words-with-same-vowel-count/&quot;&gt;Reverse Words With Same Vowel Count&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reverse-words-with-same-vowel-count.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reverse-words-with-same-vowel-count.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, Inplace&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3777&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-deletions-to-make-alternating-substring/&quot;&gt;Minimum Deletions to Make Alternating Substring&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-deletions-to-make-alternating-substring.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-deletions-to-make-alternating-substring.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3794&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reverse-string-prefix/&quot;&gt;Reverse String Prefix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reverse-string-prefix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reverse-string-prefix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3813&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/vowel-consonant-score/&quot;&gt;Vowel-Consonant Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/vowel-consonant-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/vowel-consonant-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3823&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reverse-letters-then-special-characters-in-a-string/&quot;&gt;Reverse Letters Then Special Characters in a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reverse-letters-then-special-characters-in-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reverse-letters-then-special-characters-in-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3838&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/weighted-word-mapping/&quot;&gt;Weighted Word Mapping&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/weighted-word-mapping.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/weighted-word-mapping.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3856&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/trim-trailing-vowels/&quot;&gt;Trim Trailing Vowels&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/trim-trailing-vowels.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/trim-trailing-vowels.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3860&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/unique-email-groups/&quot;&gt;Unique Email Groups&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/unique-email-groups.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/unique-email-groups.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3884&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/first-matching-character-from-both-ends/&quot;&gt;First Matching Character From Both Ends&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/first-matching-character-from-both-ends.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/first-matching-character-from-both-ends.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Linked List&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3062&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/winner-of-the-linked-list-game/&quot;&gt;Winner of the Linked List Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/winner-of-the-linked-list-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/winner-of-the-linked-list-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3063&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/linked-list-frequency/&quot;&gt;Linked List Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/linked-list-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/linked-list-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3217&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/delete-nodes-from-linked-list-present-in-array/&quot;&gt;Delete Nodes From Linked List Present in Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/delete-nodes-from-linked-list-present-in-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/delete-nodes-from-linked-list-present-in-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3263&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/convert-doubly-linked-list-to-array-i/&quot;&gt;Convert Doubly Linked List to Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/convert-doubly-linked-list-to-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/convert-doubly-linked-list-to-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3294&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/convert-doubly-linked-list-to-array-ii/&quot;&gt;Convert Doubly Linked List to Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/convert-doubly-linked-list-to-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/convert-doubly-linked-list-to-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Stack&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3113&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-subarrays-where-boundary-elements-are-maximum/&quot;&gt;Find the Number of Subarrays Where Boundary Elements Are Maximum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-subarrays-where-boundary-elements-are-maximum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-subarrays-where-boundary-elements-are-maximum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Stack, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3174&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/clear-digits/&quot;&gt;Clear Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/clear-digits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/clear-digits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Stack, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3676&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-bowl-subarrays/&quot;&gt;Count Bowl Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-bowl-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-bowl-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3703&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/remove-k-balanced-substrings/&quot;&gt;Remove K-Balanced Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/remove-k-balanced-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/remove-k-balanced-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3749&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/evaluate-valid-expressions/&quot;&gt;Evaluate Valid Expressions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/evaluate-valid-expressions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/evaluate-valid-expressions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3834&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/merge-adjacent-equal-elements/&quot;&gt;Merge Adjacent Equal Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/merge-adjacent-equal-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/merge-adjacent-equal-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Stack, Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3878&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-good-subarrays/&quot;&gt;Count Good Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-good-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-good-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Mono Stack&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Queue&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Binary Heap&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3066&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-exceed-threshold-value-ii/&quot;&gt;Minimum Operations to Exceed Threshold Value II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-exceed-threshold-value-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-exceed-threshold-value-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3080&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/mark-elements-on-array-by-performing-queries/&quot;&gt;Mark Elements on Array by Performing Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/mark-elements-on-array-by-performing-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/mark-elements-on-array-by-performing-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3092&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/most-frequent-ids/&quot;&gt;Most Frequent IDs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/most-frequent-ids.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/most-frequent-ids.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap, BST, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3256&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-value-sum-by-placing-three-rooks-i/&quot;&gt;Maximum Value Sum by Placing Three Rooks I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-value-sum-by-placing-three-rooks-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-value-sum-by-placing-three-rooks-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3257&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-value-sum-by-placing-three-rooks-ii/&quot;&gt;Maximum Value Sum by Placing Three Rooks II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-value-sum-by-placing-three-rooks-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-value-sum-by-placing-three-rooks-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3275&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/k-th-nearest-obstacle-queries/&quot;&gt;K-th Nearest Obstacle Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/k-th-nearest-obstacle-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/k-th-nearest-obstacle-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(qlogk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3684&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-sum-of-at-most-k-distinct-elements/&quot;&gt;Maximize Sum of At Most K Distinct Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-sum-of-at-most-k-distinct-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-sum-of-at-most-k-distinct-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3691&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-subarray-value-ii/&quot;&gt;Maximum Total Subarray Value II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-subarray-value-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-subarray-value-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + k) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap, Sort, Two Pointers, RMQ, Sparse Table, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3781&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-score-after-binary-swaps/&quot;&gt;Maximum Score After Binary Swaps&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-score-after-binary-swaps.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-score-after-binary-swaps.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Heap&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Tree&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3109&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-index-of-permutation/&quot;&gt;Find the Index of Permutation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-index-of-permutation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-index-of-permutation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;🔒, Medium&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/count-of-smaller-numbers-after-self/&quot;&gt;Count of Smaller Numbers After Self&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;BIT, Fenwick Tree, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3515&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-path-in-a-weighted-tree/&quot;&gt;Shortest Path in a Weighted Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-path-in-a-weighted-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-path-in-a-weighted-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BIT, Fenwick Tree, DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3553&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-weighted-subgraph-with-the-required-paths-ii/&quot;&gt;Minimum Weighted Subgraph With the Required Paths II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-weighted-subgraph-with-the-required-paths-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-weighted-subgraph-with-the-required-paths-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree, DFS, &lt;code&gt;Tarjan&#39;s Offline LCA Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3558&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-ways-to-assign-edge-weights-i/&quot;&gt;Number of Ways to Assign Edge Weights I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-ways-to-assign-edge-weights-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-ways-to-assign-edge-weights-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree, BFS, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3559&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-ways-to-assign-edge-weights-ii/&quot;&gt;Number of Ways to Assign Edge Weights II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-ways-to-assign-edge-weights-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-ways-to-assign-edge-weights-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree, DFS, &lt;code&gt;Tarjan&#39;s Offline LCA Algorithm&lt;/code&gt;, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3585&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-weighted-median-node-in-tree/&quot;&gt;Find Weighted Median Node in Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-weighted-median-node-in-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-weighted-median-node-in-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogh)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree, DFS, &lt;code&gt;Tarjan&#39;s Offline LCA Algorithm&lt;/code&gt;, Binary Search, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3715&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-perfect-square-ancestors/&quot;&gt;Sum of Perfect Square Ancestors&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-perfect-square-ancestors.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-perfect-square-ancestors.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(nlogx)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Freq Table, DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3841&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/palindromic-path-queries-in-a-tree/&quot;&gt;Palindromic Path Queries in a Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/palindromic-path-queries-in-a-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/palindromic-path-queries-in-a-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, HLD, Heavy-Light Decomposition, LCA, Binary Lifting, BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3879&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-distinct-path-sum-in-a-binary-tree/&quot;&gt;Maximum Distinct Path Sum in a Binary Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-distinct-path-sum-in-a-binary-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-distinct-path-sum-in-a-binary-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Hash Table&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3005&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-elements-with-maximum-frequency/&quot;&gt;Count Elements With Maximum Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-elements-with-maximum-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-elements-with-maximum-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3039&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/apply-operations-to-make-string-empty/&quot;&gt;Apply Operations to Make String Empty&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/apply-operations-to-make-string-empty.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/apply-operations-to-make-string-empty.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3044&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/most-frequent-prime/&quot;&gt;Most Frequent Prime&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/most-frequent-prime.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/most-frequent-prime.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(10^MAX_N_M)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n * m * (n + m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10^MAX_N_M + n * m * (n + m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3046&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/split-the-array/&quot;&gt;Split the Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/split-the-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/split-the-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3078&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/match-alphanumerical-pattern-in-matrix-i/&quot;&gt;Match Alphanumerical Pattern in Matrix I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/match-alphanumerical-pattern-in-matrix-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/match-alphanumerical-pattern-in-matrix-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m * r * c)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Brute Force, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3083&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/existence-of-a-substring-in-a-string-and-its-reverse/&quot;&gt;Existence of a Substring in a String and Its Reverse&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/existence-of-a-substring-in-a-string-and-its-reverse.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/existence-of-a-substring-in-a-string-and-its-reverse.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n, 26^2))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3120&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-special-characters-i/&quot;&gt;Count the Number of Special Characters I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-special-characters-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-special-characters-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3121&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-special-characters-ii/&quot;&gt;Count the Number of Special Characters II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-special-characters-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-special-characters-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3137&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-operations-to-make-word-k-periodic/&quot;&gt;Minimum Number of Operations to Make Word K-Periodic&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-operations-to-make-word-k-periodic.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-operations-to-make-word-k-periodic.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3138&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-length-of-anagram-concatenation/&quot;&gt;Minimum Length of Anagram Concatenation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-length-of-anagram-concatenation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-length-of-anagram-concatenation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(sqrt(n) * n + 26 * nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3143&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-points-inside-the-square/&quot;&gt;Maximum Points Inside the Square&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-points-inside-the-square.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-points-inside-the-square.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3146&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/permutation-difference-between-two-strings/&quot;&gt;Permutation Difference between Two Strings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/permutation-difference-between-two-strings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/permutation-difference-between-two-strings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3158&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-xor-of-numbers-which-appear-twice/&quot;&gt;Find the XOR of Numbers Which Appear Twice&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-xor-of-numbers-which-appear-twice.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-xor-of-numbers-which-appear-twice.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3160&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-distinct-colors-among-the-balls/&quot;&gt;Find the Number of Distinct Colors Among the Balls&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-distinct-colors-among-the-balls.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-distinct-colors-among-the-balls.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3167&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/better-compression-of-string/&quot;&gt;Better Compression of String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/better-compression-of-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/better-compression-of-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3184&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-pairs-that-form-a-complete-day-i/&quot;&gt;Count Pairs That Form a Complete Day I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-pairs-that-form-a-complete-day-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-pairs-that-form-a-complete-day-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 24)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(24)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3185&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-pairs-that-form-a-complete-day-ii/&quot;&gt;Count Pairs That Form a Complete Day II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-pairs-that-form-a-complete-day-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-pairs-that-form-a-complete-day-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 24)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(24)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3223&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-length-of-string-after-operations/&quot;&gt;Minimum Length of String After Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-length-of-string-after-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-length-of-string-after-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3237&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/alt-and-tab-simulation/&quot;&gt;Alt and Tab Simulation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/alt-and-tab-simulation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/alt-and-tab-simulation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3238&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-winning-players/&quot;&gt;Find the Number of Winning Players&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-winning-players.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-winning-players.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n * c, p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3245&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/alternating-groups-iii/&quot;&gt;Alternating Groups III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/alternating-groups-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/alternating-groups-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BST, Sorted List, Freq Table, BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3295&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/report-spam-message/&quot;&gt;Report Spam Message&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/report-spam-message.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/report-spam-message.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3365&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/rearrange-k-substrings-to-form-target-string/&quot;&gt;Rearrange K Substrings to Form Target String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/rearrange-k-substrings-to-form-target-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/rearrange-k-substrings-to-form-target-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3371&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/identify-the-largest-outlier-in-an-array/&quot;&gt;Identify the Largest Outlier in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/identify-the-largest-outlier-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/identify-the-largest-outlier-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3396&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinct/&quot;&gt;Minimum Number of Operations to Make Elements in Array Distinct&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-operations-to-make-elements-in-array-distinct.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-operations-to-make-elements-in-array-distinct.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3404&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-special-subsequences/&quot;&gt;Count Special Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-special-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-special-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3438&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-valid-pair-of-adjacent-digits-in-string/&quot;&gt;Find Valid Pair of Adjacent Digits in String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-valid-pair-of-adjacent-digits-in-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-valid-pair-of-adjacent-digits-in-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3442&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-difference-between-even-and-odd-frequency-i/&quot;&gt;Maximum Difference Between Even and Odd Frequency I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-difference-between-even-and-odd-frequency-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-difference-between-even-and-odd-frequency-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3450&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-students-on-a-single-bench/&quot;&gt;Maximum Students on a Single Bench&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-students-on-a-single-bench.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-students-on-a-single-bench.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table, Unordered Set&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3471&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-largest-almost-missing-integer/&quot;&gt;Find the Largest Almost Missing Integer&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-largest-almost-missing-integer.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-largest-almost-missing-integer.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3487&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-unique-subarray-sum-after-deletion/&quot;&gt;Maximum Unique Subarray Sum After Deletion&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-unique-subarray-sum-after-deletion.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-unique-subarray-sum-after-deletion.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3488&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/closest-equal-element-queries/&quot;&gt;Closest Equal Element Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/closest-equal-element-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/closest-equal-element-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3527&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-most-common-response/&quot;&gt;Find the Most Common Response&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-most-common-response.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-most-common-response.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3541&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-most-frequent-vowel-and-consonant/&quot;&gt;Find Most Frequent Vowel and Consonant&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-most-frequent-vowel-and-consonant.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-most-frequent-vowel-and-consonant.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3572&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-ysum-by-picking-a-triplet-of-distinct-xvalues/&quot;&gt;Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-ysum-by-picking-a-triplet-of-distinct-xvalues.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-ysum-by-picking-a-triplet-of-distinct-xvalues.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3581&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-odd-letters-from-number/&quot;&gt;Count Odd Letters from Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-odd-letters-from-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-odd-letters-from-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3591&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-any-element-has-prime-frequency/&quot;&gt;Check if Any Element Has Prime Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-any-element-has-prime-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-any-element-has-prime-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(MAX_N)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(MAX_N)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3636&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/threshold-majority-queries/&quot;&gt;Threshold Majority Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/threshold-majority-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/threshold-majority-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + qlogq + (n + q) * sqrt(n) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Coordinate Compression, Sqrt Decomposition, &lt;code&gt;Mo&#39;s Algorithm&lt;/code&gt;, Freq Table, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3662&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/filter-characters-by-frequency/&quot;&gt;Filter Characters by Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/filter-characters-by-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/filter-characters-by-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3663&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-least-frequent-digit/&quot;&gt;Find The Least Frequent Digit&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-least-frequent-digit.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-least-frequent-digit.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn + 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3668&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/restore-finishing-order/&quot;&gt;Restore Finishing Order&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/restore-finishing-order.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/restore-finishing-order.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + min(8, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(8, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3678&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-absent-positive-greater-than-average/&quot;&gt;Smallest Absent Positive Greater Than Average&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-absent-positive-greater-than-average.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-absent-positive-greater-than-average.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3682&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-index-sum-of-common-elements/&quot;&gt;Minimum Index Sum of Common Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-index-sum-of-common-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-index-sum-of-common-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3692&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/majority-frequency-characters/&quot;&gt;Majority Frequency Characters&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/majority-frequency-characters.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/majority-frequency-characters.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3694&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/distinct-points-reachable-after-substring-removal/&quot;&gt;Distinct Points Reachable After Substring Removal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/distinct-points-reachable-after-substring-removal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/distinct-points-reachable-after-substring-removal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3712&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-elements-with-frequency-divisible-by-k/&quot;&gt;Sum of Elements With Frequency Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-elements-with-frequency-divisible-by-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-elements-with-frequency-divisible-by-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3713&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-balanced-substring-i/&quot;&gt;Longest Balanced Substring I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-balanced-substring-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-balanced-substring-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (a + n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(a)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3714&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-balanced-substring-ii/&quot;&gt;Longest Balanced Substring II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-balanced-substring-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-balanced-substring-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3718&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-missing-multiple-of-k/&quot;&gt;Smallest Missing Multiple of K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-missing-multiple-of-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-missing-multiple-of-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3728&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/stable-subarrays-with-equal-boundary-and-interior-sum/&quot;&gt;Stable Subarrays With Equal Boundary and Interior Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/stable-subarrays-with-equal-boundary-and-interior-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/stable-subarrays-with-equal-boundary-and-interior-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3729&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-distinct-subarrays-divisible-by-k-in-sorted-array/&quot;&gt;Count Distinct Subarrays Divisible by K in Sorted Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-distinct-subarrays-divisible-by-k-in-sorted-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-distinct-subarrays-divisible-by-k-in-sorted-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n, k))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3755&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-maximum-balanced-xor-subarray-length/&quot;&gt;Find Maximum Balanced XOR Subarray Length&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++//find-maximum-balanced-xor-subarray-length.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-maximum-balanced-xor-subarray-length.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3760&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-substrings-with-distinct-start/&quot;&gt;Maximum Substrings With Distinct Start&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-substrings-with-distinct-start.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-substrings-with-distinct-start.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3761&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-absolute-distance-between-mirror-pairs/&quot;&gt;Minimum Absolute Distance Between Mirror Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-absolute-distance-between-mirror-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-absolute-distance-between-mirror-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3773&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-equal-length-runs/&quot;&gt;Maximum Number of Equal Length Runs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-equal-length-runs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-equal-length-runs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3779&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-operations-to-have-distinct-elements/&quot;&gt;Minimum Number of Operations to Have Distinct Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-operations-to-have-distinct-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-operations-to-have-distinct-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3784&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-deletion-cost-to-make-all-characters-equal/&quot;&gt;Minimum Deletion Cost to Make All Characters Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-deletion-cost-to-make-all-characters-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-deletion-cost-to-make-all-characters-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3803&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-residue-prefixes/&quot;&gt;Count Residue Prefixes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-residue-prefixes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-residue-prefixes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3804&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-centered-subarrays/&quot;&gt;Number of Centered Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-centered-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-centered-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3805&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-caesar-cipher-pairs/&quot;&gt;Count Caesar Cipher Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-caesar-cipher-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-caesar-cipher-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3810&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-reach-target-array/&quot;&gt;Minimum Operations to Reach Target Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-reach-target-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-reach-target-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3837&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/delayed-count-of-equal-elements/&quot;&gt;Delayed Count of Equal Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/delayed-count-of-equal-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/delayed-count-of-equal-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3839&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-prefix-connected-groups/&quot;&gt;Number of Prefix Connected Groups&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-prefix-connected-groups.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-prefix-connected-groups.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3842&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/toggle-light-bulbs/&quot;&gt;Toggle Light Bulbs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/toggle-light-bulbs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/toggle-light-bulbs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3843&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/first-element-with-unique-frequency/&quot;&gt;First Element with Unique Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/first-element-with-unique-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/first-element-with-unique-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3846&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-distance-to-type-a-string-using-one-finger/&quot;&gt;Total Distance to Type a String Using One Finger&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-distance-to-type-a-string-using-one-finger.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-distance-to-type-a-string-using-one-finger.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3848&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-digitorial-permutation/&quot;&gt;Check Digitorial Permutation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-digitorial-permutation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-digitorial-permutation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn + 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3852&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-pair-with-different-frequencies/&quot;&gt;Smallest Pair With Different Frequencies&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-pair-with-different-frequencies.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-pair-with-different-frequencies.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3866&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/first-unique-even-element/&quot;&gt;First Unique Even Element&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/first-unique-even-element.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/first-unique-even-element.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3889&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/mirror-frequency-distance/&quot;&gt;Mirror Frequency Distance&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/mirror-frequency-distance.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/mirror-frequency-distance.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 36)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(36)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3890&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/integers-with-multiple-sum-of-two-cubes/&quot;&gt;Integers With Multiple Sum of Two Cubes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/integers-with-multiple-sum-of-two-cubes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/integers-with-multiple-sum-of-two-cubes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^(2/3) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^(2/3))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Freq Table, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3900&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-balanced-substring-after-one-swap/&quot;&gt;Longest Balanced Substring After One Swap&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-balanced-substring-after-one-swap.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-balanced-substring-after-one-swap.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/contiguous-array/&quot;&gt;Contiguous Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3901&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/good-subsequence-queries/&quot;&gt;Good Subsequence Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/good-subsequence-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/good-subsequence-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(rlog(logr))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(r + n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlog(logr) + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3913&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sort-vowels-by-frequency/&quot;&gt;Sort Vowels by Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sort-vowels-by-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sort-vowels-by-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3917&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-indices-with-opposite-parity/&quot;&gt;Count Indices With Opposite Parity&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-indices-with-opposite-parity.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-indices-with-opposite-parity.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3921&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/score-validator/&quot;&gt;Score Validator&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/score-validator.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/score-validator.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3926&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-valid-word-occurrences/&quot;&gt;Count Valid Word Occurrences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-valid-word-occurrences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-valid-word-occurrences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Math&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3001&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-capture-the-queen/&quot;&gt;Minimum Moves to Capture The Queen&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-capture-the-queen.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-capture-the-queen.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3007&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-that-sum-of-the-prices-is-less-than-or-equal-to-k/&quot;&gt;Maximum Number That Sum of the Prices Is Less Than or Equal to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-that-sum-of-the-prices-is-less-than-or-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-that-sum-of-the-prices-is-less-than-or-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max(logk, x) * log((logk) / x))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((logk) / x)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation, Binary Search, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3021&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/alice-and-bob-playing-flower-game/&quot;&gt;Alice and Bob Playing Flower Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/alice-and-bob-playing-flower-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/alice-and-bob-playing-flower-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3024&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/type-of-triangle-ii/&quot;&gt;Type of Triangle II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/type-of-triangle-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/type-of-triangle-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3032&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-numbers-with-unique-digits-ii/&quot;&gt;Count Numbers With Unique Digits II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-numbers-with-unique-digits-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-numbers-with-unique-digits-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logb)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒, variant of &lt;a href=&quot;https://leetcode.com/problems/count-numbers-with-unique-digits/&quot;&gt;Count Numbers With Unique Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Hash Table, Bitmasks, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3047&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-largest-area-of-square-inside-two-rectangles/&quot;&gt;Find the Largest Area of Square Inside Two Rectangles&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-largest-area-of-square-inside-two-rectangles.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-largest-area-of-square-inside-two-rectangles.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Meidum&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3084&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-starting-and-ending-with-given-character/&quot;&gt;Count Substrings Starting and Ending with Given Character&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-starting-and-ending-with-given-character.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-starting-and-ending-with-given-character.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Meidum&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3091&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k/&quot;&gt;Apply Operations to Make Sum of Array Greater Than or Equal to k&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Meidum&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://codeforces.com/contest/1426/problem/C&quot;&gt;Codeforces Round #674 C&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3099&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/harshad-number/&quot;&gt;Harshad Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/harshad-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/harshad-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logx)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3102&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-manhattan-distances/&quot;&gt;Minimize Manhattan Distances&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-manhattan-distances.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-manhattan-distances.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3115&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-prime-difference/&quot;&gt;Maximum Prime Difference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-prime-difference.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-prime-difference.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3128&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/right-triangles/&quot;&gt;Right Triangles&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/right-triangles.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/right-triangles.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n, m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Combinatorics, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3154&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-number-of-ways-to-reach-the-k-th-stair/&quot;&gt;Find Number of Ways to Reach the K-th Stair&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-number-of-ways-to-reach-the-k-th-stair.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-number-of-ways-to-reach-the-k-th-stair.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3155&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-upgradable-servers/&quot;&gt;Maximum Number of Upgradable Servers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-upgradable-servers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-upgradable-servers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3162&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-good-pairs-i/&quot;&gt;Find the Number of Good Pairs I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-good-pairs-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-good-pairs-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlogr + n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Number Theory, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3164&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-good-pairs-ii/&quot;&gt;Find the Number of Good Pairs II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-good-pairs-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-good-pairs-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlogr + n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3178&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-child-who-has-the-ball-after-k-seconds/&quot;&gt;Find the Child Who Has the Ball After K Seconds&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-child-who-has-the-ball-after-k-seconds.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-child-who-has-the-ball-after-k-seconds.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3179&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-n-th-value-after-k-seconds/&quot;&gt;Find the N-th Value After K Seconds&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-n-th-value-after-k-seconds.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-n-th-value-after-k-seconds.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3183&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/the-number-of-ways-to-make-the-sum/&quot;&gt;The Number of Ways to Make the Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/the-number-of-ways-to-make-the-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/the-number-of-ways-to-make-the-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Math, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3190&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-operations-to-make-all-elements-divisible-by-three/&quot;&gt;Find Minimum Operations to Make All Elements Divisible by Three&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-operations-to-make-all-elements-divisible-by-three.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-operations-to-make-all-elements-divisible-by-three.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3200&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-height-of-a-triangle/&quot;&gt;Maximum Height of a Triangle&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-height-of-a-triangle.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-height-of-a-triangle.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3222&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-winning-player-in-coin-game/&quot;&gt;Find the Winning Player in Coin Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-winning-player-in-coin-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-winning-player-in-coin-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3227&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/vowels-game-in-a-string/&quot;&gt;Vowels Game in a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/vowels-game-in-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/vowels-game-in-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3232&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-if-digit-game-can-be-won/&quot;&gt;Find if Digit Game Can Be Won&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-if-digit-game-can-be-won.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-if-digit-game-can-be-won.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Game Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3247&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-subsequences-with-odd-sum/&quot;&gt;Number of Subsequences with Odd Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-subsequences-with-odd-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-subsequences-with-odd-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Fast Exponentiation, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3250&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-count-of-monotonic-pairs-i/&quot;&gt;Find the Count of Monotonic Pairs I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-count-of-monotonic-pairs-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-count-of-monotonic-pairs-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Stars and Bars, DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3251&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-count-of-monotonic-pairs-ii/&quot;&gt;Find the Count of Monotonic Pairs II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-count-of-monotonic-pairs-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-count-of-monotonic-pairs-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Stars and Bars, DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3270&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-key-of-the-numbers/&quot;&gt;Find the Key of the Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-key-of-the-numbers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-key-of-the-numbers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3272&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-count-of-good-integers/&quot;&gt;Find the Count of Good Integers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-count-of-good-integers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-count-of-good-integers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 10 * 10^((n + 1)/2))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 10 * (10 * nHr(10, n/2)))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3274&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-two-chessboard-squares-have-the-same-color/&quot;&gt;Check if Two Chessboard Squares Have the Same Color&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-two-chessboard-squares-have-the-same-color.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-two-chessboard-squares-have-the-same-color.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Parity&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3284&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-consecutive-subarrays/&quot;&gt;Sum of Consecutive Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-consecutive-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-consecutive-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3299&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-consecutive-subsequences/&quot;&gt;Sum of Consecutive Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-consecutive-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-consecutive-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3312&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sorted-gcd-pair-queries/&quot;&gt;Sorted GCD Pair Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sorted-gcd-pair-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sorted-gcd-pair-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlogr + qlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Freq Table, Prefix Sum, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3317&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-possible-ways-for-an-event/&quot;&gt;Find the Number of Possible Ways for an Event&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-possible-ways-for-an-event.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-possible-ways-for-an-event.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(max_n^2 + max_y * min(max_n, max_x))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(min(n, x))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max_n^2 + max_y * min(max_n, max_x))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3326&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-division-operations-to-make-array-non-decreasing/&quot;&gt;Minimum Division Operations to Make Array Non Decreasing&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-division-operations-to-make-array-non-decreasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-division-operations-to-make-array-non-decreasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3339&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-k-even-arrays/&quot;&gt;Find the Number of K-Even Arrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-k-even-arrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-k-even-arrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Stars and Bars, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3345&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-divisible-digit-product-i/&quot;&gt;Smallest Divisible Digit Product I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-divisible-digit-product-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-divisible-digit-product-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3348&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-divisible-digit-product-ii/&quot;&gt;Smallest Divisible Digit Product II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-divisible-digit-product-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-divisible-digit-product-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + logt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy, Prefix Sum, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3360&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/stone-removal-game/&quot;&gt;Stone Removal Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/stone-removal-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/stone-removal-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3395&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/subsequences-with-a-unique-middle-mode-i/&quot;&gt;Subsequences with a Unique Middle Mode I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/subsequences-with-a-unique-middle-mode-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/subsequences-with-a-unique-middle-mode-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3405&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-arrays-with-k-matching-adjacent-elements/&quot;&gt;Count the Number of Arrays with K Matching Adjacent Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-arrays-with-k-matching-adjacent-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-arrays-with-k-matching-adjacent-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + logm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Fast Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3411&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-subarray-with-equal-products/&quot;&gt;Maximum Subarray With Equal Products&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-subarray-with-equal-products.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-subarray-with-equal-products.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r * log(logr))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n * log(logr))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r * log(logr))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3416&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/subsequences-with-a-unique-middle-mode-ii/&quot;&gt;Subsequences with a Unique Middle Mode II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/subsequences-with-a-unique-middle-mode-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/subsequences-with-a-unique-middle-mode-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Prefix Sum, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3426&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/manhattan-distances-of-all-arrangements-of-pieces/&quot;&gt;Manhattan Distances of All Arrangements of Pieces&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/manhattan-distances-of-all-arrangements-of-pieces.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/manhattan-distances-of-all-arrangements-of-pieces.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(max(m * n))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max(m * n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3428&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-and-minimum-sums-of-at-most-size-k-subsequences/&quot;&gt;Maximum and Minimum Sums of at Most Size K Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-and-minimum-sums-of-at-most-size-k-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-and-minimum-sums-of-at-most-size-k-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Combinatorics, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3447&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/assign-elements-to-groups-with-constraints/&quot;&gt;Assign Elements to Groups with Constraints&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/assign-elements-to-groups-with-constraints.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/assign-elements-to-groups-with-constraints.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + r * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3448&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-divisible-by-last-digit/&quot;&gt;Count Substrings Divisible By Last Digit&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-divisible-by-last-digit.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-divisible-by-last-digit.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Case Works, Math, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3461&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-digits-are-equal-in-string-after-operations-i/&quot;&gt;Check If Digits Are Equal in String After Operations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-digits-are-equal-in-string-after-operations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-digits-are-equal-in-string-after-operations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Fast Exponentiation, &lt;code&gt;Luca&#39;s Theorem&lt;/code&gt;, Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3463&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-digits-are-equal-in-string-after-operations-ii/&quot;&gt;Check If Digits Are Equal in String After Operations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-digits-are-equal-in-string-after-operations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-digits-are-equal-in-string-after-operations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Fast Exponentiation, &lt;code&gt;Lucas&#39;s Theorem&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3470&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/permutations-iv/&quot;&gt;Permutations IV&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/permutations-iv.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/permutations-iv.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3483&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/unique-3-digit-even-numbers/&quot;&gt;Unique 3-Digit Even Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/unique-3-digit-even-numbers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/unique-3-digit-even-numbers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3492&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-containers-on-a-ship/&quot;&gt;Maximum Containers on a Ship&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-containers-on-a-ship.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-containers-on-a-ship.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3512&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-sum-divisible-by-k/&quot;&gt;Minimum Operations to Make Array Sum Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-sum-divisible-by-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-sum-divisible-by-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3513&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-unique-xor-triplets-i/&quot;&gt;Number of Unique XOR Triplets I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-unique-xor-triplets-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-unique-xor-triplets-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bit Manipulation, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3516&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-closest-person/&quot;&gt;Find Closest Person&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-closest-person.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-closest-person.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3519&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-numbers-with-non-decreasing-digits/&quot;&gt;Count Numbers with Non-Decreasing Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-numbers-with-non-decreasing-digits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-numbers-with-non-decreasing-digits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Stars and Bars, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3556&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-largest-prime-substrings/&quot;&gt;Sum of Largest Prime Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-largest-prime-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-largest-prime-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * sqrt(r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3560&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-log-transportation-cost/&quot;&gt;Find Minimum Log Transportation Cost&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-log-transportation-cost.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-log-transportation-cost.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3577&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-computer-unlocking-permutations/&quot;&gt;Count the Number of Computer Unlocking Permutations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-computer-unlocking-permutations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-computer-unlocking-permutations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3588&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-maximum-area-of-a-triangle/&quot;&gt;Find Maximum Area of a Triangle&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-maximum-area-of-a-triangle.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-maximum-area-of-a-triangle.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3596&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-path-with-alternating-directions-i/&quot;&gt;Minimum Cost Path with Alternating Directions I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-path-with-alternating-directions-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-path-with-alternating-directions-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3602&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/hexadecimal-and-hexatrigesimal-conversion/&quot;&gt;Hexadecimal and Hexatrigesimal Conversion&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/hexadecimal-and-hexatrigesimal-conversion.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/hexadecimal-and-hexatrigesimal-conversion.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3618&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/split-array-by-prime-indices/&quot;&gt;Split Array by Prime Indices&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/split-array-by-prime-indices.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/split-array-by-prime-indices.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(max_n)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max_n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3621&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-integers-with-popcount-depth-equal-to-k-i/&quot;&gt;Number of Integers With Popcount-Depth Equal to K I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-integers-with-popcount-depth-equal-to-k-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-integers-with-popcount-depth-equal-to-k-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O((logr)^2)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O((logn)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((logr)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3622&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-divisibility-by-digit-sum-and-product/&quot;&gt;Check Divisibility by Digit Sum and Product&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-divisibility-by-digit-sum-and-product.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-divisibility-by-digit-sum-and-product.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3623&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-number-of-trapezoids-i/&quot;&gt;Count Number of Trapezoids I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-number-of-trapezoids-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-number-of-trapezoids-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3624&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-integers-with-popcount-depth-equal-to-k-ii/&quot;&gt;Number of Integers With Popcount-Depth Equal to K II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-integers-with-popcount-depth-equal-to-k-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-integers-with-popcount-depth-equal-to-k-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O((logr) * log(logr))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(nlogr + max_k * n + nlogn + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr + max_k * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3625&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-number-of-trapezoids-ii/&quot;&gt;Count Number of Trapezoids II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-number-of-trapezoids-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-number-of-trapezoids-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3648&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-sensors-to-cover-grid/&quot;&gt;Minimum Sensors to Cover Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-sensors-to-cover-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-sensors-to-cover-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3658&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/gcd-of-odd-and-even-sums/&quot;&gt;GCD of Odd and Even Sums&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/gcd-of-odd-and-even-sums.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/gcd-of-odd-and-even-sums.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3659&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/partition-array-into-k-distinct-groups/&quot;&gt;Partition Array Into K-Distinct Groups&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/partition-array-into-k-distinct-groups.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/partition-array-into-k-distinct-groups.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3664&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/two-letter-card-game/&quot;&gt;Two-Letter Card Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/two-letter-card-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/two-letter-card-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3666&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-equalize-binary-string/&quot;&gt;Minimum Operations to Equalize Binary String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-equalize-binary-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-equalize-binary-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3671&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-beautiful-subsequences/&quot;&gt;Sum of Beautiful Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-beautiful-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-beautiful-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(rlogr)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(nlogr * (log(nlogr) + logn))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, BIT, Fenwick Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3677&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-binary-palindromic-numbers/&quot;&gt;Count Binary Palindromic Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-binary-palindromic-numbers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-binary-palindromic-numbers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3697&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/compute-decimal-representation/&quot;&gt;Compute Decimal Representation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/compute-decimal-representation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/compute-decimal-representation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3726&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/remove-zeros-in-decimal-representation/&quot;&gt;Remove Zeros in Decimal Representation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/remove-zeros-in-decimal-representation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/remove-zeros-in-decimal-representation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3731&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-missing-elements/&quot;&gt;Find Missing Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-missing-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-missing-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3745&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-expression-of-three-elements/&quot;&gt;Maximize Expression of Three Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-expression-of-three-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-expression-of-three-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3747&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-distinct-integers-after-removing-zeros/&quot;&gt;Count Distinct Integers After Removing Zeros&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-distinct-integers-after-removing-zeros.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-distinct-integers-after-removing-zeros.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3754&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/concatenate-non-zero-digits-and-multiply-by-sum-i/&quot;&gt;Concatenate Non-Zero Digits and Multiply by Sum I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/concatenate-non-zero-digits-and-multiply-by-sum-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/concatenate-non-zero-digits-and-multiply-by-sum-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3765&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/complete-prime-number/&quot;&gt;Complete Prime Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/complete-prime-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/complete-prime-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn * sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3770&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/largest-prime-from-consecutive-prime-sum/&quot;&gt;Largest Prime from Consecutive Prime Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/largest-prime-from-consecutive-prime-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/largest-prime-from-consecutive-prime-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(logp)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(sqrt(r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Precompute, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3783&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/mirror-distance-of-an-integer/&quot;&gt;Mirror Distance of an Integer&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/mirror-distance-of-an-integer.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/mirror-distance-of-an-integer.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3789&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-acquire-required-items/&quot;&gt;Minimum Cost to Acquire Required Items&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-acquire-required-items.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-acquire-required-items.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3790&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-all-ones-multiple/&quot;&gt;Smallest All-Ones Multiple&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-all-ones-multiple.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-all-ones-multiple.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;duplicate of &lt;a href=&quot;https://leetcode.com/problems/smallest-integer-divisible-by-k/&quot;&gt;Smallest Integer Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3798&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/largest-even-number/&quot;&gt;Largest Even Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/largest-even-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/largest-even-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3800&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-make-two-binary-strings-equal/&quot;&gt;Minimum Cost to Make Two Binary Strings Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-make-two-binary-strings-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-make-two-binary-strings-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3817&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/good-indices-in-a-digit-string/&quot;&gt;Good Indices in a Digit String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/good-indices-in-a-digit-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/good-indices-in-a-digit-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Math, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3821&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-nth-smallest-integer-with-k-one-bits/&quot;&gt;Find Nth Smallest Integer With K One Bits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-nth-smallest-integer-with-k-one-bits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-nth-smallest-integer-with-k-one-bits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(r^2)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3855&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-k-digit-numbers-in-a-range/&quot;&gt;Sum of K-Digit Numbers in a Range&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-k-digit-numbers-in-a-range.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-k-digit-numbers-in-a-range.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3857&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-split-into-ones/&quot;&gt;Minimum Cost to Split into Ones&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-split-into-ones.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-split-into-ones.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3870&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-commas-in-range/&quot;&gt;Count Commas in Range&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-commas-in-range.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-commas-in-range.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3871&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-commas-in-range-ii/&quot;&gt;Count Commas in Range II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-commas-in-range-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-commas-in-range-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3881&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/direction-assignments-with-exactly-k-visible-people/&quot;&gt;Direction Assignments with Exactly K Visible People&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/direction-assignments-with-exactly-k-visible-people.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/direction-assignments-with-exactly-k-visible-people.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3895&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-digit-appearances/&quot;&gt;Count Digit Appearances&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-digit-appearances.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-digit-appearances.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3896&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-transform-array-into-alternating-prime/&quot;&gt;Count Digit Appearances&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-transform-array-into-alternating-prime.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-transform-array-into-alternating-prime.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;, runtime: &lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Prime Gap, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3899&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/angles-of-a-triangle/&quot;&gt;Angles of a Triangle&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/angles-of-a-triangle.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/angles-of-a-triangle.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Law of Cosines&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3908&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/valid-digit-number/&quot;&gt;Valid Digit Number&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/valid-digit-number.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/valid-digit-number.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3927&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-array-sum-using-divisible-replacements/&quot;&gt;Minimize Array Sum Using Divisible Replacements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-array-sum-using-divisible-replacements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-array-sum-using-divisible-replacements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Sort&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3011&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-if-array-can-be-sorted/&quot;&gt;Find if Array Can Be Sorted&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-if-array-can-be-sorted.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-if-array-can-be-sorted.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3025&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-ways-to-place-people-i/&quot;&gt;Find the Number of Ways to Place People I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-ways-to-place-people-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-ways-to-place-people-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3027&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-ways-to-place-people-ii/&quot;&gt;Find the Number of Ways to Place People II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-ways-to-place-people-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-ways-to-place-people-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3081&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/replace-question-marks-in-string-to-minimize-its-value/&quot;&gt;Replace Question Marks in String to Minimize Its Value&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/replace-question-marks-in-string-to-minimize-its-value.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/replace-question-marks-in-string-to-minimize-its-value.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26 * log(26))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Counting Sort, Heap, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3132&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-integer-added-to-array-ii/&quot;&gt;Find the Integer Added to Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-integer-added-to-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-integer-added-to-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Paritial Sort, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3169&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-days-without-meetings/&quot;&gt;Count Days Without Meetings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-days-without-meetings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-days-without-meetings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3194&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-average-of-smallest-and-largest-elements/&quot;&gt;Minimum Average of Smallest and Largest Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-average-of-smallest-and-largest-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-average-of-smallest-and-largest-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3309&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-possible-number-by-binary-concatenation/&quot;&gt;Maximum Possible Number by Binary Concatenation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-possible-number-by-binary-concatenation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-possible-number-by-binary-concatenation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * logr * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3394&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-grid-can-be-cut-into-sections/&quot;&gt;Check if Grid can be Cut into Sections&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-grid-can-be-cut-into-sections.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-grid-can-be-cut-into-sections.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Merge Intervals&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3431&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-unlocked-indices-to-sort-nums/&quot;&gt;Minimum Unlocked Indices to Sort Nums&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-unlocked-indices-to-sort-nums.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-unlocked-indices-to-sort-nums.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3551&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-swaps-to-sort-by-digit-sum/&quot;&gt;Minimum Swaps to Sort by Digit Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-swaps-to-sort-by-digit-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-swaps-to-sort-by-digit-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3631&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sort-threats-by-severity-and-exploitability/&quot;&gt;Sort Threats by Severity and Exploitability&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sort-threats-by-severity-and-exploitability.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sort-threats-by-severity-and-exploitability.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3644&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-k-to-sort-a-permutation/&quot;&gt;Maximum K to Sort a Permutation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-k-to-sort-a-permutation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-k-to-sort-a-permutation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Bitmasks, Constructive Algorithms&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3667&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sort-array-by-absolute-value/&quot;&gt;Sort Array By Absolute Value&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sort-array-by-absolute-value.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sort-array-by-absolute-value.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3759&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-elements-with-at-least-k-greater-values/&quot;&gt;Count Elements With at Least K Greater Values&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-elements-with-at-least-k-greater-values.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-elements-with-at-least-k-greater-values.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3780&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-sum-of-three-numbers-divisible-by-three/&quot;&gt;Maximum Sum of Three Numbers Divisible by Three&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-sum-of-three-numbers-divisible-by-three.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-sum-of-three-numbers-divisible-by-three.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3799&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/word-squares-ii/&quot;&gt;Word Squares II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/word-squares-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/word-squares-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^4)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Brute Force, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3886&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-sortable-integers/&quot;&gt;Sum of Sortable Integers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-sortable-integers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-sortable-integers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlog(logn))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Two Pointers&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3006&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-beautiful-indices-in-the-given-array-i/&quot;&gt;Find Beautiful Indices in the Given Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-beautiful-indices-in-the-given-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-beautiful-indices-in-the-given-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(a + b + x + y, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;KMP Algorithm&lt;/code&gt;, Binary Search, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3008&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-beautiful-indices-in-the-given-array-ii/&quot;&gt;Find Beautiful Indices in the Given Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-beautiful-indices-in-the-given-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-beautiful-indices-in-the-given-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(a + b + x + y, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;KMP Algorithm&lt;/code&gt;, Binary Search, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3013&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/divide-an-array-into-subarrays-with-minimum-cost-ii/&quot;&gt;Divide an Array Into Subarrays With Minimum Cost II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/divide-an-array-into-subarrays-with-minimum-cost-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/divide-an-array-into-subarrays-with-minimum-cost-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogd)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sliding Window, Heap, Freq Table, Ordered Set, BST, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3085&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-deletions-to-make-string-k-special/&quot;&gt;Minimum Deletions to Make String K-Special&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-deletions-to-make-string-k-special.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-deletions-to-make-string-k-special.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3090&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/&quot;&gt;Maximum Length Substring With Two Occurrences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-length-substring-with-two-occurrences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-length-substring-with-two-occurrences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Sliding Window, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3095&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-i/&quot;&gt;Shortest Subarray With OR at Least K I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-subarray-with-or-at-least-k-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-subarray-with-or-at-least-k-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 30)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(30)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Freq Table, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3097&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-ii/&quot;&gt;Shortest Subarray With OR at Least K II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-subarray-with-or-at-least-k-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-subarray-with-or-at-least-k-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 30)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(30)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3171&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-subarray-with-bitwise-or-closest-to-k/&quot;&gt;Find Subarray With Bitwise OR Closest to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-subarray-with-bitwise-or-closest-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-subarray-with-bitwise-or-closest-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/find-a-value-of-a-mysterious-function-closest-to-target/&quot;&gt;Find a Value of a Mysterious Function Closest to Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3206&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/alternating-groups-i/&quot;&gt;Alternating Groups I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/alternating-groups-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/alternating-groups-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3208&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/alternating-groups-ii/&quot;&gt;Alternating Groups II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/alternating-groups-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/alternating-groups-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3234&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-substrings-with-dominant-ones/&quot;&gt;Count the Number of Substrings With Dominant Ones&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-substrings-with-dominant-ones.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-substrings-with-dominant-ones.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^(3/2))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3254&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i/&quot;&gt;Find the Power of K-Size Subarrays I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-power-of-k-size-subarrays-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-power-of-k-size-subarrays-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3255&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-power-of-k-size-subarrays-ii/&quot;&gt;Find the Power of K-Size Subarrays II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-power-of-k-size-subarrays-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-power-of-k-size-subarrays-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3258&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-that-satisfy-k-constraint-i/&quot;&gt;Count Substrings That Satisfy K-Constraint I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-that-satisfy-k-constraint-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-that-satisfy-k-constraint-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3261&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-that-satisfy-k-constraint-ii/&quot;&gt;Count Substrings That Satisfy K-Constraint II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-that-satisfy-k-constraint-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-that-satisfy-k-constraint-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Prefix Sum, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3264&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/final-array-state-after-k-multiplication-operations-i/&quot;&gt;Final Array State After K Multiplication Operations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/final-array-state-after-k-multiplication-operations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/final-array-state-after-k-multiplication-operations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Two Pointers, Sliding Window, Fast Exponentiation, Heap, Binary Search, Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3266&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/final-array-state-after-k-multiplication-operations-ii/&quot;&gt;Final Array State After K Multiplication Operations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/final-array-state-after-k-multiplication-operations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/final-array-state-after-k-multiplication-operations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Two Pointers, Sliding Window, Fast Exponentiation, Heap, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3297&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-i/&quot;&gt;Count Substrings That Can Be Rearranged to Contain a String I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-that-can-be-rearranged-to-contain-a-string-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-that-can-be-rearranged-to-contain-a-string-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3298&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/&quot;&gt;Count Substrings That Can Be Rearranged to Contain a String II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-that-can-be-rearranged-to-contain-a-string-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-that-can-be-rearranged-to-contain-a-string-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3305&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-i/&quot;&gt;Count of Substrings Containing Every Vowel and K Consonants I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-of-substrings-containing-every-vowel-and-k-consonants-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-of-substrings-containing-every-vowel-and-k-consonants-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3306&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/&quot;&gt;Count of Substrings Containing Every Vowel and K Consonants II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-of-substrings-containing-every-vowel-and-k-consonants-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-of-substrings-containing-every-vowel-and-k-consonants-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3318&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-x-sum-of-all-k-long-subarrays-i/&quot;&gt;Find X-Sum of All K-Long Subarrays I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-x-sum-of-all-k-long-subarrays-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-x-sum-of-all-k-long-subarrays-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table, Ordered Set, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3321&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-x-sum-of-all-k-long-subarrays-ii/&quot;&gt;Find X-Sum of All K-Long Subarrays II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-x-sum-of-all-k-long-subarrays-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-x-sum-of-all-k-long-subarrays-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Freq Table, Ordered Set, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3323&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-connected-groups-by-inserting-interval/&quot;&gt;Minimize Connected Groups by Inserting Interval&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-connected-groups-by-inserting-interval.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-connected-groups-by-inserting-interval.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Prefix Sum, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3325&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-with-k-frequency-characters-i/&quot;&gt;Count Substrings With K-Frequency Characters I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-with-k-frequency-characters-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-with-k-frequency-characters-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3329&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-substrings-with-k-frequency-characters-ii/&quot;&gt;Count Substrings With K-Frequency Characters II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-substrings-with-k-frequency-characters-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-substrings-with-k-frequency-characters-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3346&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-frequency-of-an-element-after-performing-operations-i/&quot;&gt;Maximum Frequency of an Element After Performing Operations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-frequency-of-an-element-after-performing-operations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-frequency-of-an-element-after-performing-operations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Freq Table, Two Pointers, Sliding Window, Difference Array, Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3347&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-frequency-of-an-element-after-performing-operations-ii/&quot;&gt;Maximum Frequency of an Element After Performing Operations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-frequency-of-an-element-after-performing-operations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-frequency-of-an-element-after-performing-operations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Freq Table, Two Pointers, Sliding Window, Difference Array, Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3364&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-positive-sum-subarray/&quot;&gt;Minimum Positive Sum Subarray&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-positive-sum-subarray.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-positive-sum-subarray.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Two Pointers, Sliding Window, Sorted List, BST, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3413&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-coins-from-k-consecutive-bags/&quot;&gt;Maximum Coins From K Consecutive Bags&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-coins-from-k-consecutive-bags.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-coins-from-k-consecutive-bags.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3420&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-non-decreasing-subarrays-after-k-operations/&quot;&gt;Count Non-Decreasing Subarrays After K Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-non-decreasing-subarrays-after-k-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-non-decreasing-subarrays-after-k-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Deque, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3422&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-subarray-elements-equal/&quot;&gt;Minimum Operations to Make Subarray Elements Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-subarray-elements-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-subarray-elements-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Math, Two Pointers, Sliding Window, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3425&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-special-path/&quot;&gt;Longest Special Path&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-special-path.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-special-path.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Two Pointers, Sliding Window, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3430&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-and-minimum-sums-of-at-most-size-k-subarrays/&quot;&gt;Maximum and Minimum Sums of at Most Size K Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-and-minimum-sums-of-at-most-size-k-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-and-minimum-sums-of-at-most-size-k-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Mono Deque&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3439&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reschedule-meetings-for-maximum-free-time-i/&quot;&gt;Reschedule Meetings for Maximum Free Time I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reschedule-meetings-for-maximum-free-time-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reschedule-meetings-for-maximum-free-time-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3445&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-difference-between-even-and-odd-frequency-ii/&quot;&gt;Maximum Difference Between Even and Odd Frequency II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-difference-between-even-and-odd-frequency-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-difference-between-even-and-odd-frequency-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d^2 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3460&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-common-prefix-after-at-most-one-removal/&quot;&gt;Longest Common Prefix After at Most One Removal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-common-prefix-after-at-most-one-removal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-common-prefix-after-at-most-one-removal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3485&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-common-prefix-of-k-strings-after-removal/&quot;&gt;Longest Common Prefix of K Strings After Removal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-common-prefix-of-k-strings-after-removal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-common-prefix-of-k-strings-after-removal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l * nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Sliding Window, Prefix Sum, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3486&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-special-path-ii/&quot;&gt;Longest Special Path II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-special-path-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-special-path-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Two Pointers, Sliding Window, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3555&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-subarray-to-sort-in-every-sliding-window/&quot;&gt;Smallest Subarray to Sort in Every Sliding Window&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-subarray-to-sort-in-every-sliding-window.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-subarray-to-sort-in-every-sliding-window.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Mono Stack, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3567&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-absolute-difference-in-sliding-submatrix/&quot;&gt;Minimum Absolute Difference in Sliding Submatrix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-absolute-difference-in-sliding-submatrix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-absolute-difference-in-sliding-submatrix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Sort, Two Pointers, Sliding Window, BST, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3584&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-product-of-first-and-last-elements-of-a-subsequence/&quot;&gt;Maximum Product of First and Last Elements of a Subsequence&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-product-of-first-and-last-elements-of-a-subsequence.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-product-of-first-and-last-elements-of-a-subsequence.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3589&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-prime-gap-balanced-subarrays/&quot;&gt;Count Prime-Gap Balanced Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-prime-gap-balanced-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-prime-gap-balanced-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Mono Deque, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3634&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-removals-to-balance-array/&quot;&gt;Minimum Removals to Balance Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-removals-to-balance-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-removals-to-balance-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3640&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/trionic-array-ii/&quot;&gt;Trionic Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/trionic-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/trionic-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3641&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-semi-repeating-subarray/&quot;&gt;Longest Semi-Repeating Subarray&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-semi-repeating-subarray.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-semi-repeating-subarray.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3649&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-perfect-pairs/&quot;&gt;Number of Perfect Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-perfect-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-perfect-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Two Pointers, Sliding Window, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3652&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/best-time-to-buy-and-sell-stock-using-strategy/&quot;&gt;Best Time to Buy and Sell Stock using Strategy&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/best-time-to-buy-and-sell-stock-using-strategy.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/best-time-to-buy-and-sell-stock-using-strategy.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3672&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-weighted-modes-in-subarrays/&quot;&gt;Sum of Weighted Modes in Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-weighted-modes-in-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-weighted-modes-in-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sorted List, BST, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3679&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-discards-to-balance-inventory/&quot;&gt;Minimum Discards to Balance Inventory&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-discards-to-balance-inventory.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-discards-to-balance-inventory.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(w)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3698&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/split-array-with-minimum-difference/&quot;&gt;Split Array With Minimum Difference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/split-array-with-minimum-difference.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/split-array-with-minimum-difference.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3740&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-distance-between-three-equal-elements-i/&quot;&gt;Minimum Distance Between Three Equal Elements I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-distance-between-three-equal-elements-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-distance-between-three-equal-elements-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3741&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-distance-between-three-equal-elements-ii/&quot;&gt;Minimum Distance Between Three Equal Elements II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-distance-between-three-equal-elements-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-distance-between-three-equal-elements-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3768&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-inversion-count-in-subarrays-of-fixed-length/&quot;&gt;Minimum Inversion Count in Subarrays of Fixed Length&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-inversion-count-in-subarrays-of-fixed-length.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-inversion-count-in-subarrays-of-fixed-length.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Coordinate Compression, BIT, Fenwick Tree, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3795&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-subarray-length-with-distinct-sum-at-least-k/&quot;&gt;Minimum Subarray Length With Distinct Sum At Least K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-subarray-length-with-distinct-sum-at-least-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-subarray-length-with-distinct-sum-at-least-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3802&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-ways-to-paint-sheets/&quot;&gt;Number of Ways to Paint Sheets&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-ways-to-paint-sheets.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-ways-to-paint-sheets.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(mlogm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3835&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-subarrays-with-cost-less-than-or-equal-to-k/&quot;&gt;Count Subarrays With Cost Less Than or Equal to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-subarrays-with-cost-less-than-or-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-subarrays-with-cost-less-than-or-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Deque, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3844&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-almost-palindromic-substring/&quot;&gt;Longest Almost-Palindromic Substring&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-almost-palindromic-substring.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-almost-palindromic-substring.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3845&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-subarray-xor-with-bounded-range/&quot;&gt;Maximum Subarray XOR with Bounded Range&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-subarray-xor-with-bounded-range.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-subarray-xor-with-bounded-range.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers, Sliding Window, Mono Deque, Bitmasks, Prefix Sum, Trie, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3851&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-requests-without-violating-the-limit/&quot;&gt;Maximum Requests Without Violating the Limit&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-requests-without-violating-the-limit.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-requests-without-violating-the-limit.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table, Sort, Deque, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3859&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-subarrays-with-k-distinct-integers/&quot;&gt;Count Subarrays With K Distinct Integers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-subarrays-with-k-distinct-integers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-subarrays-with-k-distinct-integers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3872&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-arithmetic-sequence-after-changing-at-most-one-element/&quot;&gt;Longest Arithmetic Sequence After Changing At Most One Element&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-arithmetic-sequence-after-changing-at-most-one-element.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-arithmetic-sequence-after-changing-at-most-one-element.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3874&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/valid-subarrays-with-exactly-one-peak/&quot;&gt;Valid Subarrays With Exactly One Peak&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/valid-subarrays-with-exactly-one-peak.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/valid-subarrays-with-exactly-one-peak.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Combinatorics, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Recursion&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Binary Search&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3048&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/earliest-second-to-mark-indices-i/&quot;&gt;Earliest Second to Mark Indices I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/earliest-second-to-mark-indices-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/earliest-second-to-mark-indices-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(mlogm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3049&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/earliest-second-to-mark-indices-ii/&quot;&gt;Earliest Second to Mark Indices II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/earliest-second-to-mark-indices-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/earliest-second-to-mark-indices-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((m + nlogn) *logm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3104&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-longest-self-contained-substring/&quot;&gt;Find Longest Self-Contained Substring&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-longest-self-contained-substring.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-longest-self-contained-substring.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26^3 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Brute Force, Freq Table, Two Pointers, Hash Table, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3116&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/kth-smallest-amount-with-single-denomination-combination/&quot;&gt;Kth Smallest Amount With Single Denomination Combination&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/kth-smallest-amount-with-single-denomination-combination.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/kth-smallest-amount-with-single-denomination-combination.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 2^n * logk)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Principle of Inclusion and Exclusion, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3134&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-median-of-the-uniqueness-array/&quot;&gt;Find the Median of the Uniqueness Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-median-of-the-uniqueness-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-median-of-the-uniqueness-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3135&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/equalize-strings-by-adding-or-removing-characters-at-ends/&quot;&gt;Equalize Strings by Adding or Removing Characters at Ends&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/equalize-strings-by-adding-or-removing-characters-at-ends.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/equalize-strings-by-adding-or-removing-characters-at-ends.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + m) * log(min(n, m)))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n, m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Binary Search, &lt;code&gt;Rabin-Karp Algorithm&lt;/code&gt;, Rolling Hash, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3145&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-products-of-elements-of-big-array/&quot;&gt;Find Products of Elements of Big Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-products-of-elements-of-big-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-products-of-elements-of-big-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q * (logr)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Combinatorics, Bitmasks, Fast Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3231&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-increasing-subsequence-to-be-removed/&quot;&gt;Minimum Number of Increasing Subsequence to Be Removed&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-increasing-subsequence-to-be-removed.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-increasing-subsequence-to-be-removed.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒, variant of &lt;a href=&quot;https://leetcode.com/problems/longest-increasing-subsequence/&quot;&gt;Longest Increasing Subsequence&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3233&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-count-of-numbers-which-are-not-special/&quot;&gt;Find the Count of Numbers Which Are Not Special&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-count-of-numbers-which-are-not-special.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-count-of-numbers-which-are-not-special.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(sqrt(r))&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(sqrt(r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3281&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-score-of-numbers-in-ranges/&quot;&gt;Maximize Score of Numbers in Ranges&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-score-of-numbers-in-ranges.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-score-of-numbers-in-ranges.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3288&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/length-of-the-longest-increasing-path/&quot;&gt;Length of the Longest Increasing Path&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/length-of-the-longest-increasing-path.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/length-of-the-longest-increasing-path.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Binary Search, Longest Increasing Subsequence&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3296&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-seconds-to-make-mountain-height-zero/&quot;&gt;Minimum Number of Seconds to Make Mountain Height Zero&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-seconds-to-make-mountain-height-zero.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-seconds-to-make-mountain-height-zero.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Quadratic Equation, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3356&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zero-array-transformation-ii/&quot;&gt;Zero Array Transformation II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zero-array-transformation-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zero-array-transformation-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3357&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-the-maximum-adjacent-element-difference/&quot;&gt;Minimize the Maximum Adjacent Element Difference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-the-maximum-adjacent-element-difference.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-the-maximum-adjacent-element-difference.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3398&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-substring-with-identical-characters-i/&quot;&gt;Smallest Substring With Identical Characters I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-substring-with-identical-characters-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-substring-with-identical-characters-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3399&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-substring-with-identical-characters-ii/&quot;&gt;Smallest Substring With Identical Characters II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-substring-with-identical-characters-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-substring-with-identical-characters-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3449&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-minimum-game-score/&quot;&gt;Maximize the Minimum Game Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-minimum-game-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-minimum-game-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * log(m * r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3464&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-distance-between-points-on-a-square/&quot;&gt;Maximize the Distance Between Points on a Square&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-distance-between-points-on-a-square.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-distance-between-points-on-a-square.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + nlogs)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Binary Search, Greedy, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3477&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/fruits-into-baskets-ii/&quot;&gt;Fruits Into Baskets II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/fruits-into-baskets-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/fruits-into-baskets-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Segment Tree, Binary Search, Brute Force&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3479&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/fruits-into-baskets-iii/&quot;&gt;Fruits Into Baskets III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/fruits-into-baskets-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/fruits-into-baskets-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Segment Tree, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3520&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-threshold-for-inversion-pairs-count/&quot;&gt;Minimum Threshold for Inversion Pairs Count&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-threshold-for-inversion-pairs-count.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-threshold-for-inversion-pairs-count.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Binary Search, Sorted List, Ordered Set&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3605&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-stability-factor-of-array/&quot;&gt;Minimum Stability Factor of Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-stability-factor-of-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-stability-factor-of-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Binary Search, RMQ, Sparse Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3722&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-reverse/&quot;&gt;Lexicographically Smallest String After Reverse&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-reverse.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-reverse.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, Brute Force, Binary Search, &lt;code&gt;Rabin-Karp Algorithm&lt;/code&gt;, Rolling Hash&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3733&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-complete-all-deliveries/&quot;&gt;Minimum Time to Complete All Deliveries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-complete-all-deliveries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-complete-all-deliveries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr + logd)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3735&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-reverse-ii/&quot;&gt;Lexicographically Smallest String After Reverse II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-reverse-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-reverse-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Binary Search, &lt;code&gt;Rabin-Karp Algorithm&lt;/code&gt;, Rolling Hash&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3771&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-score-of-dungeon-runs/&quot;&gt;Total Score of Dungeon Runs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-score-of-dungeon-runs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-score-of-dungeon-runs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3807&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-repair-edges-to-traverse-a-graph/&quot;&gt;Minimum Cost to Repair Edges to Traverse a Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-repair-edges-to-traverse-a-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-repair-edges-to-traverse-a-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + m) * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Binary Search, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3824&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-k-to-reduce-array-within-limit/&quot;&gt;Minimum K to Reduce Array Within Limit&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-k-to-reduce-array-within-limit.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-k-to-reduce-array-within-limit.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3825&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-strictly-increasing-subsequence-with-non-zero-bitwise-and/&quot;&gt;Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-strictly-increasing-subsequence-with-non-zero-bitwise-and.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-strictly-increasing-subsequence-with-non-zero-bitwise-and.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr * nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, LIS, Longest Increasing Subsequence, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3826&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-partition-score/&quot;&gt;Minimum Partition Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-partition-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-partition-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP, Convex Hull Trick, WQS Binary Search, Alien Trick&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3893&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-team-size-with-overlapping-intervals/&quot;&gt;Maximum Team Size with Overlapping Intervals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-team-size-with-overlapping-intervals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-team-size-with-overlapping-intervals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3911&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/k-th-smallest-remaining-even-integer-in-subarray-queries/&quot;&gt;K-th Smallest Remaining Even Integer in Subarray Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/k-th-smallest-remaining-even-integer-in-subarray-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/k-th-smallest-remaining-even-integer-in-subarray-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3920&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-fixed-points-after-deletions/&quot;&gt;Maximize Fixed Points After Deletions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-fixed-points-after-deletions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-fixed-points-after-deletions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Binary Search, Longest Increasing Subsequence&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3924&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-threshold-path-with-limited-heavy-edges/&quot;&gt;Minimum Threshold Path With Limited Heavy Edges&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-threshold-path-with-limited-heavy-edges.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-threshold-path-with-limited-heavy-edges.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + e) * loge)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, 0-1 BFS, Deque&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Binary Search Tree&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3072&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/distribute-elements-into-two-arrays-ii/&quot;&gt;Distribute Elements Into Two Arrays II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/distribute-elements-into-two-arrays-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/distribute-elements-into-two-arrays-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sorted List, Ordered Set&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3073&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-increasing-triplet-value/&quot;&gt;Maximum Increasing Triplet Value&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-increasing-triplet-value.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-increasing-triplet-value.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sorted List, BST, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3161&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/block-placement-queries/&quot;&gt;Block Placement Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/block-placement-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/block-placement-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(qlogq)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sorted List, BST, BIT, Fenwick Tree, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3165&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-sum-of-subsequence-with-non-adjacent-elements/&quot;&gt;Maximum Sum of Subsequence With Non-adjacent Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-sum-of-subsequence-with-non-adjacent-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-sum-of-subsequence-with-non-adjacent-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3526&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/range-xor-queries-with-subarray-reversals/&quot;&gt;Range XOR Queries with Subarray Reversals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/range-xor-queries-with-subarray-reversals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/range-xor-queries-with-subarray-reversals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Treap&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Breadth-First Search&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3157&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-level-of-tree-with-minimum-sum/&quot;&gt;Find the Level of Tree with Minimum Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-level-of-tree-with-minimum-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-level-of-tree-with-minimum-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(w)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3286&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-a-safe-walk-through-a-grid/&quot;&gt;Find a Safe Walk Through a Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-a-safe-walk-through-a-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-a-safe-walk-through-a-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/minimum-obstacle-removal-to-reach-corner/&quot;&gt;Minimum Obstacle Removal to Reach Corner&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;0-1 BFS, Deque&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3373&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-ii/&quot;&gt;Maximize the Number of Target Nodes After Connecting Trees II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-number-of-target-nodes-after-connecting-trees-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-number-of-target-nodes-after-connecting-trees-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3528&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/unit-conversion-i/&quot;&gt;Unit Conversion I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/unit-conversion-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/unit-conversion-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3535&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/unit-conversion-ii/&quot;&gt;Unit Conversion II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/unit-conversion-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/unit-conversion-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;BFS, Fast Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3552&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/grid-teleportation-traversal/&quot;&gt;Grid Teleportation Traversal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/grid-teleportation-traversal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/grid-teleportation-traversal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;0-1 BFS, Deque&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3568&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-clean-the-classroom/&quot;&gt;Minimum Moves to Clean the Classroom&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-clean-the-classroom.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-clean-the-classroom.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * 2^l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * 2^l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3619&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-islands-with-total-value-divisible-by-k/&quot;&gt;Count Islands With Total Value Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-islands-with-total-value-divisible-by-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-islands-with-total-value-divisible-by-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, Flood Fill&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3629&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-jumps-to-reach-end-via-prime-teleportation/&quot;&gt;Minimum Jumps to Reach End via Prime Teleportation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-jumps-to-reach-end-via-prime-teleportation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-jumps-to-reach-end-via-prime-teleportation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(r)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3690&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/split-and-merge-array-transformation/&quot;&gt;Split and Merge Array Transformation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/split-and-merge-array-transformation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/split-and-merge-array-transformation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^4 * n!)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * n!)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3695&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-alternating-sum-using-swaps/&quot;&gt;Maximize Alternating Sum Using Swaps&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-alternating-sum-using-swaps.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-alternating-sum-using-swaps.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + s)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + s)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, Flood Fill, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3786&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-sum-of-interaction-cost-in-tree-groups/&quot;&gt;Total Sum of Interaction Cost in Tree Groups&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-sum-of-interaction-cost-in-tree-groups.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-sum-of-interaction-cost-in-tree-groups.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, DFS, Small-to-Large Merging&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3787&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-diameter-endpoints-of-a-tree/&quot;&gt;Find Diameter Endpoints of a Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-diameter-endpoints-of-a-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-diameter-endpoints-of-a-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;BFS, Tree Diameter&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3820&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/pythagorean-distance-nodes-in-a-tree/&quot;&gt;Pythagorean Distance Nodes in a Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/pythagorean-distance-nodes-in-a-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/pythagorean-distance-nodes-in-a-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3831&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/median-of-a-binary-search-tree-level/&quot;&gt;Median of a Binary Search Tree Level&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/median-of-a-binary-search-tree-level.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/median-of-a-binary-search-tree-level.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3902&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zigzag-level-sum-of-binary-tree/&quot;&gt;Zigzag Level Sum of Binary Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zigzag-level-sum-of-binary-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zigzag-level-sum-of-binary-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(w)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3905&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/multi-source-flood-fill/&quot;&gt;Multi Source Flood Fill&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/multi-source-flood-fill.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/multi-source-flood-fill.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, BFS, Flood Fill&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3923&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-generations-to-target-point/&quot;&gt;Minimum Generations to Target Point&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-generations-to-target-point.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-generations-to-target-point.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(7^6)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(7^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Depth-First Search&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3004&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-subtree-of-the-same-color/&quot;&gt;Maximum Subtree of the Same Color&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-subtree-of-the-same-color.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-subtree-of-the-same-color.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(h)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3067&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-pairs-of-connectable-servers-in-a-weighted-tree-network/&quot;&gt;Count Pairs of Connectable Servers in a Weighted Tree Network&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-pairs-of-connectable-servers-in-a-weighted-tree-network.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-pairs-of-connectable-servers-in-a-weighted-tree-network.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3203&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees/&quot;&gt;Find Minimum Diameter After Merging Two Trees&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-diameter-after-merging-two-trees.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-diameter-after-merging-two-trees.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/tree-diameter/&quot;&gt;Tree Diameter&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, BFS, Tree DP, Tree Diameter&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3249&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-good-nodes/&quot;&gt;Count the Number of Good Nodes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-good-nodes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-good-nodes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(h)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3319&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/k-th-largest-perfect-subtree-size-in-binary-tree/&quot;&gt;K-th Largest Perfect Subtree Size in Binary Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/k-th-largest-perfect-subtree-size-in-binary-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/k-th-largest-perfect-subtree-size-in-binary-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3327&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-dfs-strings-are-palindromes/&quot;&gt;Check if DFS Strings Are Palindromes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-dfs-strings-are-palindromes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-dfs-strings-are-palindromes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, &lt;code&gt;Manacher&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3331&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-subtree-sizes-after-changes/&quot;&gt;Find Subtree Sizes After Changes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-subtree-sizes-after-changes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-subtree-sizes-after-changes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3367&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-sum-of-weights-after-edge-removals/&quot;&gt;Maximize Sum of Weights after Edge Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-sum-of-weights-after-edge-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-sum-of-weights-after-edge-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3590&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/kth-smallest-path-xor-sum/&quot;&gt;Kth Smallest Path XOR Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/kth-smallest-path-xor-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/kth-smallest-path-xor-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (logn)^2 + qlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Small-to-Large Merging, Ordered Set, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3593&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-increments-to-equalize-leaf-paths/&quot;&gt;Minimum Increments to Equalize Leaf Paths&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-increments-to-equalize-leaf-paths.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-increments-to-equalize-leaf-paths.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3607&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/power-grid-maintenance/&quot;&gt;Power Grid Maintenance&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/power-grid-maintenance.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/power-grid-maintenance.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(c + n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(c + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Flood Fill, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Backtracking&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3211&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/generate-binary-strings-without-adjacent-zeros/&quot;&gt;Generate Binary Strings Without Adjacent Zeros&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/generate-binary-strings-without-adjacent-zeros.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/generate-binary-strings-without-adjacent-zeros.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backtracking, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3437&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/permutations-iii/&quot;&gt;Permutations III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/permutations-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/permutations-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * n!)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Backtracking, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3565&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sequential-grid-path-cover/&quot;&gt;Sequential Grid Path Cover&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sequential-grid-path-cover.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sequential-grid-path-cover.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * 3^(m * n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Backtracking&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3669&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/balanced-k-factor-decomposition/&quot;&gt;Balanced K-Factor Decomposition&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/balanced-k-factor-decomposition.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/balanced-k-factor-decomposition.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(rlogr)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(k * (logn)^(k - 1))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backtracking, Number Theory&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Dynamic Programming&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3018&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-removal-queries-that-can-be-processed-i/&quot;&gt;Maximum Number of Removal Queries That Can Be Processed I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-removal-queries-that-can-be-processed-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-removal-queries-that-can-be-processed-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3020&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-number-of-elements-in-subset/&quot;&gt;Find the Maximum Number of Elements in Subset&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-number-of-elements-in-subset.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-number-of-elements-in-subset.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3040&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-operations-with-the-same-score-ii/&quot;&gt;Maximum Number of Operations With the Same Score II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-operations-with-the-same-score-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-operations-with-the-same-score-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Memoization&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3041&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-consecutive-elements-in-an-array-after-modification/&quot;&gt;Maximize Consecutive Elements in an Array After Modification&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-consecutive-elements-in-an-array-after-modification.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-consecutive-elements-in-an-array-after-modification.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3077&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-strength-of-k-disjoint-subarrays/&quot;&gt;Maximum Strength of K Disjoint Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-strength-of-k-disjoint-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-strength-of-k-disjoint-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Greedy, &lt;code&gt;Kadane&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3082&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-sum-of-the-power-of-all-subsequences/&quot;&gt;Find the Sum of the Power of All Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-sum-of-the-power-of-all-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-sum-of-the-power-of-all-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3098&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-sum-of-subsequence-powers/&quot;&gt;Find the Sum of Subsequence Powers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-sum-of-subsequence-powers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-sum-of-subsequence-powers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3 * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3101&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-alternating-subarrays/&quot;&gt;Count Alternating Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-alternating-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-alternating-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3117&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-sum-of-values-by-dividing-array/&quot;&gt;Minimum Sum of Values by Dividing Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-sum-of-values-by-dividing-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-sum-of-values-by-dividing-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Memoization, DP, RMQ, Sparse Table, Mono Deque, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3122&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-operations-to-satisfy-conditions/&quot;&gt;Minimum Number of Operations to Satisfy Conditions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-operations-to-satisfy-conditions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-operations-to-satisfy-conditions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (m + 10))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3129&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-all-possible-stable-binary-arrays-i/&quot;&gt;Find All Possible Stable Binary Arrays I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-all-possible-stable-binary-arrays-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-all-possible-stable-binary-arrays-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3130&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-all-possible-stable-binary-arrays-ii/&quot;&gt;Find All Possible Stable Binary Arrays II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-all-possible-stable-binary-arrays-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-all-possible-stable-binary-arrays-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3141&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-hamming-distances/&quot;&gt;Maximum Hamming Distances&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-hamming-distances.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-hamming-distances.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * 2^m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Bitmasks, BFS, Knapsack DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3144&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-substring-partition-of-equal-character-frequency/&quot;&gt;Minimum Substring Partition of Equal Character Frequency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-substring-partition-of-equal-character-frequency.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-substring-partition-of-equal-character-frequency.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (n + 26))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3148&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-difference-score-in-a-grid/&quot;&gt;Maximum Difference Score in a Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-difference-score-in-a-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-difference-score-in-a-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3149&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-minimum-cost-array-permutation/&quot;&gt;Find the Minimum Cost Array Permutation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-minimum-cost-array-permutation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-minimum-cost-array-permutation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n-1)^2 * 2^(n-1))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n-1) * 2^(n-1))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Backtracing&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3176&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-length-of-a-good-subsequence-i/&quot;&gt;Find the Maximum Length of a Good Subsequence I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-length-of-a-good-subsequence-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-length-of-a-good-subsequence-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3177&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-length-of-a-good-subsequence-ii/&quot;&gt;Find the Maximum Length of a Good Subsequence II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-length-of-a-good-subsequence-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-length-of-a-good-subsequence-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3180&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-reward-using-operations-i/&quot;&gt;Maximum Total Reward Using Operations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-reward-using-operations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-reward-using-operations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP, Bitset&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3181&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-reward-using-operations-ii/&quot;&gt;Maximum Total Reward Using Operations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-reward-using-operations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-reward-using-operations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP, Bitset&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3186&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-damage-with-spell-casting/&quot;&gt;Maximum Total Damage With Spell Casting&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-damage-with-spell-casting.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-damage-with-spell-casting.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP, Two Pointers, Sliding window, Deque&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3193&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-inversions/&quot;&gt;Count the Number of Inversions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-inversions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-inversions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/k-inverse-pairs-array/&quot;&gt;K Inverse Pairs Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Knapsack DP, Combinatorics, Sliding Window, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3196&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-total-cost-of-alternating-subarrays/&quot;&gt;Maximize Total Cost of Alternating Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-total-cost-of-alternating-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-total-cost-of-alternating-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3197&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-minimum-area-to-cover-all-ones-ii/&quot;&gt;Find the Minimum Area to Cover All Ones II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-minimum-area-to-cover-all-ones-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-minimum-area-to-cover-all-ones-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max(n, m)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max(n, m)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Brute Force, Prefix Sum, Binary Search, RMQ, Sparse Table, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3201&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-length-of-valid-subsequence-i/&quot;&gt;Find the Maximum Length of Valid Subsequence I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-length-of-valid-subsequence-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-length-of-valid-subsequence-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3202&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-length-of-valid-subsequence-ii/&quot;&gt;Find the Maximum Length of Valid Subsequence II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-length-of-valid-subsequence-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-length-of-valid-subsequence-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3209&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-subarrays-with-and-value-of-k/&quot;&gt;Number of Subarrays With AND Value of K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-subarrays-with-and-value-of-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-subarrays-with-and-value-of-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/find-subarray-with-bitwise-or-closest-to-k/&quot;&gt;Find Subarray With Bitwise OR Closest to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3212&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-submatrices-with-equal-frequency-of-x-and-y/&quot;&gt;Count Submatrices With Equal Frequency of X and Y&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-submatrices-with-equal-frequency-of-x-and-y.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-submatrices-with-equal-frequency-of-x-and-y.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3213&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-string-with-minimum-cost/&quot;&gt;Construct String with Minimum Cost&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-string-with-minimum-cost.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-string-with-minimum-cost.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 + w * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3225&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-score-from-grid-operations/&quot;&gt;Maximum Score From Grid Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-score-from-grid-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-score-from-grid-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3241&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/time-taken-to-mark-all-nodes/&quot;&gt;Time Taken to Mark All Nodes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/time-taken-to-mark-all-nodes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/time-taken-to-mark-all-nodes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Tree DP, BFS, DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3253&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-string-with-minimum-cost-easy/&quot;&gt;Construct String with Minimum Cost (Easy)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-string-with-minimum-cost-easy.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-string-with-minimum-cost-easy.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * w * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3259&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-energy-boost-from-two-drinks/&quot;&gt;Maximum Energy Boost From Two Drinks&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-energy-boost-from-two-drinks.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-energy-boost-from-two-drinks.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3269&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/constructing-two-increasing-arrays/&quot;&gt;Constructing Two Increasing Arrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/constructing-two-increasing-arrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/constructing-two-increasing-arrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(m, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3277&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-xor-score-subarray-queries/&quot;&gt;Maximum XOR Score Subarray Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-xor-score-subarray-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-xor-score-subarray-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3283&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-moves-to-kill-all-pawns/&quot;&gt;Maximum Number of Moves to Kill All Pawns&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-moves-to-kill-all-pawns.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-moves-to-kill-all-pawns.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p^2 * 2^p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p * 2^p)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, Bitmasks, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3287&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-sequence-value-of-array/&quot;&gt;Find the Maximum Sequence Value of Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-sequence-value-of-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-sequence-value-of-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * r + r^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3290&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-multiplication-score/&quot;&gt;Maximum Multiplication Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-multiplication-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-multiplication-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3291&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-valid-strings-to-form-target-i/&quot;&gt;Minimum Number of Valid Strings to Form Target I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-valid-strings-to-form-target-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-valid-strings-to-form-target-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + w * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;KMP, &lt;code&gt;Rabin-Karp Algorithm&lt;/code&gt;, Rolling Hash, Hash Table, Two Pointers, Sliding Window, DP, &lt;code&gt;Aho-Corasick Automata&lt;/code&gt;, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3292&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-valid-strings-to-form-target-ii/&quot;&gt;Minimum Number of Valid Strings to Form Target II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-valid-strings-to-form-target-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-valid-strings-to-form-target-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + w * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;KMP, &lt;code&gt;Rabin-Karp Algorithm&lt;/code&gt;, Rolling Hash, Hash Table, Two Pointers, Sliding Window, DP, &lt;code&gt;Aho-Corasick Automata&lt;/code&gt;, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3313&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-last-marked-nodes-in-tree/&quot;&gt;Find the Last Marked Nodes in Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-last-marked-nodes-in-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-last-marked-nodes-in-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒, variant of &lt;a href=&quot;https://leetcode.com/problems/time-taken-to-mark-all-nodes/&quot;&gt;Time Taken to Mark All Nodes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, DFS, Tree DP, Tree Diameter&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3316&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-maximum-removals-from-source-string/&quot;&gt;Find Maximum Removals From Source String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-maximum-removals-from-source-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-maximum-removals-from-source-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3320&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-the-number-of-winning-sequences/&quot;&gt;Count The Number of Winning Sequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-the-number-of-winning-sequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-the-number-of-winning-sequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3332&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-points-tourist-can-earn/&quot;&gt;Maximum Points Tourist Can Earn&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-points-tourist-can-earn.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-points-tourist-can-earn.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3333&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-original-typed-string-ii/&quot;&gt;Find the Original Typed String II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-original-typed-string-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-original-typed-string-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3335&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-characters-in-string-after-transformations-i/&quot;&gt;Total Characters in String After Transformations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-characters-in-string-after-transformations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-characters-in-string-after-transformations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(t + 26)&lt;/em&gt; &lt;br /&gt;runtime: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Matrix Exponentiation, Precompute&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3336&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-subsequences-with-equal-gcd/&quot;&gt;Find the Number of Subsequences With Equal GCD&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-subsequences-with-equal-gcd.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-subsequences-with-equal-gcd.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(max_r^2 * log(max_r))&lt;/em&gt; &lt;br /&gt; runtime: O(n + r^2)&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(max_r^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Number Theory, Mobius Function, Principle of Inclusion-Exclusion, &lt;code&gt;Basel Problem&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3337&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-characters-in-string-after-transformations-ii/&quot;&gt;Total Characters in String After Transformations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-characters-in-string-after-transformations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-characters-in-string-after-transformations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26^3 * logt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Matrix Exponentiation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3343&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-number-of-balanced-permutations/&quot;&gt;Count Number of Balanced Permutations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-number-of-balanced-permutations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-number-of-balanced-permutations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3351&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-good-subsequences/&quot;&gt;Sum of Good Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-good-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-good-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3352&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-k-reducible-numbers-less-than-n/&quot;&gt;Count K-Reducible Numbers Less Than N&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-k-reducible-numbers-less-than-n.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-k-reducible-numbers-less-than-n.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3359&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-sorted-submatrices-with-maximum-element-at-most-k/&quot;&gt;Find Sorted Submatrices With Maximum Element at Most K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-sorted-submatrices-with-maximum-element-at-most-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-sorted-submatrices-with-maximum-element-at-most-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒, variant of &lt;a href=&quot;https://leetcode.com/problems/count-submatrices-with-all-ones/&quot;&gt;Count Submatrices With All Ones&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Stack, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3363&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-number-of-fruits-collected/&quot;&gt;Find the Maximum Number of Fruits Collected&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-number-of-fruits-collected.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-number-of-fruits-collected.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3366&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-array-sum/&quot;&gt;Minimum Array Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-array-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-array-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Greedy, Case Works&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3372&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-i/&quot;&gt;Maximize the Number of Target Nodes After Connecting Trees I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-number-of-target-nodes-after-connecting-trees-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-number-of-target-nodes-after-connecting-trees-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + mlogm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, BFS, DFS, Tree DP, Centroid Decomposition, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3381&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-subarray-sum-with-length-divisible-by-k/&quot;&gt;Maximum Subarray Sum With Length Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-subarray-sum-with-length-divisible-by-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-subarray-sum-with-length-divisible-by-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3388&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-beautiful-splits-in-an-array/&quot;&gt;Count Beautiful Splits in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-beautiful-splits-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-beautiful-splits-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, &lt;code&gt;Z-Function&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3389&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-character-frequencies-equal/&quot;&gt;Minimum Operations to Make Character Frequencies Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-character-frequencies-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-character-frequencies-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3393&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-paths-with-the-given-xor-value/&quot;&gt;Count Paths With the Given XOR Value&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-paths-with-the-given-xor-value.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-paths-with-the-given-xor-value.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3409&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-subsequence-with-decreasing-adjacent-difference/&quot;&gt;Longest Subsequence With Decreasing Adjacent Difference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-subsequence-with-decreasing-adjacent-difference.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-subsequence-with-decreasing-adjacent-difference.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r^2 + n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3414&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-score-of-non-overlapping-intervals/&quot;&gt;Maximum Score of Non-overlapping Intervals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-score-of-non-overlapping-intervals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-score-of-non-overlapping-intervals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + n * k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3418&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-amount-of-money-robot-can-earn/&quot;&gt;Maximum Amount of Money Robot Can Earn&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-amount-of-money-robot-can-earn.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-amount-of-money-robot-can-earn.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(m, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3429&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/paint-house-iv/&quot;&gt;Paint House IV&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/paint-house-iv.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/paint-house-iv.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^4)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3434&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-frequency-after-subarray-operation/&quot;&gt;Maximum Frequency After Subarray Operation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-frequency-after-subarray-operation.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-frequency-after-subarray-operation.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3441&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-good-caption/&quot;&gt;Minimum Cost Good Caption&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-good-caption.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-good-caption.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Backtracing&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3444&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-increments-for-target-multiples-in-an-array/&quot;&gt;Minimum Increments for Target Multiples in an Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-increments-for-target-multiples-in-an-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-increments-for-target-multiples-in-an-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr * m * 2^m + n * 3^m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Number Theory, DP, Submask Enumeration&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3459&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/length-of-longest-v-shaped-diagonal-segment/&quot;&gt;Length of Longest V-Shaped Diagonal Segment&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/length-of-longest-v-shaped-diagonal-segment.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/length-of-longest-v-shaped-diagonal-segment.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Memoization, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3466&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-coin-collection/&quot;&gt;Maximum Coin Collection&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-coin-collection.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-coin-collection.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3469&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-cost-to-remove-array-elements/&quot;&gt;Find Minimum Cost to Remove Array Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-cost-to-remove-array-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-cost-to-remove-array-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3472&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-palindromic-subsequence-after-at-most-k-operations/&quot;&gt;Longest Palindromic Subsequence After at Most K Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-palindromic-subsequence-after-at-most-k-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-palindromic-subsequence-after-at-most-k-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3473&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-k-subarrays-with-length-at-least-m/&quot;&gt;Sum of K Subarrays With Length at Least M&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-k-subarrays-with-length-at-least-m.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-k-subarrays-with-length-at-least-m.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3489&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zero-array-transformation-iv/&quot;&gt;Zero Array Transformation IV&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zero-array-transformation-iv.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zero-array-transformation-iv.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * r * logq)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3490&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-beautiful-numbers/&quot;&gt;Count Beautiful Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-beautiful-numbers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-beautiful-numbers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr * 2 * 10 * s)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr * 2 * 10 * s)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3500&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-divide-array-into-subarrays/&quot;&gt;Minimum Cost to Divide Array Into Subarrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-divide-array-into-subarrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-divide-array-into-subarrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP, Convex Hull Trick&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3503&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-palindrome-after-substring-concatenation-i/&quot;&gt;Longest Palindrome After Substring Concatenation I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-palindrome-after-substring-concatenation-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-palindrome-after-substring-concatenation-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Manacher&#39;s Algorithm&lt;/code&gt;, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3504&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-palindrome-after-substring-concatenation-ii/&quot;&gt;Longest Palindrome After Substring Concatenation II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-palindrome-after-substring-concatenation-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-palindrome-after-substring-concatenation-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Manacher&#39;s Algorithm&lt;/code&gt;, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3505&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-elements-within-k-subarrays-equal/&quot;&gt;Minimum Operations to Make Elements Within K Subarrays Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-elements-within-k-subarrays-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-elements-within-k-subarrays-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogx + k * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Two Heaps, Two BSTs, Two Sorted Lists, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3509&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-product-of-subsequences-with-an-alternating-sum-equal-to-k/&quot;&gt;Maximum Product of Subsequences With an Alternating Sum Equal to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-product-of-subsequences-with-an-alternating-sum-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-product-of-subsequences-with-an-alternating-sum-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3524&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-x-value-of-array-i/&quot;&gt;Find X Value of Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-x-value-of-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-x-value-of-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3525&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-x-value-of-array-ii/&quot;&gt;Find X Value of Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-x-value-of-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-x-value-of-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k + q * k * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3530&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-profit-from-valid-topological-order-in-dag/&quot;&gt;Maximum Profit from Valid Topological Order in DAG&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-profit-from-valid-topological-order-in-dag.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-profit-from-valid-topological-order-in-dag.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3533&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/concatenated-divisibility/&quot;&gt;Concatenated Divisibility&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/concatenated-divisibility.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/concatenated-divisibility.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr + k * n * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logr + k * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Bitmasks, Backtracing&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3538&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/merge-operations-for-minimum-travel-time/&quot;&gt;Merge Operations for Minimum Travel Time&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/merge-operations-for-minimum-travel-time.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/merge-operations-for-minimum-travel-time.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n-k) * k^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3539&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-sum-of-array-product-of-magical-sequences/&quot;&gt;Find Sum of Array Product of Magical Sequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-sum-of-array-product-of-magical-sequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-sum-of-array-product-of-magical-sequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k * m^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * m^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3543&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-weighted-k-edge-path/&quot;&gt;Maximum Weighted K-Edge Path&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-weighted-k-edge-path.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-weighted-k-edge-path.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * e * t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3544&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/subtree-inversion-sum/&quot;&gt;Subtree Inversion Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/subtree-inversion-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/subtree-inversion-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Tree DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3562&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-profit-from-trading-stocks-with-discounts/&quot;&gt;Maximum Profit from Trading Stocks with Discounts&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-profit-from-trading-stocks-with-discounts.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-profit-from-trading-stocks-with-discounts.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * b)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + b)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DFS, Tree DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3563&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-adjacent-removals/&quot;&gt;Lexicographically Smallest String After Adjacent Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-adjacent-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-adjacent-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3573&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/best-time-to-buy-and-sell-stock-v/&quot;&gt;Best Time to Buy and Sell Stock V&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/best-time-to-buy-and-sell-stock-v.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/best-time-to-buy-and-sell-stock-v.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3574&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-subarray-gcd-score/&quot;&gt;Maximize Subarray GCD Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-subarray-gcd-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-subarray-gcd-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Brute Force, Number Theory, Suffix-GCD States, DP, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3575&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-good-subtree-score/&quot;&gt;Maximum Good Subtree Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-good-subtree-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-good-subtree-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (2^10)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, DFS, Tree DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3578&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-partitions-with-max-min-difference-at-most-k/&quot;&gt;Count Partitions With Max-Min Difference at Most K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-partitions-with-max-min-difference-at-most-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-partitions-with-max-min-difference-at-most-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Mono Deque, Two Pointers, Sliding Window, DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3579&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-steps-to-convert-string-with-operations/&quot;&gt;Minimum Steps to Convert String with Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-steps-to-convert-string-with-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-steps-to-convert-string-with-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3583&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-special-triplets/&quot;&gt;Count Special Triplets&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-special-triplets.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-special-triplets.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3592&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/inverse-coin-change/&quot;&gt;Inverse Coin Change&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/inverse-coin-change.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/inverse-coin-change.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3595&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/once-twice/&quot;&gt;Once Twice&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/once-twice.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/once-twice.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3599&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/partition-array-to-minimize-xor/&quot;&gt;Partition Array to Minimize XOR&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/partition-array-to-minimize-xor.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/partition-array-to-minimize-xor.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3603&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-path-with-alternating-directions-ii/&quot;&gt;Minimum Cost Path with Alternating Directions II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-path-with-alternating-directions-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-path-with-alternating-directions-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3610&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-primes-to-sum-to-target/&quot;&gt;Minimum Number of Primes to Sum to Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-primes-to-sum-to-target.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-primes-to-sum-to-target.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlog(log(min(m, n))) + m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Number Theory, Knapsack DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3615&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-palindromic-path-in-graph/&quot;&gt;Longest Palindromic Path in Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-palindromic-path-in-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-palindromic-path-in-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^4 * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, DP, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3628&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-subsequences-after-one-inserting/&quot;&gt;Maximum Number of Subsequences After One Inserting&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-subsequences-after-one-inserting.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-subsequences-after-one-inserting.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3647&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-weight-in-two-bags/&quot;&gt;Maximum Weight in Two Bags&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-weight-in-two-bags.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-weight-in-two-bags.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * w1 * w2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(w1 * w2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Bitset&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3651&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-path-with-teleportations/&quot;&gt;Minimum Cost Path with Teleportations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-path-with-teleportations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-path-with-teleportations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * (m * n + r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3654&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-sum-after-divisible-sum-deletions/&quot;&gt;Minimum Sum After Divisible Sum Deletions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-sum-after-divisible-sum-deletions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-sum-after-divisible-sum-deletions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3661&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-walls-destroyed-by-robots/&quot;&gt;Maximum Walls Destroyed by Robots&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-walls-destroyed-by-robots.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-walls-destroyed-by-robots.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + mlogm)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3665&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/twisted-mirror-path-count/&quot;&gt;Twisted Mirror Path Count&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/twisted-mirror-path-count.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/twisted-mirror-path-count.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(m, n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3670&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-product-of-two-integers-with-no-common-bits/&quot;&gt;Maximum Product of Two Integers With No Common Bits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-product-of-two-integers-with-no-common-bits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-product-of-two-integers-with-no-common-bits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3685&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/subsequence-sum-after-capping-elements/&quot;&gt;Subsequence Sum After Capping Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/subsequence-sum-after-capping-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/subsequence-sum-after-capping-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, DP, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3686&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-stable-subsequences/&quot;&gt;Number of Stable Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-stable-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-stable-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3693&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/climbing-stairs-ii/&quot;&gt;Climbing Stairs II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/climbing-stairs-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/climbing-stairs-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3699&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-zigzag-arrays-i/&quot;&gt;Number of ZigZag Arrays I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-zigzag-arrays-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-zigzag-arrays-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (r - l))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r - l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3704&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-no-zero-pairs-that-sum-to-n/&quot;&gt;Count No-Zero Pairs That Sum to N&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-no-zero-pairs-that-sum-to-n.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-no-zero-pairs-that-sum-to-n.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10 * 2^4 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(2^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3717&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-the-array-beautiful/&quot;&gt;Minimum Operations to Make the Array Beautiful&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-the-array-beautiful.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-the-array-beautiful.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3725&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-ways-to-choose-coprime-integers-from-rows/&quot;&gt;Count Ways to Choose Coprime Integers from Rows&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-ways-to-choose-coprime-integers-from-rows.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-ways-to-choose-coprime-integers-from-rows.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * rlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, Mobius Function, Principle of Inclusion-Exclusion&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3742&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-path-score-in-a-grid/&quot;&gt;Maximum Path Score in a Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-path-score-in-a-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-path-score-in-a-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3743&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-cyclic-partition-score/&quot;&gt;Maximize Cyclic Partition Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-cyclic-partition-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-cyclic-partition-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/best-time-to-buy-and-sell-stock-v/&quot;&gt;Best Time to Buy and Sell Stock V&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3753&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/total-waviness-of-numbers-in-range-ii/&quot;&gt;Total Waviness of Numbers in Range II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/total-waviness-of-numbers-in-range-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/total-waviness-of-numbers-in-range-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn * 11 * 11 * 2 * 2 * 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(11 * 11 * 2 * 2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Memoization&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3757&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-effective-subsequences/&quot;&gt;Number of Effective Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-effective-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-effective-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + r) * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;SOS DP, Principle of Inclusion and Exclusion&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3772&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-subgraph-score-in-a-tree/&quot;&gt;Maximum Subgraph Score in a Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-subgraph-score-in-a-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-subgraph-score-in-a-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, Tree DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3791&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-balanced-integers-in-a-range/&quot;&gt;Number of Balanced Integers in a Range&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-balanced-integers-in-a-range.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-balanced-integers-in-a-range.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((logn)^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Memoization&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3801&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-merge-sorted-lists/&quot;&gt;Minimum Cost to Merge Sorted Lists&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-merge-sorted-lists.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-merge-sorted-lists.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(l * nlogn + 2^n * log(n * l) * n * logl + 3^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l + 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Sort, Heap, Binary Search, Submask Enumeration&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3811&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-alternating-xor-partitions/&quot;&gt;Number of Alternating XOR Partitions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-alternating-xor-partitions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-alternating-xor-partitions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Freq Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3830&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-alternating-subarray-after-removing-at-most-one-element/&quot;&gt;Longest Alternating Subarray After Removing At Most One Element&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/longest-alternating-subarray-after-removing-at-most-one-element.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/longest-alternating-subarray-after-removing-at-most-one-element.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3836&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-score-using-exactly-k-pairs/&quot;&gt;Maximum Score Using Exactly K Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-score-using-exactly-k-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-score-using-exactly-k-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(min(n, m) * k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3840&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/house-robber-v/&quot;&gt;House Robber V&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/house-robber-v.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/house-robber-v.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3850&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-sequences-to-k/&quot;&gt;Count Sequences to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-sequences-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-sequences-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(3^(n/2))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(3^(n/2))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Meet in The Middle&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3864&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-partition-a-binary-string/&quot;&gt;Minimum Cost to Partition a Binary String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-partition-a-binary-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-partition-a-binary-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Divide and Conquer, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3869&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-fancy-numbers-in-a-range/&quot;&gt;Count Fancy Numbers in a Range&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-fancy-numbers-in-a-range.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-fancy-numbers-in-a-range.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(g * d + d^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(g + d)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;BFS, DP, Principle of Inclusion and Exclusion&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3877&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-removals-to-achieve-target-xor/&quot;&gt;Minimum Removals to Achieve Target XOR&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-removals-to-achieve-target-xor.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-removals-to-achieve-target-xor.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, DP, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3882&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-xor-path-in-a-grid/&quot;&gt;Minimum XOR Path in a Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-xor-path-in-a-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-xor-path-in-a-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3883&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-non-decreasing-arrays-with-given-digit-sums/&quot;&gt;Count Non Decreasing Arrays With Given Digit Sums&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-non-decreasing-arrays-with-given-digit-sums.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-non-decreasing-arrays-with-given-digit-sums.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;precompute: &lt;em&gt;O(rlogr)&lt;/em&gt;&lt;br /&gt;runtime: &lt;em&gt;O(n * r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3891&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-increase-to-maximize-special-indices/&quot;&gt;Minimum Increase to Maximize Special Indices&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-increase-to-maximize-special-indices.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-increase-to-maximize-special-indices.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3906&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-good-integers-on-a-grid-path/&quot;&gt;Count Good Integers on a Grid Path&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-good-integers-on-a-grid-path.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-good-integers-on-a-grid-path.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(16 * 2 * 10 * 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(16 + 2 * 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Memoization, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3916&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-zigzag-arrays-iii/&quot;&gt;Number of ZigZag Arrays III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-zigzag-arrays-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-zigzag-arrays-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum, Combinatorics, &lt;code&gt;Lagrange Interpolation&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Greedy&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3002&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-size-of-a-set-after-removals/&quot;&gt;Maximum Size of a Set After Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-size-of-a-set-after-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-size-of-a-set-after-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Math, Hash Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3003&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-number-of-partitions-after-operations/&quot;&gt;Maximize the Number of Partitions After Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-number-of-partitions-after-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-number-of-partitions-after-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3012&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-length-of-array-using-operations/&quot;&gt;Minimize Length of Array Using Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-length-of-array-using-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-length-of-array-using-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3014&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-pushes-to-type-word-i/&quot;&gt;Minimum Number of Pushes to Type Word I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-pushes-to-type-word-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-pushes-to-type-word-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(4)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3016&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-pushes-to-type-word-ii/&quot;&gt;Minimum Number of Pushes to Type Word II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-pushes-to-type-word-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-pushes-to-type-word-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3022&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-or-of-remaining-elements-using-operations/&quot;&gt;Minimize OR of Remaining Elements Using Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-or-of-remaining-elements-using-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-or-of-remaining-elements-using-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3035&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-palindromes-after-operations/&quot;&gt;Maximum Palindromes After Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-palindromes-after-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-palindromes-after-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3068&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-maximum-sum-of-node-values/&quot;&gt;Find the Maximum Sum of Node Values&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-maximum-sum-of-node-values.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-maximum-sum-of-node-values.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3074&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/apple-redistribution-into-boxes/&quot;&gt;Apple Redistribution into Boxes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/apple-redistribution-into-boxes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/apple-redistribution-into-boxes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3075&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-happiness-of-selected-children/&quot;&gt;Maximize Happiness of Selected Children&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-happiness-of-selected-children.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-happiness-of-selected-children.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3086&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-pick-k-ones/&quot;&gt;Minimum Moves to Pick K Ones&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-pick-k-ones.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-pick-k-ones.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3088&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/make-string-anti-palindrome/&quot;&gt;Make String Anti-palindrome&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/make-string-anti-palindrome.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/make-string-anti-palindrome.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort, Greedy, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3106&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-operations-with-constraint/&quot;&gt;Lexicographically Smallest String After Operations With Constraint&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-operations-with-constraint.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-operations-with-constraint.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3107&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-median-of-array-equal-to-k/&quot;&gt;Minimum Operations to Make Median of Array Equal to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-median-of-array-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-median-of-array-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Quick Select, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3111&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-rectangles-to-cover-points/&quot;&gt;Minimum Rectangles to Cover Points&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-rectangles-to-cover-points.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-rectangles-to-cover-points.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3114&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/latest-time-you-can-obtain-after-replacing-characters/&quot;&gt;Latest Time You Can Obtain After Replacing Characters&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/latest-time-you-can-obtain-after-replacing-characters.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/latest-time-you-can-obtain-after-replacing-characters.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3119&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-potholes-that-can-be-fixed/&quot;&gt;Maximum Number of Potholes That Can Be Fixed&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-potholes-that-can-be-fixed.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-potholes-that-can-be-fixed.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Counting Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3170&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-minimum-string-after-removing-stars/&quot;&gt;Lexicographically Minimum String After Removing Stars&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-minimum-string-after-removing-stars.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-minimum-string-after-removing-stars.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Hash Table, Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3189&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-get-a-peaceful-board/&quot;&gt;Minimum Moves to Get a Peaceful Board&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-get-a-peaceful-board.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-get-a-peaceful-board.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒, variant of &lt;a href=&quot;https://leetcode.com/problems/distribute-coins-in-binary-tree/&quot;&gt;Distribute Coins in Binary Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Counting Sort, Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3191&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-binary-array-elements-equal-to-one-i/&quot;&gt;Minimum Operations to Make Binary Array Elements Equal to One I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-binary-array-elements-equal-to-one-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-binary-array-elements-equal-to-one-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3192&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-binary-array-elements-equal-to-one-ii/&quot;&gt;Minimum Operations to Make Binary Array Elements Equal to One II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-binary-array-elements-equal-to-one-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-binary-array-elements-equal-to-one-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3205&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-array-hopping-score-i/&quot;&gt;Maximum Array Hopping Score I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-array-hopping-score-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-array-hopping-score-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;DP, Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3207&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-points-after-enemy-battles/&quot;&gt;Maximum Points After Enemy Battles&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-points-after-enemy-battles.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-points-after-enemy-battles.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3216&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-a-swap/&quot;&gt;Lexicographically Smallest String After a Swap&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-a-swap.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-a-swap.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3218&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-for-cutting-cake-i/&quot;&gt;Minimum Cost for Cutting Cake I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-for-cutting-cake-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-for-cutting-cake-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(mlogm + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Memoization, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3219&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-for-cutting-cake-ii/&quot;&gt;Minimum Cost for Cutting Cake II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-for-cutting-cake-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-for-cutting-cake-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(mlogm + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3221&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-array-hopping-score-ii/&quot;&gt;Maximum Array Hopping Score II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-array-hopping-score-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-array-hopping-score-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3228&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-operations-to-move-ones-to-the-end/&quot;&gt;Maximum Number of Operations to Move Ones to the End&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-operations-to-move-ones-to-the-end.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-operations-to-move-ones-to-the-end.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3229&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-equal-to-target/&quot;&gt;Minimum Operations to Make Array Equal to Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-equal-to-target.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-equal-to-target.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-increments-on-subarrays-to-form-a-target-array/&quot;&gt;Minimum Number of Increments on Subarrays to Form a Target Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3239&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-flips-to-make-binary-grid-palindromic-i/&quot;&gt;Minimum Number of Flips to Make Binary Grid Palindromic I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-flips-to-make-binary-grid-palindromic-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-flips-to-make-binary-grid-palindromic-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3240&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-flips-to-make-binary-grid-palindromic-ii/&quot;&gt;Minimum Number of Flips to Make Binary Grid Palindromic II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-flips-to-make-binary-grid-palindromic-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-flips-to-make-binary-grid-palindromic-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Array, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3273&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-amount-of-damage-dealt-to-bob/&quot;&gt;Minimum Amount of Damage Dealt to Bob&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-amount-of-damage-dealt-to-bob.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-amount-of-damage-dealt-to-bob.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3282&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/reach-end-of-array-with-max-score/&quot;&gt;Reach End of Array With Max Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/reach-end-of-array-with-max-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/reach-end-of-array-with-max-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3301&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-the-total-height-of-unique-towers/&quot;&gt;Maximize the Total Height of Unique Towers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-the-total-height-of-unique-towers.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-the-total-height-of-unique-towers.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3302&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-lexicographically-smallest-valid-sequence/&quot;&gt;Find the Lexicographically Smallest Valid Sequence&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-lexicographically-smallest-valid-sequence.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-lexicographically-smallest-valid-sequence.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3362&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/zero-array-transformation-iii/&quot;&gt;Zero Array Transformation III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/zero-array-transformation-iii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/zero-array-transformation-iii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + qlogq)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Heap, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3397&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-number-of-distinct-elements-after-operations/&quot;&gt;Maximum Number of Distinct Elements After Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-number-of-distinct-elements-after-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-number-of-distinct-elements-after-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3402&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-columns-strictly-increasing/&quot;&gt;Minimum Operations to Make Columns Strictly Increasing&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-columns-strictly-increasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-columns-strictly-increasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3403&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-lexicographically-largest-string-from-the-box-i/&quot;&gt;Find the Lexicographically Largest String From the Box I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-lexicographically-largest-string-from-the-box-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-lexicographically-largest-string-from-the-box-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3406&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-lexicographically-largest-string-from-the-box-ii/&quot;&gt;Find the Lexicographically Largest String From the Box II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-lexicographically-largest-string-from-the-box-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-lexicographically-largest-string-from-the-box-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3410&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-subarray-sum-after-removing-all-occurrences-of-one-element/&quot;&gt;Maximize Subarray Sum After Removing All Occurrences of One Element&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-subarray-sum-after-removing-all-occurrences-of-one-element.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-subarray-sum-after-removing-all-occurrences-of-one-element.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy, &lt;code&gt;Kadane&#39;s Algorithm&lt;/code&gt;, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3424&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-make-arrays-identical/&quot;&gt;Minimum Cost to Make Arrays Identical&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-make-arrays-identical.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-make-arrays-identical.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3443&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-manhattan-distance-after-k-changes/&quot;&gt;Maximum Manhattan Distance After K Changes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-manhattan-distance-after-k-changes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-manhattan-distance-after-k-changes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3457&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/eat-pizzas/&quot;&gt;Eat Pizzas!&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/eat-pizzas.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/eat-pizzas.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3458&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/select-k-disjoint-special-substrings/&quot;&gt;Select K Disjoint Special Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/select-k-disjoint-special-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/select-k-disjoint-special-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3462&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-sum-with-at-most-k-elements/&quot;&gt;Maximum Sum With at Most K Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-sum-with-at-most-k-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-sum-with-at-most-k-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3468&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-number-of-copy-arrays/&quot;&gt;Find the Number of Copy Arrays&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-number-of-copy-arrays.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-number-of-copy-arrays.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3474&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-generated-string/&quot;&gt;Lexicographically Smallest Generated String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-generated-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-generated-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;KMP Algorithm&lt;/code&gt;, &lt;code&gt;Z-Function&lt;/code&gt;, Two Pointers, Sliding Window, Deque, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3476&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-profit-from-task-assignment/&quot;&gt;Maximize Profit from Task Assignment&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-profit-from-task-assignment.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-profit-from-task-assignment.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + tlogt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Freq Table, Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3478&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/choose-k-elements-with-maximum-sum/&quot;&gt;Choose K Elements With Maximum Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/choose-k-elements-with-maximum-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/choose-k-elements-with-maximum-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy, Two Pointers, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3480&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-subarrays-after-removing-one-conflicting-pair/&quot;&gt;Maximize Subarrays After Removing One Conflicting Pair&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-subarrays-after-removing-one-conflicting-pair.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-subarrays-after-removing-one-conflicting-pair.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3494&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-minimum-amount-of-time-to-brew-potions/&quot;&gt;Find the Minimum Amount of Time to Brew Potions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-minimum-amount-of-time-to-brew-potions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-minimum-amount-of-time-to-brew-potions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3494&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-minimum-amount-of-time-to-brew-potions/&quot;&gt;Find the Minimum Amount of Time to Brew Potions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-minimum-amount-of-time-to-brew-potions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-minimum-amount-of-time-to-brew-potions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3495&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-elements-zero/&quot;&gt;Minimum Operations to Make Array Elements Zero&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-elements-zero.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-elements-zero.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(qlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3496&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-score-after-pair-deletions/&quot;&gt;Maximize Score After Pair Deletions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-score-after-pair-deletions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-score-after-pair-deletions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3499&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-active-section-with-trade-i/&quot;&gt;Maximize Active Section with Trade I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-active-section-with-trade-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-active-section-with-trade-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3501&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-active-section-with-trade-ii/&quot;&gt;Maximize Active Section with Trade II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-active-section-with-trade-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-active-section-with-trade-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, RMQ, Sparse Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3506&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-time-required-to-eliminate-bacterial-strains/&quot;&gt;Find Time Required to Eliminate Bacterial Strains&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-time-required-to-eliminate-bacterial-strains.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-time-required-to-eliminate-bacterial-strains.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Heap, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3511&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/make-a-positive-array/&quot;&gt;Make a Positive Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/make-a-positive-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/make-a-positive-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3517&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-palindromic-rearrangement-i/&quot;&gt;Smallest Palindromic Rearrangement I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-palindromic-rearrangement-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-palindromic-rearrangement-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3518&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/smallest-palindromic-rearrangement-ii/&quot;&gt;Smallest Palindromic Rearrangement II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/smallest-palindromic-rearrangement-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/smallest-palindromic-rearrangement-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort, Greedy, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3523&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/make-array-non-decreasing/&quot;&gt;Make Array Non-decreasing&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/make-array-non-decreasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/make-array-non-decreasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3542&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-convert-all-elements-to-zero/&quot;&gt;Minimum Operations to Convert All Elements to Zero&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-convert-all-elements-to-zero.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-convert-all-elements-to-zero.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Mono Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3545&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-deletions-for-at-most-k-distinct-characters/&quot;&gt;Minimum Deletions for At Most K Distinct Characters&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-deletions-for-at-most-k-distinct-characters.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-deletions-for-at-most-k-distinct-characters.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Counting Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3557&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-maximum-number-of-non-intersecting-substrings/&quot;&gt;Find Maximum Number of Non Intersecting Substrings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-maximum-number-of-non-intersecting-substrings.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-maximum-number-of-non-intersecting-substrings.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3576&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/transform-array-to-all-equal-elements/&quot;&gt;Transform Array to All Equal Elements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/transform-array-to-all-equal-elements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/transform-array-to-all-equal-elements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3587&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-adjacent-swaps-to-alternate-parity/&quot;&gt;Minimum Adjacent Swaps to Alternate Parity&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-adjacent-swaps-to-alternate-parity.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-adjacent-swaps-to-alternate-parity.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3627&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-median-sum-of-subsequences-of-size-3/&quot;&gt;Maximum Median Sum of Subsequences of Size 3&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-median-sum-of-subsequences-of-size-3.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-median-sum-of-subsequences-of-size-3.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3630&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/partition-array-for-maximum-xor-and-and/&quot;&gt;Partition Array for Maximum XOR and AND&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/partition-array-for-maximum-xor-and-and.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/partition-array-for-maximum-xor-and-and.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3633&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-i/&quot;&gt;Earliest Finish Time for Land and Water Rides I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/earliest-finish-time-for-land-and-water-rides-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/earliest-finish-time-for-land-and-water-rides-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3635&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/earliest-finish-time-for-land-and-water-rides-ii/&quot;&gt;Earliest Finish Time for Land and Water Rides II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/earliest-finish-time-for-land-and-water-rides-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/earliest-finish-time-for-land-and-water-rides-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3638&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-balanced-shipments/&quot;&gt;Maximum Balanced Shipments&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-balanced-shipments.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-balanced-shipments.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3645&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-from-optimal-activation-order/&quot;&gt;Maximum Total from Optimal Activation Order&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-from-optimal-activation-order.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-from-optimal-activation-order.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3675&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-transform-string/&quot;&gt;Minimum Operations to Transform String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-transform-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-transform-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3681&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-xor-of-subsequences/&quot;&gt;Maximum XOR of Subsequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-xor-of-subsequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-xor-of-subsequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3689&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-subarray-value-i/&quot;&gt;Maximum Total Subarray Value I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-subarray-value-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-subarray-value-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3711&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-transactions-without-negative-balance/&quot;&gt;Maximum Transactions Without Negative Balance&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-transactions-without-negative-balance.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-transactions-without-negative-balance.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Greedy, Heap&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3720&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-permutation-greater-than-target/&quot;&gt;Lexicographically Smallest Permutation Greater Than Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-permutation-greater-than-target.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-permutation-greater-than-target.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3723&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-sum-of-squares-of-digits/&quot;&gt;Maximize Sum of Squares of Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-sum-of-squares-of-digits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-sum-of-squares-of-digits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3724&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-transform-array/&quot;&gt;Minimum Operations to Transform Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-transform-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-transform-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3727&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-alternating-sum-of-squares/&quot;&gt;Maximum Alternating Sum of Squares&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-alternating-sum-of-squares.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-alternating-sum-of-squares.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Sort, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3730&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-calories-burnt-from-jumps/&quot;&gt;Maximum Calories Burnt from Jumps&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-calories-burnt-from-jumps.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-calories-burnt-from-jumps.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Greedy, Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3732&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-product-of-three-elements-after-one-replacement/&quot;&gt;Maximum Product of Three Elements After One Replacement&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-product-of-three-elements-after-one-replacement.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-product-of-three-elements-after-one-replacement.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3734&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-palindromic-permutation-greater-than-target/&quot;&gt;Lexicographically Smallest Palindromic Permutation Greater Than Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-palindromic-permutation-greater-than-target.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-palindromic-permutation-greater-than-target.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26 * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3752&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-negated-permutation-that-sums-to-target/&quot;&gt;Lexicographically Smallest Negated Permutation that Sums to Target&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-negated-permutation-that-sums-to-target.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-negated-permutation-that-sums-to-target.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3763&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-total-sum-with-threshold-constraints/&quot;&gt;Maximum Total Sum with Threshold Constraints&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-total-sum-with-threshold-constraints.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-total-sum-with-threshold-constraints.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sort, Counting Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3767&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-points-after-choosing-k-tasks/&quot;&gt;Maximize Points After Choosing K Tasks&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-points-after-choosing-k-tasks.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-points-after-choosing-k-tasks.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Sort, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3776&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-balance-circular-array/&quot;&gt;Minimum Moves to Balance Circular Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-balance-circular-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-balance-circular-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3785&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-swaps-to-avoid-forbidden-values/&quot;&gt;Minimum Swaps to Avoid Forbidden Values&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-swaps-to-avoid-forbidden-values.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-swaps-to-avoid-forbidden-values.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Boyer–Moore Majority Vote Algorithm&lt;/code&gt;, Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3796&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-maximum-value-in-a-constrained-sequence/&quot;&gt;Find Maximum Value in a Constrained Sequence&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-maximum-value-in-a-constrained-sequence.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-maximum-value-in-a-constrained-sequence.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3797&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-routes-to-climb-a-rectangular-grid/&quot;&gt;Count Routes to Climb a Rectangular Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-routes-to-climb-a-rectangular-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-routes-to-climb-a-rectangular-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;DP, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3806&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-bitwise-and-after-increment-operations/&quot;&gt;Maximum Bitwise AND After Increment Operations&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-bitwise-and-after-increment-operations.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-bitwise-and-after-increment-operations.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Greedy, Sort, Quick Select&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3812&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-edge-toggles-on-a-tree/&quot;&gt;Minimum Edge Toggles on a Tree&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-edge-toggles-on-a-tree.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-edge-toggles-on-a-tree.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Topological Sort, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3816&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/lexicographically-smallest-string-after-deleting-duplicate-characters/&quot;&gt;Lexicographically Smallest String After Deleting Duplicate Characters&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/lexicographically-smallest-string-after-deleting-duplicate-characters.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/lexicographically-smallest-string-after-deleting-duplicate-characters.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3828&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/final-element-after-subarray-deletions/&quot;&gt;Final Element After Subarray Deletions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/final-element-after-subarray-deletions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/final-element-after-subarray-deletions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Game Theory&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3849&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-bitwise-xor-after-rearrangement/&quot;&gt;Maximum Bitwise XOR After Rearrangement&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-bitwise-xor-after-rearrangement.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-bitwise-xor-after-rearrangement.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3854&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-parity-alternating/&quot;&gt;Minimum Operations to Make Array Parity Alternating&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-parity-alternating.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-parity-alternating.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3858&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-bitwise-or-from-grid/&quot;&gt;Minimum Bitwise OR From Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-bitwise-or-from-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-bitwise-or-from-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3863&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-sort-a-string/&quot;&gt;Minimum Operations to Sort a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-sort-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-sort-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3868&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-equalize-arrays-using-swaps/&quot;&gt;Minimum Cost to Equalize Arrays Using Swaps&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-equalize-arrays-using-swaps.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-equalize-arrays-using-swaps.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3888&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-all-grid-elements-equal/&quot;&gt;Minimum Operations to Make All Grid Elements Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-all-grid-elements-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-all-grid-elements-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Sliding Window, Greedy, Difference Array&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3892&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-achieve-at-least-k-peaks/&quot;&gt;Minimum Operations to Achieve At Least K Peaks&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-achieve-at-least-k-peaks.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-achieve-at-least-k-peaks.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + klogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Heap, Doubly Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3897&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-value-of-concatenated-binary-segments/&quot;&gt;Maximum Value of Concatenated Binary Segments&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-value-of-concatenated-binary-segments.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-value-of-concatenated-binary-segments.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3914&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-non-decreasing/&quot;&gt;Minimum Operations to Make Array Non Decreasing&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-non-decreasing.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-non-decreasing.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3919&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-move-between-indices/&quot;&gt;Minimum Cost to Move Between Indices&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-move-between-indices.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-move-between-indices.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3922&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-flips-to-make-binary-string-coherent/&quot;&gt;Minimum Flips to Make Binary String Coherent&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-flips-to-make-binary-string-coherent.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-flips-to-make-binary-string-coherent.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Greedy, Case Works&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Graph&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3108&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-walk-in-weighted-graph/&quot;&gt;Minimum Cost Walk in Weighted Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-walk-in-weighted-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-walk-in-weighted-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3112&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-closest-marked-node/&quot;&gt;Minimum Time to Visit Disappearing Nodes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-visit-disappearing-nodes.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-visit-disappearing-nodes.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(|E| * log|V|)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(|E|)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3123&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-edges-in-shortest-paths/&quot;&gt;Find Edges in Shortest Paths&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-edges-in-shortest-paths.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-edges-in-shortest-paths.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(|E| * log|V|)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(|E|)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3235&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/check-if-the-rectangle-corner-is-reachable/&quot;&gt;Check if the Rectangle Corner Is Reachable&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/check-if-the-rectangle-corner-is-reachable.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/check-if-the-rectangle-corner-is-reachable.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, BFS, DFS, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3243&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-distance-after-road-addition-queries-i/&quot;&gt;Shortest Distance After Road Addition Queries I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-distance-after-road-addition-queries-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-distance-after-road-addition-queries-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3244&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/shortest-distance-after-road-addition-queries-ii/&quot;&gt;Shortest Distance After Road Addition Queries II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/shortest-distance-after-road-addition-queries-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/shortest-distance-after-road-addition-queries-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, BST, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3265&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-almost-equal-pairs-i/&quot;&gt;Count Almost Equal Pairs I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-almost-equal-pairs-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-almost-equal-pairs-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Combinatorics, Graph, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3267&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-almost-equal-pairs-ii/&quot;&gt;Count Almost Equal Pairs II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-almost-equal-pairs-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-almost-equal-pairs-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^4)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Combinatorics, Graph, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3276&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/select-cells-in-grid-with-maximum-score/&quot;&gt;Select Cells in Grid With Maximum Score&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/select-cells-in-grid-with-maximum-score.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/select-cells-in-grid-with-maximum-score.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * max(n, r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * max(n, r))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;variant of &lt;a href=&quot;https://leetcode.com/problems/maximum-compatibility-score-sum/&quot;&gt;Maximum Compatibility Score Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Hungarian Weighted Bipartite Matching&lt;/code&gt;, DP, Bitmasks&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3310&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/remove-methods-from-project/&quot;&gt;Remove Methods From Project&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/remove-methods-from-project.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/remove-methods-from-project.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3341&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-time-to-reach-last-room-i/&quot;&gt;Find Minimum Time to Reach Last Room I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-time-to-reach-last-room-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-time-to-reach-last-room-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m * log(n * m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3342&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-minimum-time-to-reach-last-room-ii/&quot;&gt;Find Minimum Time to Reach Last Room II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-minimum-time-to-reach-last-room-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-minimum-time-to-reach-last-room-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m * log(n * m))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3377&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/digit-operations-to-make-two-integers-equal/&quot;&gt;Digit Operations to Make Two Integers Equal&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/digit-operations-to-make-two-integers-equal.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/digit-operations-to-make-two-integers-equal.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Number Theory, &lt;code&gt;Linear Sieve of Eratosthenes&lt;/code&gt;, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3378&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-connected-components-in-lcm-graph/&quot;&gt;Count Connected Components in LCM Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-connected-components-in-lcm-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-connected-components-in-lcm-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + tlogt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Number Theory, Graph, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3383&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-runes-to-add-to-cast-spell/&quot;&gt;Minimum Runes to Add to Cast Spell&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-runes-to-add-to-cast-spell.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-runes-to-add-to-cast-spell.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Tarjan&#39;s Strongly Connected Components Algorithm&lt;/code&gt;, SCC&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3376&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-break-locks-i/&quot;&gt;Minimum Time to Break Locks I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-break-locks-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-break-locks-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, DP, Graph, &lt;code&gt;Hungarian Weighted Bipartite Matching&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3385&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-break-locks-ii/&quot;&gt;Minimum Time to Break Locks II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-break-locks-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-break-locks-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Hungarian Weighted Bipartite Matching&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3387&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-amount-after-two-days-of-conversions/&quot;&gt;Maximize Amount After Two Days of Conversions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-amount-after-two-days-of-conversions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-amount-after-two-days-of-conversions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;Bellman-Ford Algorithm&lt;/code&gt;, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3419&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-the-maximum-edge-weight-of-graph/&quot;&gt;Minimize the Maximum Edge Weight of Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-the-maximum-edge-weight-of-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-the-maximum-edge-weight-of-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;, &lt;code&gt;Prim&#39;s Algorithm&lt;/code&gt;, Binary Search, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3435&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/frequencies-of-shortest-supersequences/&quot;&gt;Frequencies of Shortest Supersequences&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/frequencies-of-shortest-supersequences.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/frequencies-of-shortest-supersequences.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + k^2 * 2^k)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(k^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Bitmasks, Graph, Topological Sort&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3481&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/apply-substitutions/&quot;&gt;Apply Substitutions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/apply-substitutions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/apply-substitutions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r * 2^r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r * 2^r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Graph, Topological Sort, Memoization&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3493&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/properties-graph/&quot;&gt;Properties Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/properties-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/properties-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * m)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Flood Fill, BFS, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3532&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/path-existence-queries-in-a-graph-i/&quot;&gt;Path Existence Queries in a Graph I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/path-existence-queries-in-a-graph-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/path-existence-queries-in-a-graph-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + q)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3534&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/path-existence-queries-in-a-graph-ii/&quot;&gt;Path Existence Queries in a Graph II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/path-existence-queries-in-a-graph-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/path-existence-queries-in-a-graph-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + q) * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Greedy, Binary Lifting&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3536&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-product-of-two-digits/&quot;&gt;Maximum Product of Two Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-product-of-two-digits.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-product-of-two-digits.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(d + 10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(10)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Freq Table, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3547&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-sum-of-edge-values-in-a-graph/&quot;&gt;Maximum Sum of Edge Values in a Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-sum-of-edge-values-in-a-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-sum-of-edge-values-in-a-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Flood Fill, BFS, Counting Sort, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3594&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-transport-all-individuals/&quot;&gt;Minimum Time to Transport All Individuals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-transport-all-individuals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-transport-all-individuals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * 3^n * log(m * 3^n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m * 3^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;, Submask Enumeration&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3600&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-spanning-tree-stability-with-upgrades/&quot;&gt;Maximize Spanning Tree Stability with Upgrades&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximize-spanning-tree-stability-with-upgrades.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximize-spanning-tree-stability-with-upgrades.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + eloge)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;MST, Maximum Spanning Tree, Union Find, &lt;code&gt;Kruskal&#39;s Algorithm&lt;/code&gt;, Greedy&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3604&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-reach-destination-in-directed-graph/&quot;&gt;Minimum Time to Reach Destination in Directed Graph&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-reach-destination-in-directed-graph.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-reach-destination-in-directed-graph.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + elogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3620&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/network-recovery-pathways/&quot;&gt;Network Recovery Pathways&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/network-recovery-pathways.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/network-recovery-pathways.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + e) * logr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Topological Sort, DP&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3650&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-path-with-edge-reversals/&quot;&gt;Minimum Cost Path with Edge Reversals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-path-with-edge-reversals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-path-with-edge-reversals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + elogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3656&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/determine-if-a-simple-graph-exists/&quot;&gt;Determine if a Simple Graph Exists&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/determine-if-a-simple-graph-exists.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/determine-if-a-simple-graph-exists.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Erdős–Gallai Theorem&lt;/code&gt;, Sort, Prefix sum, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3660&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/jump-game-ix/&quot;&gt;Jump Game IX&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/jump-game-ix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/jump-game-ix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Prefix Sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3710&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-partition-factor/&quot;&gt;Maximum Partition Factor&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-partition-factor.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-partition-factor.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Sort, Coordinate Compression, Binary Search, BFS, Greedy, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3778&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-distance-excluding-one-maximum-weighted-edge/&quot;&gt;Minimum Distance Excluding One Maximum Weighted Edge&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-distance-excluding-one-maximum-weighted-edge.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-distance-excluding-one-maximum-weighted-edge.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + elogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3873&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximum-points-activated-with-one-addition/&quot;&gt;Maximum Points Activated with One Addition&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/maximum-points-activated-with-one-addition.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/maximum-points-activated-with-one-addition.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3887&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/incremental-even-weighted-cycle-queries/&quot;&gt;Incremental Even-Weighted Cycle Queries&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/incremental-even-weighted-cycle-queries.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/incremental-even-weighted-cycle-queries.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3910&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-connected-subgraphs-with-even-node-sum/&quot;&gt;Count Connected Subgraphs with Even Node Sum&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-connected-subgraphs-with-even-node-sum.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-connected-subgraphs-with-even-node-sum.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O((n + e) * 2^n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Bitmask, DFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3928&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-buy-apples-ii/&quot;&gt;Minimum Cost to Buy Apples II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-buy-apples-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-buy-apples-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * (n + elogn))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + e)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, &lt;code&gt;Dijkstra&#39;s Algorithm&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Geometry&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3453&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/separate-squares-i/&quot;&gt;Separate Squares I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/separate-squares-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/separate-squares-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Binary Search, Sort, Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3454&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/separate-squares-ii/&quot;&gt;Separate Squares II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/separate-squares-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/separate-squares-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sort, Line Sweep, Segment Tree&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Simulation&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3100&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/water-bottles-ii/&quot;&gt;Water Bottles II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/water-bottles-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/water-bottles-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(sqrt(n))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3168&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-number-of-chairs-in-a-waiting-room/&quot;&gt;Minimum Number of Chairs in a Waiting Room&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-number-of-chairs-in-a-waiting-room.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-number-of-chairs-in-a-waiting-room.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3175&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-first-player-to-win-k-games-in-a-row/&quot;&gt;Find The First Player to win K Games in a Row&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-first-player-to-win-k-games-in-a-row.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-first-player-to-win-k-games-in-a-row.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3248&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/snake-in-matrix/&quot;&gt;Snake in Matrix&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/snake-in-matrix.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/snake-in-matrix.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(c)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3412&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-mirror-score-of-a-string/&quot;&gt;Find Mirror Score of a String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-mirror-score-of-a-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-mirror-score-of-a-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Hash Table, Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3433&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/count-mentions-per-user/&quot;&gt;Count Mentions Per User&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/count-mentions-per-user.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/count-mentions-per-user.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(eloge + e * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(e + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3507&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-pair-removal-to-sort-array-i/&quot;&gt;Minimum Pair Removal to Sort Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-pair-removal-to-sort-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-pair-removal-to-sort-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Doubly Linked List, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3510&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-pair-removal-to-sort-array-ii/&quot;&gt;Minimum Pair Removal to Sort Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-pair-removal-to-sort-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-pair-removal-to-sort-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Doubly Linked List, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3522&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/calculate-score-after-performing-instructions/&quot;&gt;Calculate Score After Performing Instructions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/calculate-score-after-performing-instructions.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/calculate-score-after-performing-instructions.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3561&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/resulting-string-after-adjacent-removals/&quot;&gt;Resulting String After Adjacent Removals&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/resulting-string-after-adjacent-removals.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/resulting-string-after-adjacent-removals.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Stack&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3597&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/partition-string/&quot;&gt;Partition String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/partition-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/partition-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Trie&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3608&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-for-k-connected-components/&quot;&gt;Minimum Time for K Connected Components&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-for-k-connected-components.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-for-k-connected-components.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + eloge)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backward Simulation, Sort, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3609&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-moves-to-reach-target-in-grid/&quot;&gt;Minimum Moves to Reach Target in Grid&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-moves-to-reach-target-in-grid.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-moves-to-reach-target-in-grid.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(logtx + logty)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backward Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3612&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/process-string-with-special-operations-i/&quot;&gt;Process String with Special Operations I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/process-string-with-special-operations-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/process-string-with-special-operations-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Deque&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3613&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimize-maximum-component-cost/&quot;&gt;Minimize Maximum Component Cost&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimize-maximum-component-cost.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimize-maximum-component-cost.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + eloge)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backward Simulation, Sort, Union Find&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3614&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/process-string-with-special-operations-ii/&quot;&gt;Process String with Special Operations II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/process-string-with-special-operations-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/process-string-with-special-operations-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backward Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3616&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/number-of-student-replacements/&quot;&gt;Number of Student Replacements&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/number-of-student-replacements.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/number-of-student-replacements.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3639&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-time-to-activate-string/&quot;&gt;Minimum Time to Activate String&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-time-to-activate-string.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-time-to-activate-string.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Backward Simulation, Doubly Linked List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3792&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-increasing-product-blocks/&quot;&gt;Sum of Increasing Product Blocks&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-increasing-product-blocks.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-increasing-product-blocks.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Simulation, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3847&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-score-difference-in-a-game/&quot;&gt;Find the Score Difference in a Game&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-score-difference-in-a-game.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-score-difference-in-a-game.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3853&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/merge-close-characters/&quot;&gt;Merge Close Characters&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/merge-close-characters.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/merge-close-characters.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n + 26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(26)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Freq Table, Two Pointers, Sliding Window&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3867&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/sum-of-gcd-of-formed-pairs/&quot;&gt;Sum of GCD of Formed Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/sum-of-gcd-of-formed-pairs.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/sum-of-gcd-of-formed-pairs.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogr)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation, Prefix sum, Sort, Two Pointers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3894&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/traffic-signal-color/&quot;&gt;Traffic Signal Color&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/traffic-signal-color.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/traffic-signal-color.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Simulation&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Constructive Algorithms&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3139&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-cost-to-equalize-array/&quot;&gt;Minimum Cost to Equalize Array&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-cost-to-equalize-array.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-cost-to-equalize-array.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Constructive Algorithms, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3260&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-the-largest-palindrome-divisible-by-k/&quot;&gt;Find the Largest Palindrome Divisible by K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/find-the-largest-palindrome-divisible-by-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/find-the-largest-palindrome-divisible-by-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;String, Constructive Algorithms, Math&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3311&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-2d-grid-matching-graph-layout/&quot;&gt;Construct 2D Grid Matching Graph Layout&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-2d-grid-matching-graph-layout.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-2d-grid-matching-graph-layout.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Graph, Constructive Algorithms, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3375&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/minimum-operations-to-make-array-values-equal-to-k/&quot;&gt;Minimum Operations to Make Array Values Equal to K&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/minimum-operations-to-make-array-values-equal-to-k.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/minimum-operations-to-make-array-values-equal-to-k.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Constructive Algorithms&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3680&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/generate-schedule/&quot;&gt;Generate Schedule&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/generate-schedule.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/generate-schedule.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Constructive Algorithms&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3875&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-uniform-parity-array-i/&quot;&gt;Construct Uniform Parity Array I&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-uniform-parity-array-i.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-uniform-parity-array-i.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Constructive Algorithms&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3876&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/construct-uniform-parity-array-ii/&quot;&gt;Construct Uniform Parity Array II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/construct-uniform-parity-array-ii.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/construct-uniform-parity-array-ii.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Constructive Algorithms&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;Design&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3242&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-neighbor-sum-service/&quot;&gt;Design Neighbor Sum Service&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-neighbor-sum-service.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-neighbor-sum-service.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(n^2)&lt;/em&gt;&lt;br /&gt;adjacentSum: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;diagonalSum: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3369&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-an-array-statistics-tracker/&quot;&gt;Design an Array Statistics Tracker&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-an-array-statistics-tracker.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-an-array-statistics-tracker.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addNumber: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;removeFirstAddedNumber: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;getMean: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;getMedian: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;getMode: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Deque, Freq Table, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3391&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-a-3d-binary-matrix-with-efficient-layer-tracking/&quot;&gt;Design a 3D Binary Matrix with Efficient Layer Tracking&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-a-3d-binary-matrix-with-efficient-layer-tracking.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-a-3d-binary-matrix-with-efficient-layer-tracking.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;setCell: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;unsetCell: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;largestMatrix: &lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Heap, Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3408&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-task-manager/&quot;&gt;Design Task Manager&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-task-manager.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-task-manager.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(tlogt)&lt;/em&gt;&lt;br /&gt;add: &lt;em&gt;O(logt)&lt;/em&gt;&lt;br /&gt;edit: &lt;em&gt;O(logt)&lt;/em&gt;&lt;br /&gt;rmv: &lt;em&gt;O(logt)&lt;/em&gt;&lt;br /&gt;execTop: &lt;em&gt;O(logt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sorted List&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3484&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-spreadsheet/&quot;&gt;Design Spreadsheet&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-spreadsheet.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-spreadsheet.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;setCell: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;resetCell: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;getValue: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3508&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/implement-router/&quot;&gt;Implement Router&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/implement-router.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/implement-router.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addPacket: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;forwardPacket: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;getCount: &lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Queue, Sorted List, Ordered Set&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3709&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-exam-scores-tracker/&quot;&gt;Design Exam Scores Tracker&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-exam-scores-tracker.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-exam-scores-tracker.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;record: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;totalScore: &lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Prefix Sum, Binary Search&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3815&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-auction-system/&quot;&gt;Design Auction System&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-auction-system.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-auction-system.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addBid: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;updateBid: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;removeBid: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;getHighestBidder: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Hash Table, Heap, Sorted List, BST&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3822&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-order-management-system/&quot;&gt;Design Order Management System&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-order-management-system.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-order-management-system.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addOrder: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;modifyOrder: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;cancelOrder: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;getOrdersAtPrice: &lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3829&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-ride-sharing-system/&quot;&gt;Design Ride Sharing System&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-ride-sharing-system.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-ride-sharing-system.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addRider: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;addDriver: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;matchDriverWithRider: &lt;em&gt;O(1)&lt;/em&gt;&lt;br /&gt;cancelRider: &lt;em&gt;O(1)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Ordered Dict&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3885&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/design-event-manager/&quot;&gt;Design Event Manager&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/C++/design-event-manager.cpp&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/Python/design-event-manager.py&quot;&gt;Python&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;ctor: &lt;em&gt;O(n)&lt;/em&gt;&lt;br /&gt;updatePriority: &lt;em&gt;O(logn)&lt;/em&gt;&lt;br /&gt;pollHightest: &lt;em&gt;O(logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Sorted List, BST, Heap, Hash Table&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;JS&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;SQL&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3050&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/pizza-toppings-cost-analysis/&quot;&gt;Pizza Toppings Cost Analysis&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/pizza-toppings-cost-analysis.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^3)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3051&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-candidates-for-data-scientist-position/&quot;&gt;Find Candidates for Data Scientist Position&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-candidates-for-data-scientist-position.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3052&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/maximize-items/&quot;&gt;Maximize Items&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/maximize-items.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3053&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/classifying-triangles-by-lengths/&quot;&gt;Classifying Triangles by Lengths&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/classifying-triangles-by-lengths.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3054&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/binary-tree-nodes/&quot;&gt;Binary Tree Nodes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/binary-tree-nodes.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3055&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/top-percentile-fraud/&quot;&gt;Top Percentile Fraud&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/top-percentile-fraud.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3056&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/snaps-analysis/&quot;&gt;Snaps Analysis&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/snaps-analysis.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3057&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/employees-project-allocation/&quot;&gt;Employees Project Allocation&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/employees-project-allocation.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3058&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/friends-with-no-mutual-friends/&quot;&gt;Friends With No Mutual Friends&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/friends-with-no-mutual-friends.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3059&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-all-unique-email-domains/&quot;&gt;Find All Unique Email Domains&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-all-unique-email-domains.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3060&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/user-activities-within-time-bounds/&quot;&gt;User Activities within Time Bounds&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/user-activities-within-time-bounds.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3061&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/calculate-trapping-rain-water/&quot;&gt;Calculate Trapping Rain Water&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/calculate-trapping-rain-water.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3087&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-trending-hashtags/&quot;&gt;Find Trending Hashtags&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-trending-hashtags.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3089&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-bursty-behavior/&quot;&gt;Find Bursty Behavior&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-bursty-behavior.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3103&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-trending-hashtags-ii/&quot;&gt;Find Trending Hashtags II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-trending-hashtags-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2 + (n * l) * log(n * l))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3118&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/friday-purchase-iii/&quot;&gt;Friday Purchase III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/friday-purchase-iii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3124&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-longest-calls/&quot;&gt;Find Longest Calls&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-longest-calls.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3126&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/server-utilization-time/&quot;&gt;Server Utilization Time&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/server-utilization-time.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3140&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/consecutive-available-seats-ii/&quot;&gt;Consecutive Available Seats II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/consecutive-available-seats-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3150&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/invalid-tweets-ii/&quot;&gt;Invalid Tweets II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/invalid-tweets-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;String&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3156&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/employee-task-duration-and-concurrent-tasks/&quot;&gt;Employee Task Duration and Concurrent Tasks&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/employee-task-duration-and-concurrent-tasks.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3166&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/calculate-parking-fees-and-duration/&quot;&gt;Calculate Parking Fees and Duration&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/calculate-parking-fees-and-duration.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3172&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/second-day-verification/&quot;&gt;Second Day Verification&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/second-day-verification.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3182&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-top-scoring-students/&quot;&gt;Find Top Scoring Students&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-top-scoring-students.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3188&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-top-scoring-students-ii/&quot;&gt;Find Top Scoring Students II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-top-scoring-students-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3198&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-cities-in-each-state/&quot;&gt;Find Cities in Each State&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-cities-in-each-state.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3204&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/bitwise-user-permissions-analysis/&quot;&gt;Bitwise User Permissions Analysis&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/bitwise-user-permissions-analysis.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3214&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/year-on-year-growth-rate/&quot;&gt;Year on Year Growth Rate&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/year-on-year-growth-rate.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3220&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/odd-and-even-transactions/&quot;&gt;Odd and Even Transactions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/odd-and-even-transactions.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3230&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/customer-purchasing-behavior-analysis/&quot;&gt;Customer Purchasing Behavior Analysis&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/customer-purchasing-behavior-analysis.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3236&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/ceo-subordinate-hierarchy/&quot;&gt;CEO Subordinate Hierarchy&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/ceo-subordinate-hierarchy.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3246&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/premier-league-table-ranking/&quot;&gt;Premier League Table Ranking&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/premier-league-table-ranking.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3252&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/premier-league-table-ranking-ii/&quot;&gt;Premier League Table Ranking II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/premier-league-table-ranking-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3262&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-overlapping-shifts/&quot;&gt;Find Overlapping Shifts&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-overlapping-shifts.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Line Sweep&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3268&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-overlapping-shifts-ii/&quot;&gt;Find Overlapping Shifts II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-overlapping-shifts-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Line Sweep, Window Function, Combinatorics&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3278&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-candidates-for-data-scientist-position-ii/&quot;&gt;Find Candidates for Data Scientist Position II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-candidates-for-data-scientist-position-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p * s * n + p * nlogn + plogp)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p * s * n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3293&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/calculate-product-final-price/&quot;&gt;Calculate Product Final Price&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/calculate-product-final-price.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3308&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-top-performing-driver/&quot;&gt;Find Top Performing Driver&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-top-performing-driver.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(tlogt)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3322&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/premier-league-table-ranking-iii/&quot;&gt;Premier League Table Ranking III&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/premier-league-table-ranking-iii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3328&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-cities-in-each-state-ii/&quot;&gt;Find Cities in Each State II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-cities-in-each-state-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3338&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/second-highest-salary-ii/&quot;&gt;Second Highest Salary II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/second-highest-salary-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3358&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/books-with-null-ratings/&quot;&gt;Books with NULL Ratings&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/books-with-null-ratings.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3368&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/first-letter-capitalization/&quot;&gt;First Letter Capitalization&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/first-letter-capitalization.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2 + (n * l) * log(n * l))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3374&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/first-letter-capitalization-ii/&quot;&gt;First Letter Capitalization II&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/first-letter-capitalization-ii.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2 + (n * l) * log(n * l))&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n * l^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3384&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/team-dominance-by-pass-success/&quot;&gt;Team Dominance by Pass Success&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/team-dominance-by-pass-success.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(plogp + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3390&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/longest-team-pass-streak/&quot;&gt;Longest Team Pass Streak&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/longest-team-pass-streak.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(plogp + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(p + t)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE, Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3401&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-circular-gift-exchange-chains/&quot;&gt;Find Circular Gift Exchange Chains&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-circular-gift-exchange-chains.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Recursive CTE, Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3415&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-products-with-three-consecutive-digits/&quot;&gt;Find Products with Three Consecutive Digits&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-products-with-three-consecutive-digits.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Regular Expression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3421&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-students-who-improved/&quot;&gt;Find Students Who Improved&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-students-who-improved.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;🔒&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3436&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-valid-emails/&quot;&gt;Find Valid Emails&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-valid-emails.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Regular Expression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3451&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-invalid-ip-addresses/&quot;&gt;Find Invalid IP Addresses&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-invalid-ip-addresses.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Regular Expression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3465&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-products-with-valid-serial-numbers/&quot;&gt;Find Products with Valid Serial Numbers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-products-with-valid-serial-numbers.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Regular Expression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3475&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/dna-pattern-recognition/&quot;&gt;DNA Pattern Recognition&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/dna-pattern-recognition.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Regular Expression&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3482&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/analyze-organization-hierarchy/&quot;&gt;Analyze Organization Hierarchy&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/analyze-organization-hierarchy.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Recursive CTE, BFS&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3497&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/analyze-subscription-conversion/&quot;&gt;Analyze Subscription Conversion&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/analyze-subscription-conversion.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3521&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-product-recommendation-pairs/&quot;&gt;Find Product Recommendation Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-product-recommendation-pairs.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3554&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-category-recommendation-pairs/&quot;&gt;Find Category Recommendation Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-category-recommendation-pairs.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3564&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/seasonal-sales-analysis/&quot;&gt;Seasonal Sales Analysis&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/seasonal-sales-analysis.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3570&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-books-with-no-available-copies/&quot;&gt;Find Books with No Available Copies&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-books-with-no-available-copies.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3580&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-consistently-improving-employees/&quot;&gt;Find Consistently Improving Employees&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-consistently-improving-employees.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3586&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-covid-recovery-patients/&quot;&gt;Find COVID Recovery Patients&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-covid-recovery-patients.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3601&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-drivers-with-improved-fuel-efficiency/&quot;&gt;Find Drivers with Improved Fuel Efficiency&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-drivers-with-improved-fuel-efficiency.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3611&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-overbooked-employees/&quot;&gt;Find Overbooked Employees&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-overbooked-employees.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(m + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3617&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-students-with-study-spiral-pattern/&quot;&gt;Find Students with Study Spiral Pattern&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-students-with-study-spiral-pattern.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3626&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-stores-with-inventory-imbalance/&quot;&gt;Find Stores with Inventory Imbalance&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-stores-with-inventory-imbalance.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2 * logn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n^2)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3642&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-books-with-polarized-opinions/&quot;&gt;Find Books with Polarized Opinions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-books-with-polarized-opinions.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(r + n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3657&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-loyal-customers/&quot;&gt;Find Loyal Customers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-loyal-customers.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3673&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-zombie-sessions/&quot;&gt;Find Zombie Sessions&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-zombie-sessions.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3705&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-golden-hour-customers/&quot;&gt;Find Golden Hour Customers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-golden-hour-customers.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3716&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-churn-risk-customers/&quot;&gt;Find Churn Risk Customers&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-churn-risk-customers.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3764&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/most-common-course-pairs/&quot;&gt;Most Common Course Pairs&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/most-common-course-pairs.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3793&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-users-with-high-token-usage/&quot;&gt;Find Users with High Token Usage&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-users-with-high-token-usage.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Easy&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3808&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-emotionally-consistent-users/&quot;&gt;Find Emotionally Consistent Users&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-emotionally-consistent-users.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Medium&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;3832&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://leetcode.com/problems/find-users-with-persistent-behavior-patterns/&quot;&gt;Find Users with Persistent Behavior Patterns&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/MySQL/find-users-with-persistent-behavior-patterns.sql&quot;&gt;MySQL&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(nlogn)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;em&gt;O(n)&lt;/em&gt;&lt;/td&gt; 
   &lt;td&gt;Hard&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;Window Function&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;h2&gt;PD&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;#&lt;/th&gt; 
   &lt;th&gt;Title&lt;/th&gt; 
   &lt;th&gt;Solution&lt;/th&gt; 
   &lt;th&gt;Time&lt;/th&gt; 
   &lt;th&gt;Space&lt;/th&gt; 
   &lt;th&gt;Difficulty&lt;/th&gt; 
   &lt;th&gt;Tag&lt;/th&gt; 
   &lt;th&gt;Note&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
&lt;/table&gt; 
&lt;br /&gt; 
&lt;div align=&quot;right&quot;&gt; 
 &lt;b&gt;&lt;a href=&quot;https://raw.githubusercontent.com/kamyu104/LeetCode-Solutions/master/#algorithms&quot;&gt;⬆️ Back to Top&lt;/a&gt;&lt;/b&gt; 
&lt;/div&gt; 
&lt;br /&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/31e02ffcb513257c76c2b4bff5a826ca2a6aa7e1fe808c37744cc950a0bff5bd/kamyu104/LeetCode-Solutions" medium="image" />
      
    </item>
    
    <item>
      <title>ton-blockchain/ton</title>
      <link>https://github.com/ton-blockchain/ton</link>
      <description>&lt;p&gt;Main TON monorepo&lt;/p&gt;&lt;hr&gt;&lt;div align=&quot;center&quot;&gt; 
 &lt;a href=&quot;https://ton.org&quot;&gt; 
  &lt;picture&gt; 
   &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;./doc/assets/logo_dark.svg&quot; /&gt; 
   &lt;img alt=&quot;TON logo&quot; src=&quot;https://raw.githubusercontent.com/ton-blockchain/ton/master/doc/assets/logo_light.svg?sanitize=true&quot; width=&quot;200&quot; /&gt; 
  &lt;/picture&gt; &lt;/a&gt; 
 &lt;h3&gt;Reference implementation of TON Node and tools&lt;/h3&gt; 
 &lt;hr /&gt; 
&lt;/div&gt; 
&lt;h2&gt;&lt;/h2&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://tonresear.ch&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/TON%20Research-0098EA?style=flat&amp;amp;logo=discourse&amp;amp;label=Forum&amp;amp;labelColor=gray&quot; alt=&quot;Ton Research&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;https://t.me/toncoin&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/TON%20Community-0098EA?logo=telegram&amp;amp;logoColor=white&amp;amp;style=flat&quot; alt=&quot;Telegram Community Group&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;https://t.me/tonblockchain&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/TON%20Foundation-0098EA?logo=telegram&amp;amp;logoColor=white&amp;amp;style=flat&quot; alt=&quot;Telegram Foundation Group&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;https://t.me/tondev_eng&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/chat-TONDev-0098EA?logo=telegram&amp;amp;logoColor=white&amp;amp;style=flat&quot; alt=&quot;Telegram Community Chat&quot; /&gt; &lt;/a&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://twitter.com/ton_blockchain&quot;&gt; &lt;img src=&quot;https://img.shields.io/twitter/follow/ton_blockchain&quot; alt=&quot;Twitter Group&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;https://answers.ton.org&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/-TON%20Overflow-FE7A16?style=flat&amp;amp;logo=stack-overflow&amp;amp;logoColor=white&quot; alt=&quot;TON Overflow Group&quot; /&gt; &lt;/a&gt; &lt;a href=&quot;https://stackoverflow.com/questions/tagged/ton&quot;&gt; &lt;img src=&quot;https://img.shields.io/badge/-Stack%20Overflow-FE7A16?style=flat&amp;amp;logo=stack-overflow&amp;amp;logoColor=white&quot; alt=&quot;Stack Overflow Group&quot; /&gt; &lt;/a&gt; &lt;/p&gt; 
&lt;p&gt;Main TON monorepo, which includes the code of the node/validator, lite-client, tonlib, FunC compiler, etc.&lt;/p&gt; 
&lt;h2&gt;The Open Network&lt;/h2&gt; 
&lt;p&gt;&lt;strong&gt;The Open Network (TON)&lt;/strong&gt; is a fast, secure, scalable blockchain focused on handling &lt;em&gt;millions of transactions per second&lt;/em&gt; (TPS) with the goal of reaching hundreds of millions of blockchain users.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;To learn more about different aspects of TON blockchain and its underlying ecosystem check &lt;a href=&quot;https://ton.org/docs&quot;&gt;documentation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;To run node, validator or lite-server check &lt;a href=&quot;https://ton.org/docs/participate/nodes/run-node&quot;&gt;Participate section&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;To develop decentralised apps check &lt;a href=&quot;https://docs.ton.org/v3/guidelines/smart-contracts/guidelines&quot;&gt;Tutorials&lt;/a&gt;, &lt;a href=&quot;https://ton.org/docs/develop/func/overview&quot;&gt;FunC docs&lt;/a&gt; and &lt;a href=&quot;https://docs.ton.org/v3/guidelines/dapps/overview&quot;&gt;DApp tutorials&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;To work on TON check &lt;a href=&quot;https://ton.app/wallets&quot;&gt;wallets&lt;/a&gt;, &lt;a href=&quot;https://ton.app/explorers&quot;&gt;explorers&lt;/a&gt;, &lt;a href=&quot;https://ton.app/dex&quot;&gt;DEXes&lt;/a&gt; and &lt;a href=&quot;https://ton.app/utilities&quot;&gt;utilities&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;To interact with TON check &lt;a href=&quot;https://docs.ton.org/v3/guidelines/dapps/apis-sdks/overview&quot;&gt;APIs&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Updates flow&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;master branch&lt;/strong&gt; - mainnet is running on this stable branch.&lt;/p&gt; &lt;p&gt;Only emergency updates, urgent updates, or updates that do not affect the main codebase (GitHub workflows / docker images / documentation) are committed directly to this branch.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;testnet branch&lt;/strong&gt; - testnet is running on this branch. The branch contains a set of new updates. After testing, the testnet branch is merged into the master branch and then a new set of updates is added to testnet branch.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;backlog&lt;/strong&gt; - other branches that are candidates to getting into the testnet branch in the next iteration.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Usually, the response to your pull request will indicate which section it falls into.&lt;/p&gt; 
&lt;h2&gt;&quot;Soft&quot; Pull Request rules&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Thou shall not merge your own PRs, at least one person should review the PR and merge it (4-eyes rule)&lt;/li&gt; 
 &lt;li&gt;Thou shall make sure that workflows are cleanly completed for your PR before considering merge&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Build TON blockchain&lt;/h2&gt; 
&lt;h3&gt;Ubuntu 22.04, 24.04 (x86-64, aarch64)&lt;/h3&gt; 
&lt;p&gt;Install additional system libraries&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build

  wget https://apt.llvm.org/llvm.sh
  chmod +x llvm.sh
  sudo ./llvm.sh 21 clang
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Compile TON binaries&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cp assembly/native/build-ubuntu-shared.sh .
  chmod +x build-ubuntu-shared.sh
  ./build-ubuntu-shared.sh
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;MacOS 11, 12 (x86-64, aarch64)&lt;/h3&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cp assembly/native/build-macos-shared.sh .
  chmod +x build-macos-shared.sh
  ./build-macos-shared.sh
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Windows 10, 11, Server (x86-64)&lt;/h3&gt; 
&lt;p&gt;You need to install &lt;code&gt;MS Visual Studio 2022&lt;/code&gt; first. Go to &lt;a href=&quot;https://www.visualstudio.com/downloads/&quot;&gt;https://www.visualstudio.com/downloads/&lt;/a&gt; and download &lt;code&gt;MS Visual Studio 2022 Community&lt;/code&gt;.&lt;/p&gt; 
&lt;p&gt;Launch installer and select &lt;code&gt;Desktop development with C++&lt;/code&gt;. After installation, also make sure that &lt;code&gt;cmake&lt;/code&gt; is globally available by adding &lt;code&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin&lt;/code&gt; to the system &lt;code&gt;PATH&lt;/code&gt; (adjust the path per your needs).&lt;/p&gt; 
&lt;p&gt;Open an elevated (Run as Administrator) &lt;code&gt;x86-64 Native Tools Command Prompt for VS 2022&lt;/code&gt;, go to the root folder, and execute:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  copy assembly\native\build-windows-2022.bat .
  build-windows-2022.bat
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;MSYS2 MinGW64 (x86-64)&lt;/h3&gt; 
&lt;p&gt;Execute from MinGW64 shell&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cp assembly/msys2/build-mingw64.sh .
  chmod +x build-mingw64.sh
  ./build-mingw64.sh -a
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;As a result, you will get fully statically compiled TON windows binaries.&lt;/p&gt; 
&lt;h3&gt;MSYS2 UCRT64 (x86-64)&lt;/h3&gt; 
&lt;p&gt;Execute from ucrt64 shell&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cp assembly/msys2/build-ucrt64.sh .
  chmod +x build-ucrt64.sh
  ./build-ucrt64.sh -a
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;As a result, you will get fully statically compiled TON windows binaries.&lt;/p&gt; 
&lt;h3&gt;Building TON to WebAssembly&lt;/h3&gt; 
&lt;p&gt;Install additional system libraries on Ubuntu&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build

  wget https://apt.llvm.org/llvm.sh
  chmod +x llvm.sh
  sudo ./llvm.sh 21 clang
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Compile TON binaries with emscripten&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cd assembly/wasm
  chmod +x fift-func-wasm-build-ubuntu.sh
  ./fift-func-wasm-build-ubuntu.sh
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Building TON tonlib library for Android (arm64-v8a, armeabi-v7a, x86, x86-64)&lt;/h3&gt; 
&lt;p&gt;Install additional system libraries on Ubuntu&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  sudo apt-get update
  sudo apt-get install -y build-essential git cmake ninja-build automake libtool texinfo autoconf libgflags-dev \
  libreadline-dev pkg-config libgsl-dev python3 python3-dev libtool autoconf
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Compile TON tonlib library&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cp assembly/android/build-android-tonlib.sh .
  chmod +x build-android-tonlib.sh
  ./build-android-tonlib.sh
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;TON portable binaries&lt;/h3&gt; 
&lt;p&gt;Linux portable binaries are wrapped into AppImages, at the same time MacOS portable binaries are statically linked executables. Linux and MacOS binaries are available for both x86-64 and arm64 architectures.&lt;/p&gt; 
&lt;h2&gt;Running tests&lt;/h2&gt; 
&lt;p&gt;Tests are executed by running &lt;code&gt;ctest&lt;/code&gt; in the build directory. See &lt;code&gt;doc/Tests.md&lt;/code&gt; for more information.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/b2383d1c93f4ee9fc1c56d215571af25964234e345833d272f44e774b8356fcd/ton-blockchain/ton" medium="image" />
      
    </item>
    
    <item>
      <title>microsoft/WSL</title>
      <link>https://github.com/microsoft/WSL</link>
      <description>&lt;p&gt;Windows Subsystem for Linux&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;Welcome to the Windows Subsystem for Linux (WSL) repository&lt;/h1&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/Images/Square44x44Logo.targetsize-256.png&quot; alt=&quot;WSL logo&quot; /&gt; &lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://aka.ms/wsldocs&quot;&gt;Learn more about WSL&lt;/a&gt; | &lt;a href=&quot;https://github.com/microsoft/WSL/releases&quot;&gt;Downloads &amp;amp; Release notes&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/CONTRIBUTING.md&quot;&gt;Contributing to WSL&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;About&lt;/h2&gt; 
&lt;p&gt;Windows Subsystem for Linux (WSL) is a powerful way for you to run your Linux command-line tools, utilities and applications, all unmodified and directly on Windows without the overhead of a traditional virtual machine or dual boot setup.&lt;/p&gt; 
&lt;p&gt;You can install WSL right away by running this command inside of your Windows command line:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-powershell&quot;&gt;wsl --install
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You can learn more about &lt;a href=&quot;https://learn.microsoft.com/windows/wsl/setup/environment&quot;&gt;best practices for setup&lt;/a&gt;, &lt;a href=&quot;https://learn.microsoft.com/windows/wsl/about&quot;&gt;overviews of WSL&lt;/a&gt; and more at our &lt;a href=&quot;https://learn.microsoft.com/windows/wsl/&quot;&gt;WSL documentation page&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Related repositories&lt;/h2&gt; 
&lt;p&gt;WSL also has related open source repositories:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/microsoft/WSL2-Linux-Kernel&quot;&gt;microsoft/WSL2-Linux-Kernel&lt;/a&gt; - The Linux kernel shipped with WSL&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/microsoft/wslg&quot;&gt;microsoft/WSLg&lt;/a&gt; - Support for Linux GUI apps in WSL&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/microsoftdocs/wsl&quot;&gt;microsoftdocs/wsl&lt;/a&gt; - WSL documentation at &lt;a href=&quot;http://aka.ms/wsldocs&quot;&gt;aka.ms/wsldocs&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Contributing&lt;/h2&gt; 
&lt;p&gt;This project welcomes contributions of all types, including coding features / bug fixes, documentation fixes, design proposals and more.&lt;/p&gt; 
&lt;p&gt;We ask that before you start working on a contribution, please read our &lt;a href=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/CONTRIBUTING.md&quot;&gt;Contributor&#39;s Guide&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;For guidance on developing for WSL, please read the &lt;a href=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/doc/docs/dev-loop.md&quot;&gt;developer docs&lt;/a&gt; for instructions on how to build WSL from source and details on its architecture.&lt;/p&gt; 
&lt;h2&gt;Code of Conduct&lt;/h2&gt; 
&lt;p&gt;This project has adopted the &lt;a href=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/CODE_OF_CONDUCT.md&quot;&gt;Microsoft Open Source Code of Conduct&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Trademarks&lt;/h2&gt; 
&lt;p&gt;This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow &lt;a href=&quot;https://www.microsoft.com/legal/intellectualproperty/trademarks&quot;&gt;Microsoft’s Trademark &amp;amp; Brand Guidelines&lt;/a&gt;. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.&lt;/p&gt; 
&lt;h2&gt;Privacy and telemetry&lt;/h2&gt; 
&lt;p&gt;The application logs basic diagnostic data (telemetry). For more information on privacy and what we collect, see our &lt;a href=&quot;https://raw.githubusercontent.com/microsoft/WSL/master/DATA_AND_PRIVACY.md&quot;&gt;data and privacy documentation&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at &lt;a href=&quot;https://go.microsoft.com/fwlink/?LinkID=824704&quot;&gt;https://go.microsoft.com/fwlink/?LinkID=824704&lt;/a&gt;. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/2f0b0a44cd519032c93b81d537f70ebf613a27492a57f4bd33f7ba5a001e8c8b/microsoft/WSL" medium="image" />
      
    </item>
    
    <item>
      <title>NVIDIA/cutlass</title>
      <link>https://github.com/NVIDIA/cutlass</link>
      <description>&lt;p&gt;CUDA Templates and Python DSLs for High-Performance Linear Algebra&lt;/p&gt;&lt;hr&gt;&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/media/images/gemm-hierarchy-with-epilogue-no-labels.png&quot; alt=&quot;ALT&quot; title=&quot;Complete CUDA GEMM decomposition&quot; /&gt;&lt;/p&gt; 
&lt;h1&gt;Overview&lt;/h1&gt; 
&lt;h1&gt;CUTLASS 4.5.0&lt;/h1&gt; 
&lt;p&gt;&lt;em&gt;CUTLASS 4.5.0 - May 2026&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;CUTLASS is a collection of abstractions for implementing high-performance matrix-matrix multiplication (GEMM) and related computations at all levels and scales within CUDA. It incorporates strategies for hierarchical decomposition and data movement. CUTLASS decomposes these &quot;moving parts&quot; into reusable, modular software components and abstractions.&lt;/p&gt; 
&lt;p&gt;Primitives for different levels of a conceptual parallelization hierarchy can be specialized and tuned via custom tiling sizes, data types, and other algorithmic policy. The resulting flexibility simplifies their use as building blocks within custom kernels and applications.&lt;/p&gt; 
&lt;p&gt;CUTLASS has been providing CUDA C++ template abstractions for high-performance linear algebra since 2017 and these abstractions provide extensive support for a wide range of computations including mixed-precision computations, specialized data-movement (async copy) and multiply-accumulate abstractions for FP64, FP32, TF32, FP16, BF16, &lt;a href=&quot;https://github.com/NVIDIA/cutlass/tree/main/examples/27_ampere_3xtf32_fast_accurate_tensorop_gemm&quot;&gt;FP32 emulation via tensor core instruction&lt;/a&gt;, 8b floating point types (e5m2 and e4m3), block scaled data types (NVIDIA NVFP4 and OCP standard MXFP4, MXFP6, MXFP8), narrow integer types (4 and 8b signed and unsigned integers), and binary 1b data types (where architectures allow for the native support of such data types) across NVIDIA&#39;s Volta, Turing, Ampere, Ada, Hopper, and Blackwell architectures.&lt;/p&gt; 
&lt;p&gt;To this rich ecosystem of C++ based kernel programming abstractions, CUTLASS 4 adds CUTLASS DSLs. These are Python native interfaces for writing high-performance CUDA kernels based on core CUTLASS and CuTe concepts without any performance compromises. This allows for a much smoother learning curve, orders of magnitude faster compile times, native integration with DL frameworks without writing glue code, and much more intuitive metaprogramming that does not require deep C++ expertise.&lt;/p&gt; 
&lt;p&gt;Overall we envision CUTLASS DSLs as a family of domain-specific languages (DSLs). With the release of 4.0, we are releasing the first of these in CuTe DSL. This is a low level programming model that is fully consistent with CuTe C++ abstractions — exposing core concepts such as layouts, tensors, hardware atoms, and full control over the hardware thread and data hierarchy.&lt;/p&gt; 
&lt;p&gt;CuTe DSL demonstrates optimal matrix multiply and other linear algebra operations targeting the programmable, high-throughput &lt;em&gt;Tensor Cores&lt;/em&gt; implemented by NVIDIA&#39;s Ampere, Hopper, and Blackwell architectures.&lt;/p&gt; 
&lt;p&gt;We believe it will become an indispensable tool for students, researchers, and performance engineers alike — flattening the learning curve of GPU programming, rapidly prototyping kernel designs, and bringing optimized solutions into production.&lt;/p&gt; 
&lt;p&gt;CuTe DSL is currently in public beta and will graduate out of beta by end of summer 2025.&lt;/p&gt; 
&lt;p&gt;To get started quickly - please refer :&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html&quot;&gt;CUTLASS C++ Quick Start Guide&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/pythonDSL/quick_start.html&quot;&gt;CuTe DSL Quick Start Guide&lt;/a&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h1&gt;What&#39;s New in CUTLASS 4.5&lt;/h1&gt; 
&lt;h2&gt;CuTe DSL&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;New features&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;New Block API &lt;code&gt;block_copy()&lt;/code&gt; to simplify TMA and S2T copy. Users can ignore detail about multicast and 2CTA partition for TMA by &lt;code&gt;block_copy()&lt;/code&gt; and need not to invoke &lt;code&gt;tma_partition()&lt;/code&gt;. And users can remove bulk of S2T initialization to simplify S2T copy.&lt;/li&gt; 
   &lt;li&gt;MXF8F6F4 mixed precision support 
    &lt;ul&gt; 
     &lt;li&gt;BlockScaled MMA now supports MXF8&lt;em&gt;MXF4 or MXF8&lt;/em&gt;MXF6&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;Block Scaled MMA for SM120 now works on Spark&lt;/li&gt; 
   &lt;li&gt;EFC broadcast semantics support 
    &lt;ul&gt; 
     &lt;li&gt;EFC epilogue functions can now broadcast and remap tensor modes via &lt;code&gt;C.remap_modes[:, 0, 1]&lt;/code&gt; subscript syntax (where &lt;code&gt;:&lt;/code&gt; marks a broadcast dimension and integers select source mode indices). Covers scalar broadcast, row/column broadcast, and arbitrary mode permutations (e.g. transpose). The PyTorch reference evaluator mirrors the same transformations.&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;Initial linter support: Improved type hints on CuTe DSL APIs to support static type checkers like MyPy&lt;/li&gt; 
   &lt;li&gt;dataclasses.dataclass is now supported for JIT compilaton and cute.compile for both plain and tvm-ffi path&lt;/li&gt; 
   &lt;li&gt;cute.copy now supports user specified loop unrolling&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Bug fixing and improvements&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;Improved source code correlation for profiling/debugging&lt;/li&gt; 
   &lt;li&gt;Fixed an aarch64 segfault issue with tvm-ffi&lt;/li&gt; 
   &lt;li&gt;Re-organization for CuTe DSL examples/tutorials for better discoverability&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;More examples of authorizing peak-performance kernels&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;MOE examles 
    &lt;ul&gt; 
     &lt;li&gt;A new style of grouped-gemm that aligns to torch&#39;s grouped_mm and scaled_groued_mm interface.&lt;/li&gt; 
     &lt;li&gt;Expert-wise tensormap descriptor setup by a cheap helper kernel (~2us) to avoid long latency in tile switching, kernel structure is much more closer to a normal GEMM.&lt;/li&gt; 
     &lt;li&gt;Compared to torch_210_cu13, very few problem has worse perf in B200. 
      &lt;ul&gt; 
       &lt;li&gt;mxfp8_2dx3d: avg 1.29 speedup;&lt;/li&gt; 
       &lt;li&gt;mxfp8_2dx2d: avg 1.41 speedup; 
        &lt;ul&gt; 
         &lt;li&gt;nvfp4_2dx3d: avg 1.11 speedup;&lt;/li&gt; 
        &lt;/ul&gt; &lt;/li&gt; 
       &lt;li&gt;nvfp4_2dx2d: avg 1.12 speedup (worst case 0.98)&lt;/li&gt; 
       &lt;li&gt;bf16_2dx3d: avg 1.15 speedup (worst case 0.98)&lt;/li&gt; 
       &lt;li&gt;bf16_2dx2d: avg 1.17 speedup (worst case 0.96)&lt;/li&gt; 
       &lt;li&gt;Note: The perf is measured from torch profiler, this impl includes the helper kernel + main kernel, while torch&#39;s includes its setup kernel and cutlass_cpp main kernel.&lt;/li&gt; 
      &lt;/ul&gt; &lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;API changes&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;ab_dtype is deprecated in make_trivial_tiled_mma and make_blockscaled_trivial_tiled_mma from blackwell_helpers.py. Please specify a_dtype and b_dtype separately instead.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;CUTLASS C++&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Add 2SM MMA instruction support to mixed TMA+CpAsync SM100 vanilla GEMM kernels. 
  &lt;ul&gt; 
   &lt;li&gt;Mixed TMA+CpAsync can now accept static, but non trivial cluster shapes.&lt;/li&gt; 
   &lt;li&gt;Uses TMA multicast for A tile when using non-trivial cluster size along N mode.&lt;/li&gt; 
   &lt;li&gt;Uses an additional barrier (mma_trampoline_barrier) to track cp.async arrivals in both CTAs.&lt;/li&gt; 
   &lt;li&gt;Changes included in &lt;a href=&quot;https://github.com/NVIDIA/cutlass/tree/main/examples/92_blackwell_moe_gemm&quot;&gt;example 92&lt;/a&gt;.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Add support for 128x32xK and 128x64xK tile sizes for SM120 blockscaled MMA collective builders, yielding up to 30% performance improvement on Blackwell SM121 related kernels.&lt;/li&gt; 
 &lt;li&gt;Add static load to tensor memory support, included in &lt;a href=&quot;https://github.com/NVIDIA/cutlass/tree/main/examples/77_blackwell_fmha/&quot;&gt;example 77&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;Use 64-bit adds for SM100 MMA descriptor offsets and reduce move instructions for improved code generation.&lt;/li&gt; 
 &lt;li&gt;Add &lt;a href=&quot;https://github.com/NVIDIA/cutlass/tree/main/examples/95_blackwell_gemm_green_context&quot;&gt;example 95&lt;/a&gt; to support green context SM partition 
  &lt;ul&gt; 
   &lt;li&gt;Enables launching GEMM on stream with partial SM allocation.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Add &lt;a href=&quot;https://github.com/NVIDIA/cutlass/raw/main/test/unit/epilogue/thread/activation.cu#L409&quot;&gt;Snake&lt;/a&gt; activation functor for EVT.&lt;/li&gt; 
 &lt;li&gt;Fix some kernel issues: 
  &lt;ul&gt; 
   &lt;li&gt;Fix l2_capacity=0 handling in Blackwell SM100/SM120 kernel templates&lt;/li&gt; 
   &lt;li&gt;Fix CUTLASS clang build issues&lt;/li&gt; 
   &lt;li&gt;Fix atomicCAS read-modify-write loop in &lt;code&gt;ConstSubbyteReference&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;Replace &lt;code&gt;__nv_atomic_load_n&lt;/code&gt; with &lt;code&gt;volatile&lt;/code&gt; for CUDA 11.4 compatibility in subbyte reference&lt;/li&gt; 
   &lt;li&gt;Remove &lt;code&gt;PipelineStorage&lt;/code&gt; shadowing in SM100 complex epilogue&lt;/li&gt; 
   &lt;li&gt;Fix build issue in SM90 epilogue fusion visitor TMA warpspecialized&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Fix some profiler issues: 
  &lt;ul&gt; 
   &lt;li&gt;Add missing reference kernels for blockwise GEMM profiler.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Note: CUTLASS 4.x builds are known to be down on Windows platforms for all CUDA toolkits. CUTLASS team is working on a fix.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;See the &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/CHANGELOG.html&quot;&gt;CHANGELOG&lt;/a&gt; for details of all past releases and updates.&lt;/strong&gt;&lt;/p&gt; 
&lt;h1&gt;Performance&lt;/h1&gt; 
&lt;p&gt;CUTLASS primitives are very efficient. When used to construct device-wide GEMM kernels, they exhibit nearly optimal utilization of peak theoretical throughput. The figure below shows CUTLASS 3.8&#39;s performance as a % of theoretical peak utilization on various input and output data types when run on NVIDIA Blackwell SM100 architecture GPU.&lt;/p&gt; 
&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/media/images/cutlass-3.8-blackwell-gemm-peak-performance.svg?sanitize=true&quot; alt=&quot;ALT&quot; /&gt;&lt;/p&gt; 
&lt;p&gt;The two figures below show the continual CUTLASS performance improvements on an &lt;a href=&quot;https://www.nvidia.com/en-us/data-center/h100/&quot;&gt;NVIDIA H100&lt;/a&gt; (NVIDIA Hopper architecture) since CUTLASS 3.1. CUTLASS 3.5.1 was compiled with the &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;CUDA 12.5u1 Toolkit&lt;/a&gt;. Tensor Core operations are implemented using CUDA&#39;s &lt;a href=&quot;https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#warp-level-matrix-instructions-mma&quot;&gt;mma&lt;/a&gt; and &lt;a href=&quot;https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#asynchronous-warpgroup-level-matrix-instructions&quot;&gt;wgmma&lt;/a&gt; instructions.&lt;/p&gt; 
&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/media/images/cutlass-3.5.1-gemm-peak-performance.png&quot; alt=&quot;ALT&quot; /&gt; &lt;img src=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/media/images/cutlass-3.5.1-gemm-peak-performance-fp8.png&quot; alt=&quot;ALT&quot; /&gt;&lt;/p&gt; 
&lt;h1&gt;CuTe&lt;/h1&gt; 
&lt;p&gt;CUTLASS 3.0 introduced a new core library, CuTe, to describe and manipulate tensors of threads and data. CuTe is a collection of C++ CUDA template abstractions for defining and operating on hierarchically multidimensional layouts of threads and data. CuTe provides &lt;code&gt;Layout&lt;/code&gt; and &lt;code&gt;Tensor&lt;/code&gt; objects that compactly package the type, shape, memory space, and layout of data, while performing the complicated indexing for the user. This lets programmers focus on the logical descriptions of their algorithms while CuTe does the mechanical bookkeeping for them. With these tools, we can quickly design, implement, and modify all dense linear algebra operations.&lt;/p&gt; 
&lt;p&gt;The core abstractions of CuTe are hierarchically multidimensional layouts which can be composed with data arrays to represent tensors. The representation of layouts is powerful enough to represent nearly everything we need to implement efficient dense linear algebra. Layouts can also be combined and manipulated via functional composition, on which we build a large set of common operations such as tiling and partitioning.&lt;/p&gt; 
&lt;p&gt;CUTLASS 3.0 and beyond adopts CuTe throughout the GEMM hierarchy in its templates. This greatly simplifies the design and improves code composability and readability. More documentation specific to CuTe can be found in its &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/cute/00_quickstart.html&quot;&gt;dedicated documentation directory&lt;/a&gt;.&lt;/p&gt; 
&lt;h1&gt;Compatibility&lt;/h1&gt; 
&lt;p&gt;Minimum requirements:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Architecture: Volta (compute capability 7.0)&lt;/li&gt; 
 &lt;li&gt;Compiler: Must support at least C++17&lt;/li&gt; 
 &lt;li&gt;CUDA Toolkit version: 11.4&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;CUTLASS requires a C++17 host compiler and performs best when built with the &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;&lt;strong&gt;CUDA 12.8 Toolkit&lt;/strong&gt;&lt;/a&gt;. It is also compatible with CUDA 11.4, CUDA 11.5, CUDA 11.6, CUDA 11.7, CUDA 11.8, and all other CUDA 12.x versions.&lt;/p&gt; 
&lt;h2&gt;Operating Systems&lt;/h2&gt; 
&lt;p&gt;We have tested the following environments.&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;&lt;strong&gt;Operating System&lt;/strong&gt;&lt;/th&gt; 
   &lt;th&gt;&lt;strong&gt;Compiler&lt;/strong&gt;&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ubuntu 18.04&lt;/td&gt; 
   &lt;td&gt;GCC 7.5.0&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ubuntu 20.04&lt;/td&gt; 
   &lt;td&gt;GCC 10.3.0&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ubuntu 22.04&lt;/td&gt; 
   &lt;td&gt;GCC 11.2.0&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;Note: GCC 8.5.0 has known regressions regarding fold expressions and overloaded operators. Using GCC 7.5.0 or (preferred) GCC &amp;gt;= 9 is recommended.&lt;/p&gt; 
&lt;p&gt;Note: CUTLASS 3.x builds are known to be down on Windows platforms for all CUDA toolkits. CUTLASS team is working on a fix.&lt;/p&gt; 
&lt;h2&gt;Hardware&lt;/h2&gt; 
&lt;p&gt;CUTLASS runs successfully on the following NVIDIA GPUs, and it is expected to be efficient on Volta, Turing, Ampere, Ada, and Hopper architecture based NVIDIA GPUs.&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;&lt;strong&gt;GPU&lt;/strong&gt;&lt;/th&gt; 
   &lt;th&gt;&lt;strong&gt;CUDA Compute Capability&lt;/strong&gt;&lt;/th&gt; 
   &lt;th&gt;&lt;strong&gt;Minimum CUDA Toolkit Required by CUTLASS-3&lt;/strong&gt;&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA V100 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;7.0&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA TitanV&lt;/td&gt; 
   &lt;td&gt;7.0&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA GeForce RTX 20x0 series&lt;/td&gt; 
   &lt;td&gt;7.5&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA T4&lt;/td&gt; 
   &lt;td&gt;7.5&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA A100 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;8.0&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA A10&lt;/td&gt; 
   &lt;td&gt;8.6&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA GeForce RTX 30x0 series&lt;/td&gt; 
   &lt;td&gt;8.6&lt;/td&gt; 
   &lt;td&gt;11.4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA GeForce RTX 40x0 series&lt;/td&gt; 
   &lt;td&gt;8.9&lt;/td&gt; 
   &lt;td&gt;11.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA L40&lt;/td&gt; 
   &lt;td&gt;8.9&lt;/td&gt; 
   &lt;td&gt;11.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA H100 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;9.0&lt;/td&gt; 
   &lt;td&gt;11.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA H200 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;9.0&lt;/td&gt; 
   &lt;td&gt;11.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA B200 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;10.0&lt;/td&gt; 
   &lt;td&gt;12.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA B300 Tensor Core GPU&lt;/td&gt; 
   &lt;td&gt;10.3&lt;/td&gt; 
   &lt;td&gt;13.0&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA DRIVE Thor&lt;/td&gt; 
   &lt;td&gt;11.0&lt;/td&gt; 
   &lt;td&gt;13.0&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA GeForce RTX 50x0 series&lt;/td&gt; 
   &lt;td&gt;12.0&lt;/td&gt; 
   &lt;td&gt;12.8&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA DGX Spark&lt;/td&gt; 
   &lt;td&gt;12.1&lt;/td&gt; 
   &lt;td&gt;13.0&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h2&gt;Target Architecture&lt;/h2&gt; 
&lt;p&gt;In general, PTX code generated for one target architecture can be run on future architectures (i.e., it is forward compatible). However, CUDA 12.0 introduced the concept of &quot;architecture-accelerated features&quot; whose PTX does not have forward compatibility guarantees. Several Hopper and Blackwell PTX instructions fall under this category of architecture-accelerated features, and thus require a &lt;code&gt;sm_90a&lt;/code&gt; or &lt;code&gt;sm100a&lt;/code&gt; target architecture (note the &quot;a&quot; appended). For more details on this and other architecture-accelerated instructions, please refer to the &lt;a href=&quot;https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#feature-availability&quot;&gt;CUDA Documentation&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;The target architecture information is passed on to CUTLASS via the cmake flag &lt;code&gt;CUTLASS_NVCC_ARCHS&lt;/code&gt;. In order to maximize performance on Hopper GH100, users are required to build CUTLASS with &lt;code&gt;90a&lt;/code&gt; as the target architecture. If a user accidentally builds a kernel which uses SM90a features (e.g. Hopper Tensor Core Instructions), using the SM90 target (note the lack of &quot;a&quot;), with either CUDA Toolkit 12 or 11.8, the kernel is expected to fail with a runtime error.&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake .. -DCUTLASS_NVCC_ARCHS=&quot;90a&quot;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Or&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake .. -DCUTLASS_NVCC_ARCHS=&quot;100a&quot;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note: The NVIDIA Blackwell SM100 architecture used in the datacenter products has a different compute capability than the one underpinning NVIDIA Blackwell GeForce RTX 50 series GPUs (SM120). As a result, kernels compiled for Blackwell SM100 architecture with arch conditional features (using &lt;code&gt;sm100a&lt;/code&gt;) are not compatible with RTX 50 series GPUs.&lt;/p&gt; 
&lt;p&gt;Please refer to the &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/functionality.html&quot;&gt;functionality documentation&lt;/a&gt; for details on which kernels require which target architectures.&lt;/p&gt; 
&lt;h1&gt;Documentation&lt;/h1&gt; 
&lt;p&gt;CUTLASS is described in the following documents and the accompanying &lt;a href=&quot;https://nvidia.github.io/cutlass&quot;&gt;Doxygen documentation&lt;/a&gt;.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html&quot;&gt;Quick Start Guide&lt;/a&gt; - basics of building and running CUTLASS&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/functionality.html&quot;&gt;Functionality&lt;/a&gt; - summarizes functionality available in CUTLASS&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/efficient_gemm.html&quot;&gt;Efficient GEMM in CUDA&lt;/a&gt; - describes how GEMM kernels may be implemented efficiently in CUDA&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/cutlass_3x_design.html&quot;&gt;CUTLASS 3.x Design&lt;/a&gt; - describes the CUTLASS 3.x design, its benefits, and how CuTe enables us to write much more composable components&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/gemm_api_3x.html&quot;&gt;GEMM API 3.x&lt;/a&gt; - describes the CUTLASS 3.x GEMM model and C++ template concepts&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/gemm_api.html&quot;&gt;GEMM API 2.x&lt;/a&gt; - describes the CUTLASS 2.x GEMM model and C++ template concepts&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/implicit_gemm_convolution.html&quot;&gt;Implicit GEMM Convolution&lt;/a&gt; - describes 2-D and 3-D convolution in CUTLASS&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/code_organization.html&quot;&gt;Code Organization&lt;/a&gt; - describes the organization and contents of the CUTLASS project&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/terminology.html&quot;&gt;Terminology&lt;/a&gt; - describes terms used in the code&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/programming_guidelines.html&quot;&gt;Programming Guidelines&lt;/a&gt; - guidelines for writing efficient modern CUDA C++&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/fundamental_types.html&quot;&gt;Fundamental types&lt;/a&gt; - describes basic C++ classes used in CUTLASS to represent numeric quantities and arrays&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/layout.html&quot;&gt;Layouts&lt;/a&gt; - describes layouts of matrices and tensors in memory&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/tile_iterator_concept.html&quot;&gt;Tile Iterators&lt;/a&gt; - describes C++ concepts for iterating over tiles of matrices in memory&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/profiler.html&quot;&gt;CUTLASS Profiler&lt;/a&gt; - command-line driven profiling application&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/utilities.html&quot;&gt;CUTLASS Utilities&lt;/a&gt; - additional templates used to facilitate rapid development&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/dependent_kernel_launch.html&quot;&gt;Dependent kernel launch&lt;/a&gt; - describes a new feature in Hopper which allows overlapping dependent kernels in the same stream, and how it is used in CUTLASS.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h1&gt;Resources&lt;/h1&gt; 
&lt;p&gt;We have also described the structure of an efficient GEMM in our talk at the &lt;a href=&quot;http://on-demand.gputechconf.com/gtc/2018/presentation/s8854-cutlass-software-primitives-for-dense-linear-algebra-at-all-levels-and-scales-within-cuda.pdf&quot;&gt;GPU Technology Conference 2018&lt;/a&gt;.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/on-demand/session/gtcsiliconvalley2018-s8854/&quot;&gt;CUTLASS: Software Primitives for Dense Linear Algebra at All Levels and Scales within CUDA&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/on-demand/session/gtcsj20-s21745/&quot;&gt;Developing CUDA Kernels to Push Tensor Cores to the Absolute Limit on NVIDIA A100&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/on-demand/session/gtcspring21-s31883/&quot;&gt;Accelerating Convolution with Tensor Cores in CUTLASS&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/on-demand/session/gtcspring22-s41996/&quot;&gt;Accelerating Backward Data Gradient by Increasing Tensor Core Utilization in CUTLASS&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.nvidia.com/en-us/on-demand/session/gtcfall22-a41131/&quot;&gt;CUTLASS: Python API, Enhancements, and NVIDIA Hopper&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h1&gt;Building CUTLASS&lt;/h1&gt; 
&lt;p&gt;CUTLASS is a header-only template library and does not need to be built to be used by other projects. Client applications should target CUTLASS&#39;s &lt;code&gt;include/&lt;/code&gt; directory in their include paths.&lt;/p&gt; 
&lt;p&gt;CUTLASS unit tests, examples, and utilities can be build with CMake. The minimum version of CMake is given in the &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html&quot;&gt;Quickstart guide&lt;/a&gt;. Make sure the &lt;code&gt;CUDACXX&lt;/code&gt; environment variable points to NVCC in the CUDA Toolkit installed on your system.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ export CUDACXX=${CUDA_INSTALL_PATH}/bin/nvcc
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Create a build directory within the CUTLASS project, then run CMake. By default CUTLASS will build kernels for CUDA architecture versions 5.0, 6.0, 6.1, 7.0, 7.5, 8.0, 8.6, 8.9, and 9.0. To reduce compile time you can specify the architectures to build CUTLASS for by changing the CMake configuration setting &lt;code&gt;CUTLASS_NVCC_ARCHS&lt;/code&gt;.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ mkdir build &amp;amp;&amp;amp; cd build

$ cmake .. -DCUTLASS_NVCC_ARCHS=80               # compiles for NVIDIA&#39;s Ampere Architecture
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;From the &lt;code&gt;build/&lt;/code&gt; directory, compile and run the CUTLASS unit tests by building the target &lt;code&gt;test_unit&lt;/code&gt; with make.&lt;/p&gt; 
&lt;p&gt;The unit tests are organized as several binaries mirroring the top-level namespaces of CUTLASS, and they may be executed in parallel via make&#39;s &lt;code&gt;-j&lt;/code&gt; command line argument.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ make test_unit -j
...
...
...
[----------] Global test environment tear-down
[==========] 946 tests from 57 test cases ran. (10812 ms total)
[  PASSED  ] 946 tests.
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;All tests should pass on supported platforms, though the exact number of tests may vary over time.&lt;/p&gt; 
&lt;h1&gt;Project Structure&lt;/h1&gt; 
&lt;p&gt;CUTLASS is arranged as a header-only library along with Utilities, Tools, Examples, and unit tests. &lt;a href=&quot;https://nvidia.github.io/cutlass&quot;&gt;Doxygen documentation&lt;/a&gt; provides a complete list of files, classes, and template concepts defined in the CUTLASS project.&lt;/p&gt; 
&lt;p&gt;A detailed explanation of the source code organization may be found in the &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/code_organization.html&quot;&gt;CUTLASS documentation&lt;/a&gt;, but several main components are summarized below.&lt;/p&gt; 
&lt;h2&gt;CUTLASS Template Library&lt;/h2&gt; 
&lt;pre&gt;&lt;code&gt;include/                     # client applications should target this directory in their build&#39;s include paths

  cutlass/                   # CUDA Templates for Linear Algebra Subroutines and Solvers - headers only

    arch/                    # direct exposure of architecture features (including instruction-level GEMMs)

    conv/                    # code specialized for convolution

    epilogue/                # code specialized for the epilogue of gemm/convolution

    gemm/                    # code specialized for general matrix product computations

    layout/                  # layout definitions for matrices, tensors, and other mathematical objects in memory

    platform/                # CUDA-capable Standard Library components

    reduction/               # bandwidth-limited reduction kernels that do not fit the &quot;gemm&quot; model

    thread/                  # simt code that can be performed within a CUDA thread

    transform/               # code specialized for layout, type, and domain transformations

    *                        # core vocabulary types, containers, and basic numeric operations

  cute/                      # CuTe Layout, layout algebra, MMA/Copy atoms, tiled MMA/Copy

    algorithm/               # Definitions of core operations such as copy, gemm, and operations on cute::tuples

    arch/                    # Bare bones PTX wrapper structs for copy and math instructions

    atom/                    # Meta-information either link to or built from arch/ operators

      mma_atom.hpp           # cute::Mma_Atom and cute::TiledMma

      copy_atom.hpp          # cute::Copy_Atom and cute::TiledCopy

      *sm*.hpp               # Arch specific meta-information for copy and math operations

    *                        # Core library types such as Shape, Stride, Layout, Tensor, and associated operations

&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;CUTLASS SDK Examples&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/NVIDIA/cutlass/tree/main/examples&quot;&gt;CUTLASS SDK examples&lt;/a&gt; apply CUTLASS templates to implement basic computations.&lt;/p&gt; 
&lt;h3&gt;Tools&lt;/h3&gt; 
&lt;pre&gt;&lt;code&gt;tools/
  library/                   # CUTLASS Instance Library - contains instantiations of all supported CUTLASS templates
    include/
      cutlass/
        library/

  profiler/                  # CUTLASS Profiler         - command-line utility for executing operations in the
                             #                            CUTLASS Library

  util/                      # CUTLASS Utilities        - contains numerous helper classes for
    include/                 #                            managing tensors in device memory, reference
      cutlass/               #                            implementations for GEMM, random initialization
        util/                #                            of tensors, and I/O.
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Test&lt;/h3&gt; 
&lt;p&gt;The &lt;code&gt;test/unit/&lt;/code&gt; directory consist of unit tests implemented with Google Test that demonstrate basic usage of Core API components and complete tests of the CUTLASS GEMM computations.&lt;/p&gt; 
&lt;p&gt;Instructions for building and running the Unit tests are described in the &lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html&quot;&gt;Quickstart guide&lt;/a&gt;.&lt;/p&gt; 
&lt;h1&gt;Performance Profiling&lt;/h1&gt; 
&lt;p&gt;The &lt;code&gt;tools/profiler/&lt;/code&gt; directory contains a command-line utility for launching each of the GEMM kernels. It can be built as follows:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Building all GEMM and Convolution kernels (&lt;em&gt;long&lt;/em&gt; build times)&lt;/h2&gt; 
&lt;p&gt;By default, only one tile size is instantiated for each data type, math instruction, and layout. To instantiate all, set the following environment variable when running CMake from an empty &lt;code&gt;build/&lt;/code&gt; directory. Beware, this results in &lt;em&gt;tens of thousands&lt;/em&gt; of kernels and long build times. This would also result in a large binary size and on some platforms linker to fail on building the library. Therefore, it&#39;s highly recommended to generate only a subset of kernels as demonstrated in the sub-section below.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ cmake .. -DCUTLASS_NVCC_ARCHS=90a -DCUTLASS_LIBRARY_KERNELS=all
...
$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Building a subset of GEMM and Convolution kernels (&lt;em&gt;reduced&lt;/em&gt; build times)&lt;/h2&gt; 
&lt;p&gt;To compile strictly one kernel or a small set of kernels, a comma-delimited list of kernel names with wildcard characters may be used to reduce the set of kernels. The following examples show building exactly one or a subset of kernels for NVIDIA Ampere and Turing architecture:&lt;/p&gt; 
&lt;h3&gt;Building a subset Tensor Core GEMM kernels&lt;/h3&gt; 
&lt;p&gt;To compile a subset of Tensor Core GEMM kernels with FP32 accumulation and FP16 input targeting NVIDIA Ampere and Turing architecture, use the below cmake command line:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ cmake .. -DCUTLASS_NVCC_ARCHS=&#39;75;80&#39; -DCUTLASS_LIBRARY_KERNELS=cutlass_tensorop_s*gemm_f16_*_nt_align8
...
$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Example command line for profiling a subset of Tensor Core GEMM kernels is as follows:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;./tools/profiler/cutlass_profiler --kernels=cutlass_tensorop_s*gemm_f16_*_nt_align8 --m=3456 --n=4096 --k=4096

...
=============================
  Problem ID: 1

        Provider: CUTLASS
   OperationKind: gemm
       Operation: cutlass_tensorop_s1688gemm_f16_256x128_32x2_nt_align8

          Status: Success
    Verification: ON
     Disposition: Passed

reference_device: Passed
          cuBLAS: Passed

       Arguments: --gemm_kind=universal --m=3456 --n=4096 --k=4096 --A=f16:column --B=f16:row --C=f32:column --alpha=1  \
                  --beta=0 --split_k_slices=1 --batch_count=1 --op_class=tensorop --accum=f32 --cta_m=256 --cta_n=128  \
                  --cta_k=32 --stages=2 --warps_m=4 --warps_n=2 --warps_k=1 --inst_m=16 --inst_n=8 --inst_k=8 --min_cc=75  \
                  --max_cc=1024

           Bytes: 118489088  bytes
           FLOPs: 115992428544  flops

         Runtime: 1.55948  ms
          Memory: 70.7616 GiB/s

            Math: 74378.8 GFLOP/s



=============================
...
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Building one CUDA Core GEMM kernel&lt;/h3&gt; 
&lt;p&gt;To compile one SGEMM kernel targeting NVIDIA Ampere and Turing architecture, use the below cmake command line:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ cmake .. -DCUTLASS_NVCC_ARCHS=&#39;75;80&#39; -DCUTLASS_LIBRARY_KERNELS=cutlass_simt_sgemm_128x128_8x2_nn_align1
...
$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Example command line for profiling single SGEMM CUDA kernel is as follows:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ ./tools/profiler/cutlass_profiler --kernels=sgemm --m=3456 --n=4096 --k=4096

=============================
  Problem ID: 1

        Provider: CUTLASS
   OperationKind: gemm
       Operation: cutlass_simt_sgemm_128x128_8x2_nn_align1

          Status: Success
    Verification: ON
     Disposition: Passed

          cuBLAS: Passed

       Arguments: --m=3456 --n=4096 --k=4096 --A=f32:column --B=f32:column --C=f32:column --alpha=1 --beta=0 --split_k_slices=1  \
                  --batch_count=1 --op_class=simt --accum=f32 --cta_m=128 --cta_n=128 --cta_k=8 --stages=2 --warps_m=4  \
                  --warps_n=2 --warps_k=1 --inst_m=1 --inst_n=1 --inst_k=1 --min_cc=50 --max_cc=1024

           Bytes: 180355072  bytes
           FLOPs: 115992428544  flops

         Runtime: 6.73655  ms
          Memory: 24.934 GiB/s

            Math: 17218.4 GFLOP/s

=============================
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Building a subset of Tensor Core Convolution kernels&lt;/h3&gt; 
&lt;p&gt;To compile a subset of Tensor core convolution kernels implementing forward propagation (fprop) with FP32 accumulation and FP16 input targeting NVIDIA Ampere and Turing architecture, use the below cmake command line:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ cmake .. -DCUTLASS_NVCC_ARCHS=&#39;75;80&#39; -DCUTLASS_LIBRARY_KERNELS=cutlass_tensorop_s*fprop_optimized_f16
...
$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Example command line for profiling a subset of Tensor Core convolution kernels is as follows:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ ./tools/profiler/cutlass_profiler --kernels=cutlass_tensorop_s*fprop_optimized_f16 --n=8 --h=224 --w=224 --c=128 --k=128 --r=3 --s=3

...
=============================
  Problem ID: 1

        Provider: CUTLASS
   OperationKind: conv2d
       Operation: cutlass_tensorop_s16816fprop_optimized_f16_128x128_32x5_nhwc

          Status: Success
    Verification: ON
     Disposition: Passed

reference_device: Passed

       Arguments: --conv_kind=fprop --n=8 --h=224 --w=224 --c=128 --k=128 --r=3 --s=3 --p=224 --q=224 --pad_h=1 --pad_w=1  \
                  --stride_h=1 --stride_w=1 --dilation_h=1 --dilation_w=1 --Activation=f16:nhwc --Filter=f16:nhwc --Output=f32:nhwc  \
                  --conv_mode=cross --iterator_algorithm=optimized --alpha=1 --beta=0 --split_k_mode=serial --split_k_slices=1  \
                  --eq_gemm_provider=none --op_class=tensorop --accum=f32 --cta_m=128 --cta_n=128 --cta_k=32 --stages=5  \
                  --warps_m=2 --warps_n=2 --warps_k=1 --inst_m=16 --inst_n=8 --inst_k=16 --min_cc=80 --max_cc=1024

           Bytes: 1130659840  bytes
           FLOPs: 118482796544  flops

         Runtime: 0.711496  ms
          Memory: 1479.99 GiB/s

            Math: 166526 GFLOP/s

=============================
...
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Building one Convolution CUDA kernel&lt;/h3&gt; 
&lt;p&gt;To compile and run one CUDA Core convolution kernel implementing forward propagation (fprop) with F32 accumulation and FP32 input targeting NVIDIA Ampere and Turing architecture, use the below cmake command line:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ cmake .. -DCUTLASS_NVCC_ARCHS=&#39;75;80&#39; -DCUTLASS_LIBRARY_KERNELS=cutlass_simt_sfprop_optimized_128x128_8x2_nhwc
...
$ make cutlass_profiler -j16
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Example command line for profiling one CUDA Core convolution kernel:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ ./tools/profiler/cutlass_profiler --kernels=cutlass_simt_sfprop_optimized_128x128_8x2_nhwc --n=8 --h=224 --w=224 --c=128 --k=128 --r=3 --s=3


=============================
  Problem ID: 1

        Provider: CUTLASS
   OperationKind: conv2d
       Operation: cutlass_simt_sfprop_optimized_128x128_8x2_nhwc

          Status: Success
    Verification: ON
     Disposition: Passed

reference_device: Passed

       Arguments: --conv_kind=fprop --n=8 --h=224 --w=224 --c=128 --k=128 --r=3 --s=3 --p=224 --q=224 --pad_h=1 --pad_w=1  \
                  --stride_h=1 --stride_w=1 --dilation_h=1 --dilation_w=1 --Activation=f32:nhwc --Filter=f32:nhwc --Output=f32:nhwc  \
                  --conv_mode=cross --iterator_algorithm=optimized --alpha=1 --beta=0 --split_k_mode=serial --split_k_slices=1  \
                  --eq_gemm_provider=none --op_class=simt --accum=f32 --cta_m=128 --cta_n=128 --cta_k=8 --stages=2 --warps_m=4  \
                  --warps_n=2 --warps_k=1 --inst_m=1 --inst_n=1 --inst_k=1 --min_cc=50 --max_cc=1024

           Bytes: 2055798784  bytes
           FLOPs: 118482796544  flops

         Runtime: 7.34266  ms
          Memory: 260.752 GiB/s

            Math: 16136.2 GFLOP/s


=============================

&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;More Details on Compiling CUTLASS Kernels and CUTLASS Profiler&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Please follow the links for more CMake examples on selectively compiling CUTLASS kernels: 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html#gemm-cmake-examples&quot;&gt;GEMM CMake Examples&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/quickstart.html#convolution-cmake-examples&quot;&gt;Implicit GEMM convolution CMake Examples&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cutlass/latest/media/docs/cpp/profiler.html&quot;&gt;Further details about the CUTLASS Profiler are described here.&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h1&gt;About&lt;/h1&gt; 
&lt;p&gt;CUTLASS is released by NVIDIA Corporation as Open Source software under the &lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/LICENSE.txt&quot;&gt;3-clause &quot;New&quot; BSD license&lt;/a&gt;.&lt;/p&gt; 
&lt;h1&gt;Contributors&lt;/h1&gt; 
&lt;p&gt;The official list of CUTLASS developers and contributors is available here: &lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cutlass/main/CONTRIBUTORS.md&quot;&gt;CONTRIBUTORS&lt;/a&gt;.&lt;/p&gt; 
&lt;h1&gt;Copyright&lt;/h1&gt; 
&lt;p&gt;Copyright (c) 2017 - 2026 NVIDIA CORPORATION &amp;amp; AFFILIATES. All rights reserved. SPDX-License-Identifier: BSD-3-Clause&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
&lt;/code&gt;&lt;/pre&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/abb10923f3a7345b646b9427a8fb6c7db6631bb498e7b8d4171c36f87e5a273d/NVIDIA/cutlass" medium="image" />
      
    </item>
    
    <item>
      <title>ztxz16/fastllm</title>
      <link>https://github.com/ztxz16/fastllm</link>
      <description>&lt;p&gt;fastllm是后端无依赖的高性能大模型推理库。同时支持张量并行推理稠密模型和混合模式推理MOE模型，任意10G以上显卡即可推理满血DeepSeek。双路9004/9005服务器+单显卡部署DeepSeek满血满精度原版模型，单并发20tps；INT4量化模型单并发30tps，多并发可达60+。&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;fastllm&lt;/h1&gt; 
&lt;p&gt;| &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B&quot;&gt;快速开始&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/deepseek.md&quot;&gt;部署DeepSeek&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/qwen3.md&quot;&gt;部署Qwen3&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/version.md&quot;&gt;版本日志&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/README_EN.md&quot;&gt;English Document&lt;/a&gt;&lt;/p&gt; 
&lt;h1&gt;引用说明&lt;/h1&gt; 
&lt;p&gt;本项目参考了许多开源项目的代码和相关文章，具体请参考 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E5%8F%82%E8%80%83%E4%BB%A3%E7%A0%81%E5%92%8C%E6%96%87%E7%AB%A0&quot;&gt;参考代码和文章&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;介绍&lt;/h2&gt; 
&lt;p&gt;fastllm是c++实现自有算子替代Pytorch的高性能全功能大模型推理库，可以推理Qwen, Llama, Phi等稠密模型，以及DeepSeek, Qwen-moe等moe模型&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;具有优良的兼容性，支持M40, K80到5090全系列N卡，支持MI50，7900等A卡，支持天数，沐曦等国产卡，支持ThinkForce NPU推理&lt;/li&gt; 
 &lt;li&gt;支持任意显卡的FP8推理&lt;/li&gt; 
 &lt;li&gt;任意显卡只需要显存 &amp;gt; 10G就可以支持单卡推理满血DeepSeek R1 671B模型&lt;/li&gt; 
 &lt;li&gt;双路9004/9005服务器 + 单显卡部署DeepSeek R1 671B - FP8原版模型，单并发速度可达20左右，部署INT4模型单并发速度可达30左右，最高并发速度可达60+&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;部署交流QQ群：831641348&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;微信&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;用户交流群&lt;/strong&gt;（使用、部署等问题）：&lt;img src=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/wechat_group0.jpg&quot; alt=&quot;用户交流群二维码&quot; /&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;社区开发群&lt;/strong&gt;（参与贡献与开发讨论）：&lt;img src=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/develop-group.png&quot; alt=&quot;社区开发群二维码&quot; /&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;新功能速览&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Fastllm目前支持DeepSeek-V4模型了&lt;/li&gt; 
 &lt;li&gt;Fastllm目前支持导出通用动态量化模型了！参考&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/dtype_config.md&quot;&gt;动态量化说明&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Fastllm目前可以支持部分GGUF模型的读取了！需要注意，目前需要使用&lt;code&gt;--ori&lt;/code&gt;参数指定源模型配置文件夹，请阅读 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97&quot;&gt;使用指南&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;亮点功能&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;🚀 安装使用简单方便，一条命令就能成功安装，一条命令就能成功运行。&lt;/li&gt; 
 &lt;li&gt;🚀 支持CPU + GPU混合推理MOE大参数模型（单显卡即可推理DEEPSEEK 671B）。&lt;/li&gt; 
 &lt;li&gt;🚀 使用C++实现自有底层算子，不依赖PyTorch。&lt;/li&gt; 
 &lt;li&gt;🚀 兼容性好，PIP安装支持可以支持到P100、MI50等老卡，源码安装支持更多设备。&lt;/li&gt; 
 &lt;li&gt;🚀 支持多卡张量并行推理，支持3、5、7等奇数张卡。&lt;/li&gt; 
 &lt;li&gt;🚀 支持GPU + CPU混合张量并行推理&lt;/li&gt; 
 &lt;li&gt;🚀 支持CPU和显卡实现FP8运算，老设备也可以运行&lt;/li&gt; 
 &lt;li&gt;🚀 支持多CPU加速，且只占用1份内存&lt;/li&gt; 
 &lt;li&gt;🚀 支持ROCM，AMD GPU；支持天数，沐曦，燧原；支持华为昇腾。&lt;/li&gt; 
 &lt;li&gt;🚀 支持动态Batch，流式输出；前后端分离设计，可跨平台移植，可在安卓上直接编译。&lt;/li&gt; 
 &lt;li&gt;🚀 支持Python&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/custom.md&quot;&gt;自定义模型结构&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;快速开始&lt;/h2&gt; 
&lt;h3&gt;安装&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;pip&lt;/code&gt;安装支持&lt;code&gt;Nvidia GPU&lt;/code&gt;和&lt;code&gt;AMD GPU&lt;/code&gt;，其余&lt;code&gt;GPU&lt;/code&gt;请使用&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E6%BA%90%E7%A0%81%E5%AE%89%E8%A3%85&quot;&gt;源码安装&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;pip&lt;/code&gt;安装速度慢时，可使用镜像加速&lt;/li&gt; 
&lt;/ul&gt; 
&lt;pre&gt;&lt;code&gt;pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Linux系统 + Nvidia GPU:&lt;/h4&gt; 
&lt;pre&gt;&lt;code&gt;pip install ftllm -U
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Linux系统 + AMD GPU:&lt;/h4&gt; 
&lt;p&gt;由于目前PyPI限制库大小，安装包中不含ROCM依赖，安装ftllm之前建议先手动安装ROCM 6.3.3 (若已安装ROCM可跳过)&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;wget wget https://repo.radeon.com/amdgpu-install/6.3.3/ubuntu/jammy/amdgpu-install_6.3.60303-1_all.deb
apt install ./amdgpu-install_6.3.60303-1_all.deb -y
amdgpu-install --usecase=hiplibsdk,rocm,dkms -y
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;然后用pip安装，命令如下：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pip install ftllm-rocm -U
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Windows系统 （仅支持Nvidia GPU）:&lt;/h4&gt; 
&lt;p&gt;第一次安装前需要安装依赖库:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pip install https://www.modelscope.cn/models/huangyuyang/fastllmdepend-windows/resolve/master/ftllmdepend-0.0.0.2-py3-none-win_amd64.whl
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;然后用pip安装，命令如下：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pip install ftllm -U
&lt;/code&gt;&lt;/pre&gt; 
&lt;ul&gt; 
 &lt;li&gt;Hint&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Conda下安装有时候会出现环境错误，如果出现可以尝试在Conda外或使用venv等虚拟环境尝试&lt;/p&gt; 
&lt;p&gt;（若使用时报错，可参考&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/faq.md#ftllm%E5%8A%A0%E8%BD%BD%E6%8A%A5%E9%94%99&quot;&gt;ftllm报错&lt;/a&gt; )&lt;/p&gt; 
&lt;h3&gt;运行demo程序&lt;/h3&gt; 
&lt;p&gt;可以运行一个较小模型测试安装是否成功, 以Qwen/Qwen3-0.6B模型为例&lt;/p&gt; 
&lt;h4&gt;命令行聊天：&lt;/h4&gt; 
&lt;pre&gt;&lt;code&gt;ftllm run Qwen/Qwen3-0.6B
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;WebUI:&lt;/h4&gt; 
&lt;pre&gt;&lt;code&gt;ftllm webui Qwen/Qwen3-0.6B
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;API Server (OpenAI 风格):&lt;/h4&gt; 
&lt;pre&gt;&lt;code&gt;ftllm server Qwen/Qwen3-0.6B
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;使用指南&lt;/h2&gt; 
&lt;h3&gt;1. 如何启动模型&lt;/h3&gt; 
&lt;p&gt;基本的启动命令格式如下：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;ftllm run Qwen/Qwen3-0.6B # 启动本地对话
ftllm webui Qwen/Qwen3-0.6B # 启动WebUI
ftllm server Qwen/Qwen3-0.6B # 启动API Server
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;根据你需要开启的服务，选择相应的命令。以 &lt;code&gt;server&lt;/code&gt; 命令为例，格式如下：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;ftllm server model
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;这里的&lt;code&gt;model&lt;/code&gt;可以是:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Huggingface上的模型，例如 &lt;code&gt;Qwen/Qwen3-0.6B&lt;/code&gt; 代表 &lt;a href=&quot;https://hf-mirror.com/Qwen/Qwen3-0.6B&quot;&gt;千问3-0.6B模型&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;本地模型路径。例如&lt;code&gt;/mnt/Qwen3-0.6B&lt;/code&gt;，高速下载模型可以参考 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E6%A8%A1%E5%9E%8B%E4%B8%8B%E8%BD%BD&quot;&gt;模型下载&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;无论是在线模型还是本地模型，目前支持以下几种格式 （均以在线模型举例，可以在Huggingface上搜到对应模型）:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;FP16&lt;/code&gt;, &lt;code&gt;BF16&lt;/code&gt;格式的原始模型，例如&lt;code&gt;Qwen/Qwen3-0.6B&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;FP8&lt;/code&gt;格式的模型，例如&lt;code&gt;Qwen/Qwen3-0.6B-FP8&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;AWQ&lt;/code&gt;格式的模型，例如&lt;code&gt;Qwen/Qwen3-14B-AWQ&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;Fastllm&lt;/code&gt;格式的模型，例如&lt;code&gt;fastllm/DeepSeek-V3-0324-INT4&lt;/code&gt;。也可以下载原始模型后通过 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/#%E6%A8%A1%E5%9E%8B%E5%AF%BC%E5%87%BA&quot;&gt;模型导出&lt;/a&gt; 中的命令导出&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;GGUF&lt;/code&gt; 格式的模型，需要用&lt;code&gt;--ori&lt;/code&gt;参数指定原始模型路径，例如&lt;/li&gt; 
&lt;/ul&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm server DeepSeek-V3-0324-Q4_K_M-00001-of-00009.gguf --ori DeepSeek-V3
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;这里的&lt;code&gt;DeepSeek-V3&lt;/code&gt;是原始模型文件夹，无需下载权重文件，可以参考如下命令下载：&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm download deepseek-ai/DeepSeek-V3 --exclude &quot;*safetensors*&quot;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;如果您是第一次使用ftllm，建议直接使用基本的启动命令启动，所有的参数都会自动设置。如果您希望继续调参，请参照下面的参数设置说明&lt;/p&gt; 
&lt;h3&gt;2. 如何设定推理精度&lt;/h3&gt; 
&lt;p&gt;当启动的模型为浮点精度时（&lt;code&gt;BF16&lt;/code&gt;, &lt;code&gt;FP16&lt;/code&gt;, &lt;code&gt;FP8&lt;/code&gt;）时，可以通过以下参数来设置模型的推理精度：&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--dtype&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定模型的数据类型。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;可选值&lt;/strong&gt;: &lt;code&gt;int4g&lt;/code&gt; &lt;code&gt;int4&lt;/code&gt; &lt;code&gt;int8&lt;/code&gt; &lt;code&gt;fp8&lt;/code&gt; &lt;code&gt;float16&lt;/code&gt; 或其他支持的数据类型。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--dtype int4&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--moe_dtype&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定模型MOE层的数据类型。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;可选值&lt;/strong&gt;: &lt;code&gt;int4g&lt;/code&gt; &lt;code&gt;int4&lt;/code&gt; &lt;code&gt;int8&lt;/code&gt; &lt;code&gt;fp8&lt;/code&gt; &lt;code&gt;float16&lt;/code&gt; 或其他支持的数据类型。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--moe_dtype int4&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;说明&lt;/strong&gt;: 如果指定的模型不是&lt;code&gt;moe&lt;/code&gt;结构的模型，这个参数不会生效&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;命令示例：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;ftllm server Qwen/Qwen3-0.6B --dtype int8 
# 上面的命令会读取原始模型（这个模型是BF16精度），并在线量化为INT8精度推理

ftllm server deepseek-ai/DeepSeek-V3-0324 --dtype fp8 --moe_dtype int4
# 上面的命令会读取原始模型（这个模型是FP8精度），并使用FP8 + INT4的混合精度推理
&lt;/code&gt;&lt;/pre&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;--dtype_config&lt;/code&gt;: 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定动态量化配置文件。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;说明&lt;/strong&gt;: 参考&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/dtype_config.md&quot;&gt;动态量化说明&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;若不设定这些参数，ftllm会使用模型中设定的精度来进行推理&lt;/p&gt; 
&lt;p&gt;若使用的模型已经是量化好的模型（例如AWQ模型，Fastllm导出的量化模型等），建议不指定这些参数&lt;/p&gt; 
&lt;h3&gt;3. 如何设定运行设备&lt;/h3&gt; 
&lt;p&gt;可以通过以下参数来设定执行推理的设备&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--device&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定模型运行的计算设备。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--device cpu&lt;/code&gt;, &lt;code&gt;--device cuda&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;常用值说明&lt;/strong&gt;: 
    &lt;ul&gt; 
     &lt;li&gt;&lt;code&gt;cpu&lt;/code&gt; 使用&lt;code&gt;cpu&lt;/code&gt;推理&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;cuda&lt;/code&gt; 使用&lt;code&gt;gpu&lt;/code&gt;推理&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;numa&lt;/code&gt; 使用多路&lt;code&gt;numa&lt;/code&gt;节点加速推理，在多CPU的机器才会有提升。使用numa加速时，强烈建议关闭系统numa平衡。（ubuntu中可使用命令&lt;code&gt;sudo sysctl -w kernel.numa_balancing=0&lt;/code&gt;)&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;multicuda&lt;/code&gt; 使用多设备张量并行推理 
      &lt;ul&gt; 
       &lt;li&gt;&lt;strong&gt;使用多显卡&lt;/strong&gt;: &lt;code&gt;--device multicuda:0,1&lt;/code&gt;&lt;/li&gt; 
       &lt;li&gt;&lt;strong&gt;使用多显卡+CPU&lt;/strong&gt;: &lt;code&gt;--device multicuda:0,cpu&lt;/code&gt;&lt;/li&gt; 
       &lt;li&gt;&lt;strong&gt;按比例使用多显卡+CPU&lt;/strong&gt;: &lt;code&gt;--device multicuda:0:4,1:5,cpu:1&lt;/code&gt; (&lt;code&gt;cuda:0&lt;/code&gt;计算4/10, &lt;code&gt;cuda:1&lt;/code&gt;计算5/10, &lt;code&gt;cpu&lt;/code&gt;计算1/10)&lt;/li&gt; 
      &lt;/ul&gt; &lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;串行计算&lt;/strong&gt;: 一些场景下可以指定不同的device串行执行。例如 
    &lt;ul&gt; 
     &lt;li&gt;&lt;code&gt;--device &quot;{&#39;cuda:0&#39;:3,&#39;cuda:1&#39;:2}&quot;&lt;/code&gt;: 这样&lt;code&gt;3/5&lt;/code&gt;的层会运行在&lt;code&gt;cuda:0&lt;/code&gt;上，&lt;code&gt;2/5&lt;/code&gt;的层会运行在&lt;code&gt;cuda:1&lt;/code&gt;上&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;--device &quot;{&#39;multicuda:0,1&#39;:3,&#39;cuda:1&#39;:2}&quot;&lt;/code&gt;: 这样&lt;code&gt;3/5&lt;/code&gt;的层会使用&lt;code&gt;cuda:0&lt;/code&gt;,&lt;code&gt;cuda:1&lt;/code&gt;张量并行，&lt;code&gt;2/5&lt;/code&gt;的层仅仅运行在&lt;code&gt;cuda:1&lt;/code&gt;上&lt;/li&gt; 
     &lt;li&gt;&lt;strong&gt;简写&lt;/strong&gt;: &lt;code&gt;--device cudapp=N&lt;/code&gt; 表示N卡均匀串行，例如 &lt;code&gt;--device cudapp=4&lt;/code&gt; 等价于 &lt;code&gt;--device &quot;{&#39;cuda:0&#39;:1,&#39;cuda:1&#39;:1,&#39;cuda:2&#39;:1,&#39;cuda:3&#39;:1}&quot;&lt;/code&gt;&lt;/li&gt; 
     &lt;li&gt;&lt;strong&gt;简写&lt;/strong&gt;: &lt;code&gt;--device cudapp=1:2:3&lt;/code&gt; 表示三卡按1:2:3比例串行，等价于 &lt;code&gt;--device &quot;{&#39;cuda:0&#39;:1,&#39;cuda:1&#39;:2,&#39;cuda:2&#39;:3}&quot;&lt;/code&gt;&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--moe_device&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定 MOE（Mixture of Experts）层的计算设备。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--moe_device cpu&lt;/code&gt;, &lt;code&gt;--moe_device numa&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;常用值说明&lt;/strong&gt;: 
    &lt;ul&gt; 
     &lt;li&gt;&lt;code&gt;cpu&lt;/code&gt; 使用&lt;code&gt;cpu&lt;/code&gt;推理&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;numa&lt;/code&gt; 使用多路&lt;code&gt;numa&lt;/code&gt;节点加速推理，在多CPU的机器才会有提升&lt;/li&gt; 
     &lt;li&gt;&lt;code&gt;cuda&lt;/code&gt; 使用&lt;code&gt;gpu&lt;/code&gt;推理 （MOE层需要大量显存，一般不建议指定为&lt;code&gt;cuda&lt;/code&gt;）&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;说明&lt;/strong&gt;: 一般和device指定为不同的设备实现混合推理，例如 &lt;code&gt;--device cuda --moe_device cpu&lt;/code&gt;来实现MOE模型的单卡+CPU混合推理。 &lt;code&gt;--device cuda --moe_device numa&lt;/code&gt; 来实现MOE模型的单卡+多NUMA节点加速推理 如果指定的模型不是&lt;code&gt;moe&lt;/code&gt;结构的模型，这个参数不会生效&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;若不设定这些参数，会使用默认配置来推理，默认配置如下：&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th style=&quot;text-align:right&quot;&gt;模型类型&lt;/th&gt; 
   &lt;th&gt;device&lt;/th&gt; 
   &lt;th style=&quot;text-align:right&quot;&gt;moe_device&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:right&quot;&gt;稠密模型&lt;/td&gt; 
   &lt;td&gt;cuda&lt;/td&gt; 
   &lt;td style=&quot;text-align:right&quot;&gt;不生效&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:right&quot;&gt;MOE模型&lt;/td&gt; 
   &lt;td&gt;cuda&lt;/td&gt; 
   &lt;td style=&quot;text-align:right&quot;&gt;cpu&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;如果只设置了device没设置moe_device，则moe_device会跟随device&lt;/p&gt; 
&lt;p&gt;对于发烧友而言，如果想更进一步榨干硬件，可以参考 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/mixforward.md&quot;&gt;混合推理指南&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;4. 如何设定运行参数&lt;/h3&gt; 
&lt;p&gt;可以通过下列参数设置运行参数。&lt;/p&gt; 
&lt;p&gt;需要注意的是，速度和参数设置并不一定正相关，如果对性能要求高，可以多方向尝试一下&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;-t&lt;/code&gt; 或 &lt;code&gt;--threads&lt;/code&gt;: 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 设置使用的CPU线程数。 
    &lt;ul&gt; 
     &lt;li&gt;当&lt;code&gt;device&lt;/code&gt;为&lt;code&gt;cpu&lt;/code&gt;时，这个参数决定了推理使用的线程数&lt;/li&gt; 
     &lt;li&gt;当&lt;code&gt;device&lt;/code&gt;为&lt;code&gt;numa&lt;/code&gt;时，推理线程数主要由环境变量&lt;code&gt;FASTLLM_NUMA_THREADS&lt;/code&gt;决定，&lt;code&gt;threads&lt;/code&gt;参数请设得小一点（推荐设为1）&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;-t 27&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;例如我们在多CPU设备上用GPU + 多CPU混合部署一个&lt;code&gt;MOE&lt;/code&gt;模型&lt;code&gt;fastllm/DeepSeek-V3-0324-INT4&lt;/code&gt;，可以尝试这些命令：&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export FASTLLM_NUMA_THREADS=27 &amp;amp;&amp;amp; ftllm server fastllm/DeepSeek-V3-0324-INT4 --device cuda --moe_device numa -t 1 
# 使用多numa推理，每个numa节点使用27个线程

export FASTLLM_NUMA_THREADS=16 &amp;amp;&amp;amp; ftllm server fastllm/DeepSeek-V3-0324-INT4 --device cuda --moe_device numa -t 1 
# 使用多numa推理，每个numa节点使用16个线程

numactl -C 0-31 -m 0 ftllm server fastllm/DeepSeek-V3-0324-INT4 --device cuda --moe_device cpu -t 27 
# 绑定单numa节点，使用CPU推理，使用27线程
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;不同硬件上，不同参数发挥出的性能有很大不同。一般而言，CPU上使用的线程数不建议超过物理核数&lt;/p&gt; 
&lt;h3&gt;5. 其它参数&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--moe_experts&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定 MOE（Mixture of Experts）层使用的专家数。不设定则根据模型配置设定。减少专家数可以提高推理速度，但可能降低推理准确度&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--moe_experts 6&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--cuda_se&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定 MOE中的共享专家 是否在cuda上执行，默认为true&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--cuda_se false&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--port&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定服务运行的端口号。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;--port 8080&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--help&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 查看模块参数详细信息。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm server --help&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--version&lt;/code&gt; 或 &lt;code&gt;-v&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 查看ftllm版本号。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm -v&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--hide_input&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: server模式隐藏日志中的请求信息。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm server --hide_input&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--api_key&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: server模式设定api_key。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm server --api_key xxxxxxxx&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--max_token&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: webui模式指定最大输出。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm webui --max_token&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--think&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 强制思考。&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm webui --think&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--cache_dir&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定在线Huggingface模型的缓存目录&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm --cache_dir /mnt&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;--chat_template&lt;/code&gt;:&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;strong&gt;描述&lt;/strong&gt;: 指定chat_template文件&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;示例&lt;/strong&gt;: &lt;code&gt;ftllm --chat_template deepseekv31.jinja&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;工具调用&lt;/h2&gt; 
&lt;p&gt;目前以下模型支持工具调用：&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;GLM4.5, GLM4.5-AIR&lt;/li&gt; 
 &lt;li&gt;Qwen3-Instruct系列&lt;/li&gt; 
 &lt;li&gt;Qwen3-Coder系列&lt;/li&gt; 
 &lt;li&gt;Kimi-K2&lt;/li&gt; 
 &lt;li&gt;DeepSeekV3.1, 需要指定chat_template, 文件位于本项目&lt;code&gt;example/chat_template/deepseekv31.jinja&lt;/code&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;模型获取&lt;/h2&gt; 
&lt;h3&gt;模型下载&lt;/h3&gt; 
&lt;p&gt;可以使用如下命令将模型下载到本地（使用高速镜像，无需科学上网）&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;ftllm download deepseek-ai/DeepSeek-R1
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;模型导出&lt;/h3&gt; 
&lt;p&gt;如果使用量化加载模型（如&lt;code&gt;--dtype int4&lt;/code&gt;），那么每次读取模型时会在线量化，读取速度较慢。&lt;/p&gt; 
&lt;p&gt;ftllm export 是一个用于导出和转换模型权重的工具。它支持将模型权重转换为不同的数据类型。以下是如何使用 ftllm export 的详细说明。&lt;/p&gt; 
&lt;h4&gt;命令格式&lt;/h4&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm export &amp;lt;模型路径&amp;gt; -o &amp;lt;输出路径&amp;gt; --dtype &amp;lt;数据类型&amp;gt; -t &amp;lt;线程数&amp;gt;
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;示例命令&lt;/h4&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm export /mnt/DeepSeek-V3 -o /mnt/DeepSeek-V3-INT4 --dtype int4 -t 16
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;混合精度&lt;/h4&gt; 
&lt;p&gt;可以通过指定&lt;code&gt;--moe_dtype&lt;/code&gt;来实现混合精度，例如&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm export /mnt/DeepSeek-V3 -o /mnt/DeepSeek-V3-FP16INT4 --dtype float16 --moe_dtype int4 -t 16
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;加载导出后的模型&lt;/h4&gt; 
&lt;p&gt;导出后的模型使用方法和原始模型类似，使用导出模型时&lt;code&gt;--dtype&lt;/code&gt;参数将被忽略&lt;/p&gt; 
&lt;p&gt;例如&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;ftllm run /mnt/DeepSeek-V3-INT4/
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;支持的模型&lt;/h3&gt; 
&lt;p&gt;如果需要运行更多早期的模型，请参考&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/models.md&quot;&gt;支持模型列表&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;源码安装&lt;/h3&gt; 
&lt;p&gt;若pip安装失败或有其它特殊需求，可以用源码编译安装 源码安装后如果需要卸载，方法和PIP安装一样&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pip uninstall ftllm
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;建议使用cmake编译，需要提前安装gcc，g++ (建议9.4以上), make, cmake (建议3.23以上)&lt;/p&gt; 
&lt;p&gt;需要安装numa库，在Ubuntu下的安装命令一般使用：&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;apt-get install libnuma-dev
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;如果编译出错，建议使用AI工具帮忙安装环境&lt;/p&gt; 
&lt;p&gt;GPU编译需要提前安装好CUDA编译环境，建议使用尽可能新的CUDA版本，并安装NCCL包&lt;/p&gt; 
&lt;p&gt;使用如下命令编译&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;bash install.sh -DUSE_CUDA=ON -D CMAKE_CUDA_COMPILER=$(which nvcc) # 编译GPU版本
# bash install.sh -DUSE_CUDA=ON -DCUDA_ARCH=89 -D CMAKE_CUDA_COMPILER=$(which nvcc) # 可以指定CUDA架构，如4090使用89架构
# bash install.sh # 仅编译CPU版本
&lt;/code&gt;&lt;/pre&gt; 
&lt;h5&gt;其他平台编译&lt;/h5&gt; 
&lt;p&gt;其他不同平台的编译可参考文档&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/tfacc.md&quot;&gt;TFACC平台&lt;/a&gt;&lt;br /&gt; &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/rocm.md&quot;&gt;ROCm平台&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;编译中遇到问题可参考 &lt;a href=&quot;https://raw.githubusercontent.com/ztxz16/fastllm/master/docs/faq.md&quot;&gt;FAQ文档&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;参考代码和文章&lt;/h2&gt; 
&lt;h3&gt;大量NN底层算子的实现思路&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/pytorch/pytorch&quot;&gt;pytorch&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;大量LLM具体的模型实现&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/huggingface/transformers&quot;&gt;transfomers&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;GGML中的一些量化方法、以及计算Kernel&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/ggml-org/llama.cpp&quot;&gt;llama.cpp&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/ikawrakow/ik_llama.cpp&quot;&gt;ik_llama.cpp&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;FlashInfer中的一些库，主要是Attention, MLA等部分&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/flashinfer-ai/flashinfer&quot;&gt;flashInfer&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;MOE算子线程不平衡时动态调度的思路&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://zhuanlan.zhihu.com/p/1900318746402329329&quot;&gt;KTransformers 0.3 思路介绍&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/kvcache-ai/ktransformers/raw/main/csrc/ktransformers_ext/cpu_backend/backend.cpp&quot;&gt;KT中关于线程调度的相关代码&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;基于numa改进的MOE动态调度算子&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/guqiong96/Lvllm/raw/main/csrc/lk/moe.cpp&quot;&gt;lvllm中的实现&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;Function call解析相关的代码&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/vllm-project/vllm/tree/main/vllm/entrypoints/openai/tool_parsers&quot;&gt;vllm中的实现&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;json的构造和解析&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/dropbox/json11&quot;&gt;json11&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;感谢大佬对开源社区的贡献！如发现未标明的引用代码可在issue中提出&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/52133e5aa1e4f31587ce76b25b6aedc28c85f3d15b2252c619a24a41569709dc/ztxz16/fastllm" medium="image" />
      
    </item>
    
    <item>
      <title>wled/WLED</title>
      <link>https://github.com/wled/WLED</link>
      <description>&lt;p&gt;Control WS2812B and many more types of digital RGB LEDs with an ESP32 over WiFi!&lt;/p&gt;&lt;hr&gt;&lt;p align=&quot;center&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/wled/WLED/main/images/wled_logo_akemi.png&quot; /&gt; &lt;a href=&quot;https://github.com/wled-dev/WLED/releases&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/release/wled-dev/WLED.svg?style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/wled-dev/WLED/main/LICENSE&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/license/wled-dev/wled?color=blue&amp;amp;style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://wled.discourse.group&quot;&gt;&lt;img src=&quot;https://img.shields.io/discourse/topics?colorB=blue&amp;amp;label=forum&amp;amp;server=https%3A%2F%2Fwled.discourse.group%2F&amp;amp;style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://discord.gg/QAh7wJHrRM&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/473448917040758787.svg?colorB=blue&amp;amp;label=discord&amp;amp;style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://kno.wled.ge&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/quick_start-wiki-blue.svg?style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/Aircoookie/WLED-App&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/app-wled-blue.svg?style=flat-square&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://gitpod.io/#https://github.com/wled-dev/WLED&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Gitpod-ready--to--code-blue?style=flat-square&amp;amp;logo=gitpod&quot; /&gt;&lt;/a&gt; &lt;/p&gt; 
&lt;h1&gt;Welcome to WLED! ✨&lt;/h1&gt; 
&lt;p&gt;A fast and feature-rich implementation of an ESP32 and ESP8266 webserver to control NeoPixel (WS2812B, WS2811, SK6812) LEDs or also SPI based chipsets like the WS2801 and APA102!&lt;/p&gt; 
&lt;p&gt;Originally created by &lt;a href=&quot;https://github.com/Aircoookie&quot;&gt;Aircoookie&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;⚙️ Features&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;WS2812FX library with more than 100 special effects&lt;/li&gt; 
 &lt;li&gt;FastLED noise effects and 50 palettes&lt;/li&gt; 
 &lt;li&gt;Modern UI with color, effect and segment controls&lt;/li&gt; 
 &lt;li&gt;Segments to set different effects and colors to user defined parts of the LED string&lt;/li&gt; 
 &lt;li&gt;Settings page - configuration via the network&lt;/li&gt; 
 &lt;li&gt;Access Point and station mode - automatic failsafe AP&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://kno.wled.ge/features/multi-strip/#esp32&quot;&gt;Up to 10 LED outputs&lt;/a&gt; per instance&lt;/li&gt; 
 &lt;li&gt;Support for RGBW strips&lt;/li&gt; 
 &lt;li&gt;Up to 250 user presets to save and load colors/effects easily, supports cycling through them.&lt;/li&gt; 
 &lt;li&gt;Presets can be used to automatically execute API calls&lt;/li&gt; 
 &lt;li&gt;Nightlight function (gradually dims down)&lt;/li&gt; 
 &lt;li&gt;Full OTA software updateability (HTTP + ArduinoOTA), password protectable&lt;/li&gt; 
 &lt;li&gt;Configurable analog clock (Cronixie, 7-segment and EleksTube IPS clock support via usermods)&lt;/li&gt; 
 &lt;li&gt;Configurable Auto Brightness limit for safe operation&lt;/li&gt; 
 &lt;li&gt;Filesystem-based config for easier backup of presets and settings&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;💡 Supported light control interfaces&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;WLED app for &lt;a href=&quot;https://play.google.com/store/apps/details?id=ca.cgagnier.wlednativeandroid&quot;&gt;Android&lt;/a&gt; and &lt;a href=&quot;https://apps.apple.com/gb/app/wled-native/id6446207239&quot;&gt;iOS&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;JSON and HTTP request APIs&lt;/li&gt; 
 &lt;li&gt;MQTT&lt;/li&gt; 
 &lt;li&gt;E1.31, Art-Net, DDP and &lt;a href=&quot;http://TPM2.net&quot;&gt;TPM2.net&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/diyhue/diyHue&quot;&gt;diyHue&lt;/a&gt; (Wled is supported by diyHue, including Hue Sync Entertainment under udp. Thanks to &lt;a href=&quot;https://github.com/gmallios&quot;&gt;Gregory Mallios&lt;/a&gt;)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/hyperion-project/hyperion.ng&quot;&gt;Hyperion&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;UDP realtime&lt;/li&gt; 
 &lt;li&gt;Alexa voice control (including dimming and color)&lt;/li&gt; 
 &lt;li&gt;Sync to Philips hue lights&lt;/li&gt; 
 &lt;li&gt;Adalight (PC ambilight via serial) and TPM2&lt;/li&gt; 
 &lt;li&gt;Sync color of multiple WLED devices (UDP notifier)&lt;/li&gt; 
 &lt;li&gt;Infrared remotes (24-key RGB, receiver required)&lt;/li&gt; 
 &lt;li&gt;Simple timers/schedules (time from NTP, timezones/DST supported)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;📲 Quick start guide and documentation&lt;/h2&gt; 
&lt;p&gt;See the &lt;a href=&quot;https://kno.wled.ge&quot;&gt;documentation on our official site&lt;/a&gt;!&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://kno.wled.ge/basics/tutorials/&quot;&gt;On this page&lt;/a&gt; you can find excellent tutorials and tools to help you get your new project up and running!&lt;/p&gt; 
&lt;h2&gt;🖼️ User interface&lt;/h2&gt; 
&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/wled/WLED/main/images/macbook-pro-space-gray-on-the-wooden-table.jpg&quot; width=&quot;50%&quot; /&gt;&lt;img src=&quot;https://raw.githubusercontent.com/wled/WLED/main/images/walking-with-iphone-x.jpg&quot; width=&quot;50%&quot; /&gt;&lt;/p&gt; 
&lt;h2&gt;💾 Compatible hardware&lt;/h2&gt; 
&lt;p&gt;See &lt;a href=&quot;https://kno.wled.ge/basics/compatible-hardware&quot;&gt;here&lt;/a&gt;!&lt;/p&gt; 
&lt;h2&gt;✌️ Other&lt;/h2&gt; 
&lt;p&gt;Licensed under the EUPL v1.2 license&lt;br /&gt; Credits &lt;a href=&quot;https://kno.wled.ge/about/contributors/&quot;&gt;here&lt;/a&gt;! CORS proxy by &lt;a href=&quot;https://corsfix.com/&quot;&gt;Corsfix&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Join the Discord server to discuss everything about WLED!&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://discord.gg/QAh7wJHrRM&quot;&gt;&lt;img src=&quot;https://discordapp.com/api/guilds/473448917040758787/widget.png?style=banner2&quot; width=&quot;25%&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Check out the WLED &lt;a href=&quot;https://wled.discourse.group&quot;&gt;Discourse forum&lt;/a&gt;!&lt;/p&gt; 
&lt;p&gt;You can also send me mails to &lt;a href=&quot;mailto:dev.aircoookie@gmail.com&quot;&gt;dev.aircoookie@gmail.com&lt;/a&gt;, but please, only do so if you want to talk to me privately.&lt;/p&gt; 
&lt;p&gt;If WLED really brightens up your day, you can &lt;a href=&quot;https://paypal.me/aircoookie&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/send%20me%20a%20small%20gift-paypal-blue.svg?style=flat-square&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;&lt;em&gt;Disclaimer:&lt;/em&gt;&lt;/p&gt; 
&lt;p&gt;If you are prone to photosensitive epilepsy, we recommended you do &lt;strong&gt;not&lt;/strong&gt; use this software.&lt;br /&gt; If you still want to try, don&#39;t use strobe, lighting or noise modes or high effect speed settings.&lt;/p&gt; 
&lt;p&gt;As per the EUPL license, I assume no liability for any damage to you or any other person or equipment.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/695a9f821b30c122c66db858aa94506e9a6944a4ce52c899b9033fd4602ce1dd/wled/WLED" medium="image" />
      
    </item>
    
    <item>
      <title>dalathegreat/Battery-Emulator</title>
      <link>https://github.com/dalathegreat/Battery-Emulator</link>
      <description>&lt;p&gt;This revolutionary software enables EV battery packs to be easily reused for stationary storage in combination with solar inverters&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;Battery-Emulator ⚡🔋&lt;/h1&gt; 
&lt;p&gt;&lt;img src=&quot;https://img.shields.io/github/v/release/dalathegreat/BYD-Battery-Emulator-For-Gen24?color=%23008000&quot; alt=&quot;GitHub release (with filter)&quot; /&gt; &lt;img src=&quot;https://img.shields.io/github/stars/dalathegreat/Battery-Emulator?style=flat&amp;amp;color=%23128512&quot; alt=&quot;GitHub Repo stars&quot; /&gt; &lt;img src=&quot;https://img.shields.io/github/forks/dalathegreat/Battery-Emulator?style=flat&amp;amp;color=%23128512&quot; alt=&quot;GitHub forks&quot; /&gt; &lt;img src=&quot;https://img.shields.io/github/actions/workflow/status/dalathegreat/BYD-Battery-Emulator-For-Gen24/compile-common-image-lilygo-TCAN.yml?color=0E810E&quot; alt=&quot;GitHub actions&quot; /&gt; &lt;img src=&quot;https://img.shields.io/badge/made-with_love-blue?color=%23008000&quot; alt=&quot;Static Badge&quot; /&gt;&lt;/p&gt; 
&lt;h2&gt;What is Battery Emulator?&lt;/h2&gt; 
&lt;p&gt;Many manufacturers sell home battery systems to enable homeowners to store power collected from the grid, or renewable sources, to use at times when electricity demand is higher. However almost all of these home battery systems charge a high cost for every kilowatt hour (kWh) of capacity you buy.&lt;/p&gt; 
&lt;p&gt;At the same time, EV manufacturers have been putting high capacity battery packs into their cars, with no firm plan for what should happen to those batteries if the car is damaged in a crash, or reaches the end of its life as a vehicle.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Battery Emulator&lt;/strong&gt; enables EV battery packs to be repurposed for stationary storage. It acts as a translation layer between the EV battery and the home inverter. This makes it extremely cheap and easy to use large EV batteries in a true plug&#39;n&#39;play fashion!&lt;/p&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-caution&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-stop mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Caution&lt;/p&gt;
 &lt;p&gt;Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.&lt;/p&gt; 
&lt;/div&gt; 
&lt;h2&gt;Quickstart guide 📜&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Pick a &lt;a href=&quot;https://github.com/dalathegreat/Battery-Emulator/wiki#supported-inverters-list&quot;&gt;supported inverter&lt;/a&gt; (solar panels optional) 🌞&lt;/li&gt; 
 &lt;li&gt;Pick a &lt;a href=&quot;https://github.com/dalathegreat/Battery-Emulator/wiki#supported-batteries-list&quot;&gt;supported battery&lt;/a&gt; 🔋&lt;/li&gt; 
 &lt;li&gt;Order the Battery-Emulator &lt;a href=&quot;https://github.com/dalathegreat/Battery-Emulator/wiki#where-do-i-get-the-hardware-needed&quot;&gt;compatible hardware&lt;/a&gt; 🤖&lt;/li&gt; 
 &lt;li&gt;Follow the &lt;a href=&quot;https://github.com/dalathegreat/Battery-Emulator/wiki/Installation-guidelines&quot;&gt;installation guidelines&lt;/a&gt; section for how to install and commission your battery properly 📓&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Installation basics 🪛&lt;/h2&gt; 
&lt;ol&gt; 
 &lt;li&gt;Connect your Battery Emulator hardware to your EV battery&lt;/li&gt; 
 &lt;li&gt;Connect your Battery Emulator hardware to your inverter&lt;/li&gt; 
 &lt;li&gt;Wire up high voltage cable between the inverter and the battery&lt;/li&gt; 
 &lt;li&gt;Add a low voltage power supply to your Battery Emulator hardware&lt;/li&gt; 
 &lt;li&gt;Configure any additional requirements to allow Battery Emulator to switch on your EV battery (also referred to as &#39;closing contactors&#39;)&lt;/li&gt; 
 &lt;li&gt;Enjoy a big cheap grid connected battery!&lt;/li&gt; 
&lt;/ol&gt; 
&lt;p&gt;For examples showing wiring, see each battery type&#39;s own Wiki page. For instance the &lt;a href=&quot;https://github.com/dalathegreat/Battery-Emulator/wiki/Battery:-Nissan-LEAF---e%E2%80%90NV200&quot;&gt;Nissan LEAF page&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;How to install the software 💻&lt;/h2&gt; 
&lt;p&gt;Start by watching this &lt;a href=&quot;https://www.youtube.com/watch?v=sR3t7j0R9Z0&quot;&gt;quickstart guide&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=sR3t7j0R9Z0&quot;&gt;&lt;img src=&quot;https://img.youtube.com/vi/sR3t7j0R9Z0/0.jpg&quot; alt=&quot;IMAGE ALT TEXT HERE&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt;Open the &lt;a href=&quot;https://dalathegreat.github.io/BE-Web-Installer/&quot;&gt;webinstaller page&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Follow the instructions on that page to install the software&lt;/li&gt; 
 &lt;li&gt;After successful installation, connect to the wireless network (Battery-Emulator , password: 123456789)&lt;/li&gt; 
 &lt;li&gt;Go to setup page and configure component selection&lt;/li&gt; 
 &lt;li&gt;(OPTIONAL, connect the board to your home Wifi)&lt;/li&gt; 
 &lt;li&gt;Connect your battery and inverter to the board and you are done! 🔋⚡&lt;/li&gt; 
&lt;/ol&gt; 
&lt;h2&gt;Dependencies 📖&lt;/h2&gt; 
&lt;p&gt;This code uses the following excellent libraries:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/adafruit/Adafruit_NeoPixel&quot;&gt;adafruit/Adafruit_NeoPixel&lt;/a&gt; LGPL-3.0 license&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ayushsharma82/ElegantOTA&quot;&gt;ayushsharma82/ElegantOTA&lt;/a&gt; AGPL-3.0 license&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/bblanchon/ArduinoJson&quot;&gt;bblanchon/ArduinoJson&lt;/a&gt; MIT-License&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eModbus/eModbus&quot;&gt;eModbus/eModbus&lt;/a&gt; MIT-License&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ESP32Async/AsyncTCP&quot;&gt;ESP32Async/AsyncTCP&lt;/a&gt; LGPL-3.0 license&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ESP32Async/ESPAsyncWebServer&quot;&gt;ESP32Async/ESPAsyncWebServer&lt;/a&gt; LGPL-3.0 license&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pierremolinaro/acan-esp32&quot;&gt;pierremolinaro/acan-esp32&lt;/a&gt; MIT-License&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pierremolinaro/acan2517FD&quot;&gt;pierremolinaro/acan2517FD&lt;/a&gt; MIT-License&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;It is also based on the information found in the following excellent repositories/websites:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://gitlab.com/pelle8/inverter_resources&quot;&gt;https://gitlab.com/pelle8/inverter_resources&lt;/a&gt; //new url&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/burra/byd_battery&quot;&gt;https://github.com/burra/byd_battery&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/flodorn/TeslaBMSV2&quot;&gt;https://github.com/flodorn/TeslaBMSV2&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/SunshadeCorp/can-service&quot;&gt;https://github.com/SunshadeCorp/can-service&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3&quot;&gt;https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dalathegreat/leaf_can_bus_messages&quot;&gt;https://github.com/dalathegreat/leaf_can_bus_messages&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rand12345/solax_can_bus&quot;&gt;https://github.com/rand12345/solax_can_bus&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Tom-evnut/BMWI3BMS/&quot;&gt;https://github.com/Tom-evnut/BMWI3BMS/&lt;/a&gt; SMA-CAN&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/FozzieUK/FoxESS-Canbus-Protocol&quot;&gt;https://github.com/FozzieUK/FoxESS-Canbus-Protocol&lt;/a&gt; FoxESS-CAN&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/maciek16c/hyundai-santa-fe-phev-battery&quot;&gt;https://github.com/maciek16c/hyundai-santa-fe-phev-battery&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ljames28/Renault-Zoe-PH2-ZE50-Canbus-LBC-Information&quot;&gt;https://github.com/ljames28/Renault-Zoe-PH2-ZE50-Canbus-LBC-Information&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Renault Zoe CAN Matrix &lt;a href=&quot;https://docs.google.com/spreadsheets/u/0/d/1Qnk-yzzcPiMArO-QDzO4a8ptAS2Sa4HhVu441zBzlpM/edit?pli=1#gid=0&quot;&gt;https://docs.google.com/spreadsheets/u/0/d/1Qnk-yzzcPiMArO-QDzO4a8ptAS2Sa4HhVu441zBzlpM/edit?pli=1#gid=0&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Pylon hacking &lt;a href=&quot;https://www.eevblog.com/forum/programming/pylontech-sc0500-protocol-hacking/&quot;&gt;https://www.eevblog.com/forum/programming/pylontech-sc0500-protocol-hacking/&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Like this project? 💖&lt;/h2&gt; 
&lt;p&gt;Leave a ⭐ If you think this project is useful. Consider hopping onto my Patreon to encourage more open-source projects! As a bonus, you will get access to the Discord server, where we hangout, develop, support, share, discuss etc. all things related to DIY EV storage solutions. See you on the server? 😉&lt;/p&gt; 
&lt;a href=&quot;https://www.patreon.com/dala&quot;&gt; &lt;img src=&quot;https://c5.patreon.com/external/logo/become_a_patron_button@2x.png&quot; width=&quot;160&quot; /&gt; &lt;/a&gt; &amp;lt;------ Click here to learn more! 
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/66b8e967-7f5e-409d-91ec-d012489a86d2&quot; alt=&quot;image&quot; /&gt;&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/4cbb6fce15f915b1b3cd8c70444648015329c93c7ef8e2a759044e7a1dcc198a/dalathegreat/Battery-Emulator" medium="image" />
      
    </item>
    
    <item>
      <title>Vita3K/Vita3K</title>
      <link>https://github.com/Vita3K/Vita3K</link>
      <description>&lt;p&gt;Experimental PlayStation Vita emulator&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;Vita3K&lt;/h1&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/Vita3K/Vita3K/actions/workflows/c-cpp.yml&quot;&gt;&lt;img src=&quot;https://github.com/Vita3K/Vita3K/actions/workflows/c-cpp.yml/badge.svg?sanitize=true&quot; alt=&quot;C/C++ CI&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/Vita3K/Vita3K/releases&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/v/release/Vita3K/Vita3K-builds?include_prereleases&quot; alt=&quot;Release&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://discord.gg/6aGwQzh&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/408916678911459329?color=5865F2&amp;amp;label=Vita3K%20&amp;amp;logo=discord&amp;amp;logoColor=white&quot; alt=&quot;Vita3K discord server&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Introduction&lt;/h2&gt; 
&lt;p&gt;Vita3K is an experimental PlayStation Vita emulator for Windows, Linux, macOS and Android.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://vita3k.org/&quot;&gt;Website&lt;/a&gt; (information for users)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Vita3K/Vita3K/wiki&quot;&gt;Wiki&lt;/a&gt; (information for developers)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://discord.gg/MaWhJVH&quot;&gt;Discord server&lt;/a&gt; (recommended)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Compatibility&lt;/h2&gt; 
&lt;p&gt;The emulator currently runs most homebrew programs and commercial games.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://vita3k.org/compatibility-homebrew.html&quot;&gt;Homebrew compatibility page&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://vita3k.org/compatibility.html&quot;&gt;Commercial compatibility page&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Gallery&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;Persona 4 Golden&lt;/strong&gt; by Atlus&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;A Rose in the Twilight&lt;/strong&gt; by Nippon Ichi Software&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/P4G.png&quot; alt=&quot;Persona 4 Golden screenshot&quot; /&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/A%20Rose%20in%20the%20Twilight.png&quot; alt=&quot;A Rose in the Twilight screenshot&quot; /&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;Alone with You&lt;/strong&gt; by Benjamin Rivers&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;VA-11 HALL-A&lt;/strong&gt; by Sukeban Games&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/Alone%20With%20You.png&quot; alt=&quot;Alone with You screenshot&quot; /&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/VA-11%20HALL-A.png&quot; alt=&quot;VA-11 HALL-A screenshot&quot; /&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;Fruit Ninja&lt;/strong&gt; by Halfbrick Studios&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;&lt;strong&gt;Jetpack Joyride&lt;/strong&gt; by Halfbrick Studios&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/Fruit%20Ninja.png&quot; alt=&quot;Fruit Ninja Screenshot&quot; /&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/_readme/screenshots/Jetpack%20Joyride.png&quot; alt=&quot;Jetpack Joyride Screenshot&quot; /&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;p&gt;Vita3K is licensed under the &lt;strong&gt;GPLv2&lt;/strong&gt; license. This is largely dictated by external dependencies, most notably Unicorn.&lt;/p&gt; 
&lt;h2&gt;Downloads&lt;/h2&gt; 
&lt;p&gt;You can download the latest builds from &lt;a href=&quot;https://github.com/Vita3K/Vita3K/releases/tag/continuous&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Windows 
  &lt;ul&gt; 
   &lt;li&gt;Requirements: 
    &lt;ul&gt; 
     &lt;li&gt;&lt;a href=&quot;https://aka.ms/vs/17/release/vc_redist.x64.exe&quot;&gt;Microsoft Visual C++ 2015-2022 Redistributable&lt;/a&gt;&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Linux 
  &lt;ul&gt; 
   &lt;li&gt;Arch based: 
    &lt;ul&gt; 
     &lt;li&gt;&lt;a href=&quot;https://aur.archlinux.org/packages/vita3k-bin&quot;&gt;vita3k-bin&lt;/a&gt;&lt;sup&gt;&lt;small&gt;AUR&lt;/small&gt;&lt;/sup&gt;&lt;/li&gt; 
     &lt;li&gt;&lt;a href=&quot;https://aur.archlinux.org/packages/vita3k-git&quot;&gt;vita3k-git&lt;/a&gt;&lt;sup&gt;&lt;small&gt;AUR&lt;/small&gt;&lt;/sup&gt;&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
   &lt;li&gt;Requirements: 
    &lt;ul&gt; 
     &lt;li&gt;xdg-desktop-portal&lt;/li&gt; 
    &lt;/ul&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Vita3K/Vita3K-Android/releases/&quot;&gt;Android&lt;/a&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://github.com/K11MCH1/AdrenoToolsDrivers/releases/&quot;&gt;Adreno drivers&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Others 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://github.com/Vita3K/Vita3K/actions?query=event%3Apush+is%3Asuccess+branch%3Amaster&quot;&gt;Download Artifact&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://github.com/Vita3K/Vita3K-builds/releases&quot;&gt;Old builds&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Building&lt;/h2&gt; 
&lt;p&gt;Please see &lt;a href=&quot;https://raw.githubusercontent.com/Vita3K/Vita3K/master/building.md&quot;&gt;&lt;code&gt;building.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Running&lt;/h2&gt; 
&lt;p&gt;Check our &lt;a href=&quot;https://vita3k.org/quickstart&quot;&gt;quickstart guide&lt;/a&gt; to make sure your computer meets the minimum requirements to run Vita3K.&lt;br /&gt; Don&#39;t forget to have your graphics driver up to date and to install the &lt;a href=&quot;https://aka.ms/vs/17/release/VC_redist.x64.exe&quot;&gt;Visual C++ 2015-2022 Redistributable&lt;/a&gt; if you are a Windows user.&lt;/p&gt; 
&lt;h2&gt;Bugs and issues&lt;/h2&gt; 
&lt;p&gt;The project is in an early stage, so please be mindful when opening new issues. Expect crashes, glitches, low compatibility and poor performance.&lt;/p&gt; 
&lt;h2&gt;Thanks&lt;/h2&gt; 
&lt;p&gt;Thanks go out to people who offered advice or otherwise made this project possible, such as Davee, korruptor, Rinnegatamante, ScHlAuChi, Simon Kilroy, TheFlow, xerpi, xyz, Yifan Lu and many others.&lt;/p&gt; 
&lt;h2&gt;Donations&lt;/h2&gt; 
&lt;p&gt;&lt;a href=&quot;https://ko-fi.com/vita3k&quot;&gt;&lt;img src=&quot;https://ko-fi.com/img/githubbutton_sm.svg?sanitize=true&quot; alt=&quot;ko-fi&quot; /&gt;&lt;/a&gt; &lt;br /&gt; Thank you to the supporters and to all those who support us on our &lt;a href=&quot;https://ko-fi.com/vita3K&quot;&gt;ko-fi&lt;/a&gt;.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Among them, those who subscribed to the Nibble Tier and upper: &lt;strong&gt;j0hnnybrav0, Mored4u, TacoOblivion, Undeadbob and uplush&lt;/strong&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Note&lt;/h2&gt; 
&lt;p&gt;The purpose of this emulator is not to enable illegal activity. You can dump games from a Vita by using &lt;a href=&quot;https://github.com/TheOfficialFloW/NoNpDrm&quot;&gt;NoNpDrm&lt;/a&gt; or &lt;a href=&quot;https://github.com/CelesteBlue-dev/PSVita-RE-tools/tree/master/FAGDec/build&quot;&gt;FAGDec&lt;/a&gt;. You can get homebrew programs from &lt;a href=&quot;https://www.rinnegatamante.eu/vitadb/#/&quot;&gt;VitaDB&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;PlayStation, PlayStation Vita and PlayStation Network are all registered trademarks of Sony Interactive Entertainment Inc. This emulator is not related to or endorsed by Sony, or derived from confidential materials belonging to Sony.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/a0b86a4ecaaff79a216d5ae0026da7fed3576de8c5504d1868d5e7aa04bd1e5c/Vita3K/Vita3K" medium="image" />
      
    </item>
    
    <item>
      <title>78/xiaozhi-esp32</title>
      <link>https://github.com/78/xiaozhi-esp32</link>
      <description>&lt;p&gt;An MCP-based chatbot | 一个基于MCP的聊天机器人&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;An MCP-based Chatbot&lt;/h1&gt; 
&lt;p&gt;(English | &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/README_zh.md&quot;&gt;中文&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/README_ja.md&quot;&gt;日本語&lt;/a&gt;)&lt;/p&gt; 
&lt;h2&gt;Introduction&lt;/h2&gt; 
&lt;p&gt;👉 &lt;a href=&quot;https://www.bilibili.com/video/BV1bpjgzKEhd/&quot;&gt;Human: Give AI a camera vs AI: Instantly finds out the owner hasn&#39;t washed hair for three days【bilibili】&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;👉 &lt;a href=&quot;https://www.bilibili.com/video/BV1XnmFYLEJN/&quot;&gt;Handcraft your AI girlfriend, beginner&#39;s guide【bilibili】&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;As a voice interaction entry, the XiaoZhi AI chatbot leverages the AI capabilities of large models like Qwen / DeepSeek, and achieves multi-terminal control via the MCP protocol.&lt;/p&gt; 
&lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/mcp-based-graph.jpg&quot; alt=&quot;Control everything via MCP&quot; width=&quot;320&quot; /&gt; 
&lt;h2&gt;Version Notes&lt;/h2&gt; 
&lt;p&gt;The current v2 version is incompatible with the v1 partition table, so it is not possible to upgrade from v1 to v2 via OTA. For partition table details, see &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/partitions/v2/README.md&quot;&gt;partitions/v2/README.md&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;All hardware running v1 can be upgraded to v2 by manually flashing the firmware.&lt;/p&gt; 
&lt;p&gt;The stable version of v1 is 1.9.2. You can switch to v1 by running &lt;code&gt;git checkout v1&lt;/code&gt;. The v1 branch will be maintained until February 2026.&lt;/p&gt; 
&lt;h3&gt;Features Implemented&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Wi-Fi / ML307 Cat.1 4G&lt;/li&gt; 
 &lt;li&gt;Offline voice wake-up &lt;a href=&quot;https://github.com/espressif/esp-sr&quot;&gt;ESP-SR&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Supports two communication protocols (&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/websocket.md&quot;&gt;Websocket&lt;/a&gt; or MQTT+UDP)&lt;/li&gt; 
 &lt;li&gt;Uses OPUS audio codec&lt;/li&gt; 
 &lt;li&gt;Voice interaction based on streaming ASR + LLM + TTS architecture&lt;/li&gt; 
 &lt;li&gt;Speaker recognition, identifies the current speaker &lt;a href=&quot;https://github.com/modelscope/3D-Speaker&quot;&gt;3D Speaker&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;OLED / LCD display, supports emoji display&lt;/li&gt; 
 &lt;li&gt;Battery display and power management&lt;/li&gt; 
 &lt;li&gt;Multi-language support (Chinese, English, Japanese)&lt;/li&gt; 
 &lt;li&gt;Supports ESP32-C3, ESP32-S3, ESP32-P4 chip platforms&lt;/li&gt; 
 &lt;li&gt;Device-side MCP for device control (Speaker, LED, Servo, GPIO, etc.)&lt;/li&gt; 
 &lt;li&gt;Cloud-side MCP to extend large model capabilities (smart home control, PC desktop operation, knowledge search, email, etc.)&lt;/li&gt; 
 &lt;li&gt;Customizable wake words, fonts, emojis, and chat backgrounds with online web-based editing (&lt;a href=&quot;https://github.com/78/xiaozhi-assets-generator&quot;&gt;Custom Assets Generator&lt;/a&gt;)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Hardware&lt;/h2&gt; 
&lt;h3&gt;Breadboard DIY Practice&lt;/h3&gt; 
&lt;p&gt;See the Feishu document tutorial:&lt;/p&gt; 
&lt;p&gt;👉 &lt;a href=&quot;https://ccnphfhqs21z.feishu.cn/wiki/F5krwD16viZoF0kKkvDcrZNYnhb?from=from_copylink&quot;&gt;&quot;XiaoZhi AI Chatbot Encyclopedia&quot;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Breadboard demo:&lt;/p&gt; 
&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/wiring2.jpg&quot; alt=&quot;Breadboard Demo&quot; /&gt;&lt;/p&gt; 
&lt;h3&gt;Supports 70+ Open Source Hardware (Partial List)&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://oshwhub.com/li-chuang-kai-fa-ban/li-chuang-shi-zhan-pai-esp32-s3-kai-fa-ban&quot; target=&quot;_blank&quot; title=&quot;LiChuang ESP32-S3 Development Board&quot;&gt;LiChuang ESP32-S3 Development Board&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/espressif/esp-box&quot; target=&quot;_blank&quot; title=&quot;Espressif ESP32-S3-BOX3&quot;&gt;Espressif ESP32-S3-BOX3&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.m5stack.com/zh_CN/core/CoreS3&quot; target=&quot;_blank&quot; title=&quot;M5Stack CoreS3&quot;&gt;M5Stack CoreS3&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.m5stack.com/en/atom/Atomic%20Echo%20Base&quot; target=&quot;_blank&quot; title=&quot;AtomS3R + Echo Base&quot;&gt;M5Stack AtomS3R + Echo Base&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://gf.bilibili.com/item/detail/1108782064&quot; target=&quot;_blank&quot; title=&quot;Magic Button 2.4&quot;&gt;Magic Button 2.4&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.waveshare.net/shop/ESP32-S3-Touch-AMOLED-1.8.htm&quot; target=&quot;_blank&quot; title=&quot;Waveshare ESP32-S3-Touch-AMOLED-1.8&quot;&gt;Waveshare ESP32-S3-Touch-AMOLED-1.8&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Xinyuan-LilyGO/T-Circle-S3&quot; target=&quot;_blank&quot; title=&quot;LILYGO T-Circle-S3&quot;&gt;LILYGO T-Circle-S3&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://oshwhub.com/tenclass01/xmini_c3&quot; target=&quot;_blank&quot; title=&quot;XiaGe Mini C3&quot;&gt;XiaGe Mini C3&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://oshwhub.com/movecall/cuican-ai-pendant-lights-up-y&quot; target=&quot;_blank&quot; title=&quot;Movecall CuiCan ESP32S3&quot;&gt;CuiCan AI Pendant&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/WMnologo/xingzhi-ai&quot; target=&quot;_blank&quot; title=&quot;WMnologo-Xingzhi-1.54&quot;&gt;WMnologo-Xingzhi-1.54TFT&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.seeedstudio.com/SenseCAP-Watcher-W1-A-p-5979.html&quot; target=&quot;_blank&quot; title=&quot;SenseCAP Watcher&quot;&gt;SenseCAP Watcher&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.bilibili.com/video/BV1BHJtz6E2S/&quot; target=&quot;_blank&quot; title=&quot;ESP-HI Low Cost Robot Dog&quot;&gt;ESP-HI Low Cost Robot Dog&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;div style=&quot;display: flex; justify-content: space-between;&quot;&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/lichuang-s3.jpg&quot; target=&quot;_blank&quot; title=&quot;LiChuang ESP32-S3 Development Board&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/lichuang-s3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/espbox3.jpg&quot; target=&quot;_blank&quot; title=&quot;Espressif ESP32-S3-BOX3&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/espbox3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/m5cores3.jpg&quot; target=&quot;_blank&quot; title=&quot;M5Stack CoreS3&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/m5cores3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/atoms3r.jpg&quot; target=&quot;_blank&quot; title=&quot;AtomS3R + Echo Base&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/atoms3r.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/magiclick.jpg&quot; target=&quot;_blank&quot; title=&quot;Magic Button 2.4&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/magiclick.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/waveshare.jpg&quot; target=&quot;_blank&quot; title=&quot;Waveshare ESP32-S3-Touch-AMOLED-1.8&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/waveshare.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/lilygo-t-circle-s3.jpg&quot; target=&quot;_blank&quot; title=&quot;LILYGO T-Circle-S3&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/lilygo-t-circle-s3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/xmini-c3.jpg&quot; target=&quot;_blank&quot; title=&quot;XiaGe Mini C3&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/xmini-c3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/movecall-cuican-esp32s3.jpg&quot; target=&quot;_blank&quot; title=&quot;CuiCan&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/movecall-cuican-esp32s3.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/wmnologo_xingzhi_1.54.jpg&quot; target=&quot;_blank&quot; title=&quot;WMnologo-Xingzhi-1.54&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/wmnologo_xingzhi_1.54.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/sensecap_watcher.jpg&quot; target=&quot;_blank&quot; title=&quot;SenseCAP Watcher&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/sensecap_watcher.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
 &lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/esp-hi.jpg&quot; target=&quot;_blank&quot; title=&quot;ESP-HI Low Cost Robot Dog&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/v1/esp-hi.jpg&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; 
&lt;/div&gt; 
&lt;h2&gt;Software&lt;/h2&gt; 
&lt;h3&gt;Firmware Flashing&lt;/h3&gt; 
&lt;p&gt;For beginners, it is recommended to use the firmware that can be flashed without setting up a development environment.&lt;/p&gt; 
&lt;p&gt;The firmware connects to the official &lt;a href=&quot;https://xiaozhi.me&quot;&gt;xiaozhi.me&lt;/a&gt; server by default. Personal users can register an account to use the Qwen real-time model for free.&lt;/p&gt; 
&lt;p&gt;👉 &lt;a href=&quot;https://ccnphfhqs21z.feishu.cn/wiki/Zpz4wXBtdimBrLk25WdcXzxcnNS&quot;&gt;Beginner&#39;s Firmware Flashing Guide&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;Development Environment&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Cursor or VSCode&lt;/li&gt; 
 &lt;li&gt;Install ESP-IDF plugin, select SDK version 5.4 or above&lt;/li&gt; 
 &lt;li&gt;Linux is better than Windows for faster compilation and fewer driver issues&lt;/li&gt; 
 &lt;li&gt;This project uses Google C++ code style, please ensure compliance when submitting code&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Developer Documentation&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/custom-board.md&quot;&gt;Custom Board Guide&lt;/a&gt; - Learn how to create custom boards for XiaoZhi AI&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/mcp-usage.md&quot;&gt;MCP Protocol IoT Control Usage&lt;/a&gt; - Learn how to control IoT devices via MCP protocol&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/mcp-protocol.md&quot;&gt;MCP Protocol Interaction Flow&lt;/a&gt; - Device-side MCP protocol implementation&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/mqtt-udp.md&quot;&gt;MQTT + UDP Hybrid Communication Protocol Document&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/78/xiaozhi-esp32/main/docs/websocket.md&quot;&gt;A detailed WebSocket communication protocol document&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Large Model Configuration&lt;/h2&gt; 
&lt;p&gt;If you already have a XiaoZhi AI chatbot device and have connected to the official server, you can log in to the &lt;a href=&quot;https://xiaozhi.me&quot;&gt;xiaozhi.me&lt;/a&gt; console for configuration.&lt;/p&gt; 
&lt;p&gt;👉 &lt;a href=&quot;https://www.bilibili.com/video/BV1jUCUY2EKM/&quot;&gt;Backend Operation Video Tutorial (Old Interface)&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Related Open Source Projects&lt;/h2&gt; 
&lt;p&gt;For server deployment on personal computers, refer to the following open-source projects:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/xinnan-tech/xiaozhi-esp32-server&quot;&gt;xinnan-tech/xiaozhi-esp32-server&lt;/a&gt; Python server&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/joey-zhou/xiaozhi-esp32-server-java&quot;&gt;joey-zhou/xiaozhi-esp32-server-java&lt;/a&gt; Java server&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/AnimeAIChat/xiaozhi-server-go&quot;&gt;AnimeAIChat/xiaozhi-server-go&lt;/a&gt; Golang server&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/hackers365/xiaozhi-esp32-server-golang&quot;&gt;hackers365/xiaozhi-esp32-server-golang&lt;/a&gt; Golang server&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Other client projects using the XiaoZhi communication protocol:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/huangjunsen0406/py-xiaozhi&quot;&gt;huangjunsen0406/py-xiaozhi&lt;/a&gt; Python client&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TOM88812/xiaozhi-android-client&quot;&gt;TOM88812/xiaozhi-android-client&lt;/a&gt; Android client&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://github.com/100askTeam/xiaozhi-linux&quot;&gt;100askTeam/xiaozhi-linux&lt;/a&gt; Linux client by 100ask&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/78/xiaozhi-sf32&quot;&gt;78/xiaozhi-sf32&lt;/a&gt; Bluetooth chip firmware by Sichuan&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/QuecPython/solution-xiaozhiAI&quot;&gt;QuecPython/solution-xiaozhiAI&lt;/a&gt; QuecPython firmware by Quectel&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Custom Assets Tools:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/78/xiaozhi-assets-generator&quot;&gt;78/xiaozhi-assets-generator&lt;/a&gt; Custom Assets Generator (Wake words, fonts, emojis, backgrounds)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;About the Project&lt;/h2&gt; 
&lt;p&gt;This is an open-source ESP32 project, released under the MIT license, allowing anyone to use it for free, including for commercial purposes.&lt;/p&gt; 
&lt;p&gt;We hope this project helps everyone understand AI hardware development and apply rapidly evolving large language models to real hardware devices.&lt;/p&gt; 
&lt;p&gt;If you have any ideas or suggestions, please feel free to raise Issues or join our &lt;a href=&quot;https://discord.gg/C759fGMBcZ&quot;&gt;Discord&lt;/a&gt; or QQ group: 994694848&lt;/p&gt; 
&lt;h2&gt;Star History&lt;/h2&gt; 
&lt;a href=&quot;https://star-history.com/#78/xiaozhi-esp32&amp;amp;Date&quot;&gt; 
 &lt;picture&gt; 
  &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;https://api.star-history.com/svg?repos=78/xiaozhi-esp32&amp;amp;type=Date&amp;amp;theme=dark&quot; /&gt; 
  &lt;source media=&quot;(prefers-color-scheme: light)&quot; srcset=&quot;https://api.star-history.com/svg?repos=78/xiaozhi-esp32&amp;amp;type=Date&quot; /&gt; 
  &lt;img alt=&quot;Star History Chart&quot; src=&quot;https://api.star-history.com/svg?repos=78/xiaozhi-esp32&amp;amp;type=Date&quot; /&gt; 
 &lt;/picture&gt; &lt;/a&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/56488b4fa202503df1cbf057b565a9915a1084a1e3e18c17677e398ebf31ef6c/78/xiaozhi-esp32" medium="image" />
      
    </item>
    
    <item>
      <title>MaaAssistantArknights/MaaAssistantArknights</title>
      <link>https://github.com/MaaAssistantArknights/MaaAssistantArknights</link>
      <description>&lt;p&gt;《明日方舟》小助手，全日常一键长草！| A one-click tool for the daily tasks of Arknights, supporting all clients.&lt;/p&gt;&lt;hr&gt;&lt;div align=&quot;center&quot;&gt; 
 &lt;img alt=&quot;LOGO&quot; src=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/docs/.vuepress/public/images/maa-logo_512x512.png&quot; width=&quot;256&quot; height=&quot;256&quot; /&gt; 
 &lt;h1&gt;MAA&lt;/h1&gt; 
 &lt;br /&gt; 
 &lt;div&gt; 
  &lt;img alt=&quot;C++&quot; src=&quot;https://img.shields.io/badge/C++-20-%2300599C?logo=cplusplus&quot; /&gt; 
  &lt;img alt=&quot;platform&quot; src=&quot;https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-blueviolet&quot; /&gt; 
 &lt;/div&gt; 
 &lt;div&gt; 
  &lt;img alt=&quot;license&quot; src=&quot;https://img.shields.io/github/license/MaaAssistantArknights/MaaAssistantArknights&quot; /&gt; 
  &lt;img alt=&quot;commit&quot; src=&quot;https://img.shields.io/github/commit-activity/m/MaaAssistantArknights/MaaAssistantArknights?color=%23ff69b4&quot; /&gt; 
 &lt;/div&gt; 
 &lt;div&gt; 
  &lt;img alt=&quot;stars&quot; src=&quot;https://img.shields.io/github/stars/MaaAssistantArknights/MaaAssistantArknights?style=social&quot; /&gt; 
  &lt;img alt=&quot;GitHub all releases&quot; src=&quot;https://img.shields.io/github/downloads/MaaAssistantArknights/MaaAssistantArknights/total?style=social&quot; /&gt; 
 &lt;/div&gt; 
 &lt;div&gt; 
  &lt;a href=&quot;https://deepwiki.com/MaaAssistantArknights/MaaAssistantArknights&quot;&gt;&lt;img src=&quot;https://deepwiki.com/badge.svg?sanitize=true&quot; alt=&quot;Ask DeepWiki&quot; /&gt;&lt;/a&gt; 
 &lt;/div&gt; 
 &lt;a href=&quot;https://trendshift.io/repositories/979&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;https://trendshift.io/api/badge/repositories/979&quot; alt=&quot;MaaAssistantArknights%2FMaaAssistantArknights | Trendshift&quot; width=&quot;250&quot; height=&quot;55&quot; style=&quot;width: 250px; height: 55px;&quot; /&gt;&lt;/a&gt; 
 &lt;div&gt; 
 &lt;/div&gt; 
 &lt;br /&gt; 
 &lt;!-- markdownlint-restore --&gt; 
 &lt;p&gt;&lt;a href=&quot;https://docs.maa.plus/zh-cn/&quot;&gt;简体中文&lt;/a&gt; | &lt;a href=&quot;https://docs.maa.plus/zh-tw/&quot;&gt;繁體中文&lt;/a&gt; | &lt;a href=&quot;https://docs.maa.plus/en-us/&quot;&gt;English&lt;/a&gt; | &lt;a href=&quot;https://docs.maa.plus/ja-jp/&quot;&gt;日本語&lt;/a&gt; | &lt;a href=&quot;https://docs.maa.plus/ko-kr/&quot;&gt;한국어&lt;/a&gt;&lt;/p&gt; 
 &lt;p&gt;MAA 的意思是 MAA Assistant Arknights&lt;/p&gt; 
 &lt;p&gt;一款明日方舟游戏小助手&lt;/p&gt; 
 &lt;p&gt;基于图像识别技术，一键完成全部日常任务！&lt;/p&gt; 
 &lt;p&gt;绝赞更新中 ✿✿ヽ(°▽°)ノ✿&lt;/p&gt; 
&lt;/div&gt; 
&lt;h2&gt;下载与安装&lt;/h2&gt; 
&lt;p&gt;请阅读 &lt;a href=&quot;https://docs.maa.plus/zh-cn/manual/newbie.html&quot;&gt;文档&lt;/a&gt; 后前往 &lt;a href=&quot;https://maa.plus&quot;&gt;官网&lt;/a&gt; 或 &lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAssistantArknights/releases&quot;&gt;Releases&lt;/a&gt; 下载，并参考 &lt;a href=&quot;https://docs.maa.plus/zh-cn/manual/newbie.html&quot;&gt;新手上路&lt;/a&gt; 进行安装。&lt;/p&gt; 
&lt;h2&gt;亮点功能&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;理智作战，掉落识别及上传 &lt;a href=&quot;https://penguin-stats.cn/&quot;&gt;企鹅物流&lt;/a&gt;，&lt;a href=&quot;https://ark.yituliu.cn/&quot;&gt;一图流&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;智能基建换班，自动计算干员效率，单设施内最优解；同时也支持 &lt;a href=&quot;https://docs.maa.plus/zh-cn/protocol/base-scheduling-schema.html&quot;&gt;自定义排班&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;自动公招，可选使用加急许可，一次全部刷完！公招数据自动上传 &lt;a href=&quot;https://penguin-stats.cn/result/stage/recruit/recruit&quot;&gt;企鹅物流&lt;/a&gt;，&lt;a href=&quot;https://ark.yituliu.cn/survey/maarecruitdata&quot;&gt;一图流&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;支持手动识别公招界面，方便对高星公招做出选择 &lt;s&gt;（你的这个高资回费出的是推王呢还是推王呢）&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;支持识别干员列表，统计已有和未有干员及潜能，并在公招识别显示&lt;/li&gt; 
 &lt;li&gt;支持识别养成材料，并导出至 &lt;a href=&quot;https://penguin-stats.cn/planner&quot;&gt;企鹅物流刷图规划&lt;/a&gt;、&lt;a href=&quot;https://arkntools.app/#/material&quot;&gt;明日方舟工具箱&lt;/a&gt;、&lt;a href=&quot;https://ark-nights.com/settings&quot;&gt;ARK-NIGHTS 干员培养表&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;访问好友、收取信用及购物、领取日常奖励等，一键全日常自动长草&lt;/li&gt; 
 &lt;li&gt;肉鸽全自动刷源石锭和等级，自动烧水和凹直升，智能识别干员及练度&lt;/li&gt; 
 &lt;li&gt;选择作业 JSON 文件，自动抄作业， &lt;a href=&quot;https://www.bilibili.com/video/BV1H841177Fk/&quot;&gt;视频演示&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;支持 C, Python, Java, Rust, Golang, Java HTTP, Rust HTTP 等多种接口，方便集成调用，自定义你的 MAA！&lt;/li&gt; 
&lt;/ul&gt; 
&lt;!-- markdownlint-disable --&gt; 
&lt;details&gt;
 &lt;summary&gt;话不多说，看图！&lt;/summary&gt; 
 &lt;picture&gt; 
  &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;./docs/.vuepress/public/images/zh-cn/readme/1-dark.png&quot; /&gt; 
  &lt;img alt=&quot;zh1&quot; src=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/docs/.vuepress/public/images/zh-cn/readme/1-light.png&quot; /&gt; 
 &lt;/picture&gt; 
 &lt;picture&gt; 
  &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;./docs/.vuepress/public/images/zh-cn/readme/2-dark.png&quot; /&gt; 
  &lt;img alt=&quot;zh2&quot; src=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/docs/.vuepress/public/images/zh-cn/readme/2-light.png&quot; /&gt; 
 &lt;/picture&gt; 
 &lt;picture&gt; 
  &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;./docs/.vuepress/public/images/zh-cn/readme/3-dark.png&quot; /&gt; 
  &lt;img alt=&quot;zh3&quot; src=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/docs/.vuepress/public/images/zh-cn/readme/3-light.png&quot; /&gt; 
 &lt;/picture&gt; 
 &lt;picture&gt; 
  &lt;source media=&quot;(prefers-color-scheme: dark)&quot; srcset=&quot;./docs/.vuepress/public/images/zh-cn/readme/4-dark.png&quot; /&gt; 
  &lt;img alt=&quot;zh4&quot; src=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/docs/.vuepress/public/images/zh-cn/readme/4-light.png&quot; /&gt; 
 &lt;/picture&gt; 
&lt;/details&gt; 
&lt;!-- markdownlint-restore --&gt; 
&lt;h2&gt;使用说明&lt;/h2&gt; 
&lt;h3&gt;功能介绍&lt;/h3&gt; 
&lt;p&gt;请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/manual/&quot;&gt;用户手册&lt;/a&gt;。&lt;/p&gt; 
&lt;h3&gt;外服支持&lt;/h3&gt; 
&lt;p&gt;目前国际服（美服）、日服、韩服、繁中服的绝大部分功能均已支持。但由于外服用户较少及项目人手不足，很多功能并没有进行全面的测试，所以请自行体验。&lt;br /&gt; 若您遇到了 Bug，或对某个功能有强需求，欢迎在 &lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues&quot;&gt;Issues&lt;/a&gt; 和 &lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAssistantArknights/discussions&quot;&gt;讨论区&lt;/a&gt; 催更；或加入我们一起建设 MAA！请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/develop/overseas-client-adaptation.html&quot;&gt;外服适配教程&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;CLI 支持&lt;/h3&gt; 
&lt;p&gt;MAA 支持命令行界面（CLI）操作，支持 Linux，macOS 和 Windows，可用于自动化脚本或在无图形界面的服务器上使用。请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/manual/cli/&quot;&gt;CLI 使用指南&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;加入我们&lt;/h2&gt; 
&lt;h3&gt;主要关联项目&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;全新框架：&lt;a href=&quot;https://github.com/MaaXYZ/MaaFramework&quot;&gt;MaaFramework&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://prts.plus&quot;&gt;作业站&lt;/a&gt; 前端：&lt;a href=&quot;https://github.com/ZOOT-Plus/zoot-plus-frontend&quot;&gt;zoot-plus-frontend&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://prts.plus&quot;&gt;作业站&lt;/a&gt; 后端：&lt;a href=&quot;https://github.com/ZOOT-Plus/ZootPlusBackend&quot;&gt;ZootPlusBackend&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://maa.plus&quot;&gt;官网&lt;/a&gt;：&lt;a href=&quot;https://github.com/MaaAssistantArknights/maa-website&quot;&gt;前端&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;深度学习：&lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAI&quot;&gt;MaaAI&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;多语言 (i18n)&lt;/h3&gt; 
&lt;p&gt;MAA 以中文（简体）为第一语言，翻译词条均以中文（简体）为准。&lt;/p&gt; 
&lt;h3&gt;参与开发&lt;/h3&gt; 
&lt;p&gt;请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/develop/development.html&quot;&gt;开发指南&lt;/a&gt;。&lt;/p&gt; 
&lt;h3&gt;API&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/include/AsstCaller.h&quot;&gt;C 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Cpp/main.cpp&quot;&gt;集成示例&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Python/asst/asst.py&quot;&gt;Python 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Python/sample.py&quot;&gt;集成示例&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Golang&quot;&gt;Golang 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Golang/maa/maa.go&quot;&gt;集成示例&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Dart&quot;&gt;Dart 接口&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Java/src/main/java/com/iguigui/maaj/easySample/MaaCore.java&quot;&gt;Java 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Java/src/main/java/com/iguigui/maaj/easySample/MaaJavaSample.java&quot;&gt;集成示例&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Java/Readme.md&quot;&gt;Java HTTP 接口&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Rust/src/maa_sys&quot;&gt;Rust 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Rust&quot;&gt;HTTP 接口&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaX/tree/main/packages/main/coreLoader&quot;&gt;TypeScript 接口&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Woolang/maa.wo&quot;&gt;Woolang 接口&lt;/a&gt;：&lt;a href=&quot;https://raw.githubusercontent.com/MaaAssistantArknights/MaaAssistantArknights/dev-v2/src/Woolang/demo.wo&quot;&gt;集成示例&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.maa.plus/zh-cn/protocol/integration.html&quot;&gt;集成文档&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.maa.plus/zh-cn/protocol/callback-schema.html&quot;&gt;回调消息协议&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.maa.plus/zh-cn/protocol/task-schema.html&quot;&gt;任务流程协议&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.maa.plus/zh-cn/protocol/copilot-schema.html&quot;&gt;自动抄作业协议&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;外服适配&lt;/h3&gt; 
&lt;p&gt;请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/develop/overseas-client-adaptation.html&quot;&gt;外服适配教程&lt;/a&gt;，对于国服已支持的功能，绝大部分的外服适配工作仅需要截图 + 简单的 JSON 修改即可。&lt;/p&gt; 
&lt;h3&gt;Issue bot&lt;/h3&gt; 
&lt;p&gt;请参阅 &lt;a href=&quot;https://docs.maa.plus/zh-cn/develop/issue-bot-usage.html&quot;&gt;Issue Bot 使用方法&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;致谢&lt;/h2&gt; 
&lt;h3&gt;开源库&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;图像识别库：&lt;a href=&quot;https://github.com/opencv/opencv.git&quot;&gt;opencv&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;s&gt;文字识别库：&lt;a href=&quot;https://github.com/DayBreak-u/chineseocr_lite.git&quot;&gt;chineseocr_lite&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;文字识别库：&lt;a href=&quot;https://github.com/PaddlePaddle/PaddleOCR&quot;&gt;PaddleOCR&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;深度学习部署库：&lt;a href=&quot;https://github.com/PaddlePaddle/FastDeploy&quot;&gt;FastDeploy&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;机器学习加速器：&lt;a href=&quot;https://github.com/microsoft/onnxruntime&quot;&gt;onnxruntime&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;s&gt;关卡掉落识别：&lt;a href=&quot;https://github.com/penguin-statistics/recognizer&quot;&gt;企鹅物流识别&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;地图格子识别：&lt;a href=&quot;https://github.com/yuanyan3060/Arknights-Tile-Pos&quot;&gt;Arknights-Tile-Pos&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;C++ JSON 库：&lt;a href=&quot;https://github.com/MistEO/meojson.git&quot;&gt;meojson&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;C++ 运算符解析器：&lt;a href=&quot;https://github.com/kimwalisch/calculator&quot;&gt;calculator&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;s&gt;C++ base64 编解码：&lt;a href=&quot;https://github.com/ReneNyffenegger/cpp-base64&quot;&gt;cpp-base64&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;C++ 解压压缩库：&lt;a href=&quot;https://github.com/madler/zlib&quot;&gt;zlib&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;C++ Gzip 封装：&lt;a href=&quot;https://github.com/mapbox/gzip-hpp&quot;&gt;gzip-hpp&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;安卓触控事件器：&lt;a href=&quot;https://github.com/DeviceFarmer/minitouch&quot;&gt;Minitouch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;安卓触控事件器：&lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaTouch&quot;&gt;MaaTouch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;WPF MVVM 框架：&lt;a href=&quot;https://github.com/canton7/Stylet&quot;&gt;Stylet&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;WPF 控件库：&lt;a href=&quot;https://github.com/HandyOrg/HandyControl&quot;&gt;HandyControl&lt;/a&gt; -&amp;gt; &lt;a href=&quot;https://github.com/ghost1372/HandyControls&quot;&gt;HandyControls&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;C# 日志：&lt;a href=&quot;https://github.com/serilog/serilog&quot;&gt;Serilog&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;C# JSON 库：&lt;a href=&quot;https://github.com/JamesNK/Newtonsoft.Json&quot;&gt;Newtonsoft.Json&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://github.com/dotnet/runtime&quot;&gt;System.Text.Json&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;s&gt;下载器：&lt;a href=&quot;https://github.com/aria2/aria2&quot;&gt;aria2&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;数据源&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;s&gt;公开招募数据：&lt;a href=&quot;https://www.bigfun.cn/tools/aktools/hr&quot;&gt;明日方舟工具箱&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;s&gt;干员及基建数据：&lt;a href=&quot;http://prts.wiki/&quot;&gt;PRTS Wiki&lt;/a&gt;&lt;/s&gt;&lt;/li&gt; 
 &lt;li&gt;关卡数据：&lt;a href=&quot;https://penguin-stats.cn/&quot;&gt;企鹅物流数据统计&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;游戏数据及资源：&lt;a href=&quot;https://github.com/yuanyan3060/ArknightsGameResource&quot;&gt;明日方舟客户端素材&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;游戏数据：&lt;a href=&quot;https://github.com/ArknightsAssets/ArknightsGamedata&quot;&gt;《明日方舟》Yostar游戏数据&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;贡献/参与者&lt;/h3&gt; 
&lt;p&gt;感谢所有参与到开发/测试中的朋友们，是大家的帮助让 MAA 越来越好！ (*´▽｀)ノノ&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAssistantArknights/graphs/contributors&quot;&gt;&lt;img src=&quot;https://contributors-img.web.app/image?repo=MaaAssistantArknights/MaaAssistantArknights&amp;amp;max=105&amp;amp;columns=15&quot; alt=&quot;Contributors&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;声明&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;本软件使用 &lt;a href=&quot;https://spdx.org/licenses/AGPL-3.0-only.html&quot;&gt;GNU Affero General Public License v3.0 only&lt;/a&gt; 开源，并附带额外 &lt;a href=&quot;https://github.com/MaaAssistantArknights/MaaAssistantArknights/raw/dev-v2/terms-of-service.md&quot;&gt;用户协议&lt;/a&gt;。&lt;/li&gt; 
 &lt;li&gt;本软件 logo 并非使用 AGPL 3.0 协议开源，&lt;a href=&quot;https://weibo.com/u/3251357314&quot;&gt;耗毛&lt;/a&gt;、vie 两位画师及软件全体开发者保留所有权利。不得以 AGPL 3.0 协议已授权为由在未经授权的情况下使用本软件 logo，不得在未经授权的情况下将本软件 logo 用于任何商业用途。&lt;/li&gt; 
 &lt;li&gt;本软件开源、免费，仅供学习交流使用。若您遇到商家使用本软件进行代练并收费，可能是设备与时间等费用，产生的问题及后果与本软件无关。&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;DirectML 支持说明&lt;/h3&gt; 
&lt;p&gt;本软件支持 GPU 加速功能，其在 Windows 平台上依赖于 Microsoft 提供的独立组件 &lt;a href=&quot;https://learn.microsoft.com/en-us/windows/ai/directml/&quot;&gt;DirectML&lt;/a&gt;。DirectML 并非本项目的开源部分，也不受 AGPL 3.0 的约束。为方便用户，我们随安装包附带了一个未经修改的 DirectML.dll 文件。如果您无需 GPU 加速功能，可安全删除该 DLL 文件，软件的核心功能仍可正常运行。&lt;/p&gt; 
&lt;h2&gt;广告&lt;/h2&gt; 
&lt;p&gt;用户交流 QQ 群：&lt;a href=&quot;https://api.maa.plus/MaaAssistantArknights/api/qqgroup/index.html&quot;&gt;MAA 使用 &amp;amp; 粥游交流 QQ 群&lt;/a&gt;&lt;br /&gt; Discord 服务器: &lt;a href=&quot;https://discord.gg/23DfZ9uA4V&quot;&gt;邀请链接&lt;/a&gt;&lt;br /&gt; 用户交流 TG 群：&lt;a href=&quot;https://t.me/+Mgc2Zngr-hs3ZjU1&quot;&gt;Telegram 群&lt;/a&gt;&lt;br /&gt; 自动战斗 JSON 作业分享：&lt;a href=&quot;https://prts.plus&quot;&gt;prts.plus&lt;/a&gt;&lt;br /&gt; Bilibili 直播间：&lt;a href=&quot;https://live.bilibili.com/2808861&quot;&gt;MrEO 直播间&lt;/a&gt; 直播敲代码 &amp;amp; &lt;a href=&quot;https://live.bilibili.com/27548877&quot;&gt;MAA-Official 直播间&lt;/a&gt; 游戏/杂谈&lt;/p&gt; 
&lt;p&gt;技术群（舟无关、禁水）：&lt;a href=&quot;https://jq.qq.com/?_wv=1027&amp;amp;k=ypbzXcA2&quot;&gt;内卷地狱！(QQ 群)&lt;/a&gt;&lt;br /&gt; 开发者群：&lt;a href=&quot;https://jq.qq.com/?_wv=1027&amp;amp;k=JM9oCk3C&quot;&gt;QQ 群&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;如果觉得软件对你有帮助，帮忙点个 Star 吧！~（网页最上方右上角的小星星），这就是对我们最大的支持了！&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/5f5ef3e1bb51f36d4ac300e5550c50013a97c0e92cc64bfcd6268a898a8013dc/MaaAssistantArknights/MaaAssistantArknights" medium="image" />
      
    </item>
    
    <item>
      <title>grpc/grpc</title>
      <link>https://github.com/grpc/grpc</link>
      <description>&lt;p&gt;C++ based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;gRPC – An RPC library and framework&lt;/h1&gt; 
&lt;p&gt;gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems.&lt;/p&gt; 
&lt;table&gt; 
 &lt;tbody&gt;
  &lt;tr&gt; 
   &lt;td&gt;&lt;b&gt;Homepage:&lt;/b&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://grpc.io/&quot;&gt;grpc.io&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;b&gt;Mailing List:&lt;/b&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/grpc-io&quot;&gt;grpc-io@googlegroups.com&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt;
&lt;/table&gt; 
&lt;p&gt;&lt;a href=&quot;https://gitter.im/grpc/grpc?utm_source=badge&amp;amp;utm_medium=badge&amp;amp;utm_campaign=pr-badge&amp;amp;utm_content=badge&quot;&gt;&lt;img src=&quot;https://badges.gitter.im/grpc/grpc.svg?sanitize=true&quot; alt=&quot;Join the chat at https://gitter.im/grpc/grpc&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;To start using gRPC&lt;/h2&gt; 
&lt;p&gt;To maximize usability, gRPC supports the standard method for adding dependencies to a user&#39;s chosen language (if there is one). In most languages, the gRPC runtime comes as a package available in a user&#39;s language package manager.&lt;/p&gt; 
&lt;p&gt;For instructions on how to use the language-specific gRPC runtime for a project, please refer to these documents&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/cpp&quot;&gt;C++&lt;/a&gt;: follow the instructions under the &lt;code&gt;src/cpp&lt;/code&gt; directory&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-dotnet&quot;&gt;C#/.NET&lt;/a&gt;: NuGet packages &lt;code&gt;Grpc.Net.Client&lt;/code&gt;, &lt;code&gt;Grpc.AspNetCore.Server&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-dart&quot;&gt;Dart&lt;/a&gt;: pub package &lt;code&gt;grpc&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-go&quot;&gt;Go&lt;/a&gt;: &lt;code&gt;go get google.golang.org/grpc&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-java&quot;&gt;Java&lt;/a&gt;: Use JARs from Maven Central Repository&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-kotlin&quot;&gt;Kotlin&lt;/a&gt;: Use JARs from Maven Central Repository&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-node&quot;&gt;Node&lt;/a&gt;: &lt;code&gt;npm install @grpc/grpc-js&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/objective-c&quot;&gt;Objective-C&lt;/a&gt;: Add &lt;code&gt;gRPC-ProtoRPC&lt;/code&gt; dependency to podspec&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/php&quot;&gt;PHP&lt;/a&gt;: &lt;code&gt;pecl install grpc&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/python/grpcio&quot;&gt;Python&lt;/a&gt;: &lt;code&gt;pip install grpcio&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/ruby&quot;&gt;Ruby&lt;/a&gt;: &lt;code&gt;gem install grpc&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grpc/grpc-web&quot;&gt;WebJS&lt;/a&gt;: follow the grpc-web instructions&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Per-language quickstart guides and tutorials can be found in the &lt;a href=&quot;https://grpc.io/docs/&quot;&gt;documentation section on the grpc.io website&lt;/a&gt;. Code examples are available in the &lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/examples&quot;&gt;examples&lt;/a&gt; directory.&lt;/p&gt; 
&lt;p&gt;Precompiled bleeding-edge package builds of gRPC &lt;code&gt;master&lt;/code&gt; branch&#39;s &lt;code&gt;HEAD&lt;/code&gt; are uploaded daily to &lt;a href=&quot;https://packages.grpc.io&quot;&gt;packages.grpc.io&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;To start developing gRPC&lt;/h2&gt; 
&lt;p&gt;Contributions are welcome!&lt;/p&gt; 
&lt;p&gt;Please read &lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/CONTRIBUTING.md&quot;&gt;How to contribute&lt;/a&gt; which will guide you through the entire workflow of how to build the source code, how to run the tests, and how to contribute changes to the gRPC codebase. The &quot;How to contribute&quot; document also contains info on how the contribution process works and contains best practices for creating contributions.&lt;/p&gt; 
&lt;h2&gt;Troubleshooting&lt;/h2&gt; 
&lt;p&gt;Sometimes things go wrong. Please check out the &lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/TROUBLESHOOTING.md&quot;&gt;Troubleshooting guide&lt;/a&gt; if you are experiencing issues with gRPC.&lt;/p&gt; 
&lt;h2&gt;Performance&lt;/h2&gt; 
&lt;p&gt;See the &lt;a href=&quot;https://grafana-dot-grpc-testing.appspot.com/&quot;&gt;Performance dashboard&lt;/a&gt; for performance numbers of master branch daily builds.&lt;/p&gt; 
&lt;h2&gt;Concepts&lt;/h2&gt; 
&lt;p&gt;See &lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/CONCEPTS.md&quot;&gt;gRPC Concepts&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;About This Repository&lt;/h2&gt; 
&lt;p&gt;This repository contains source code for gRPC libraries implemented in multiple languages written on top of a shared C++ core library &lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/core&quot;&gt;src/core&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;Libraries in different languages may be in various states of development. We are seeking contributions for all of these libraries:&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Language&lt;/th&gt; 
   &lt;th&gt;Source&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Shared C++ [core library]&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/core&quot;&gt;src/core&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;C++&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/cpp&quot;&gt;src/cpp&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ruby&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/ruby&quot;&gt;src/ruby&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Python&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/python&quot;&gt;src/python&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;PHP&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/php&quot;&gt;src/php&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;C# (core library based)&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/csharp&quot;&gt;src/csharp&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Objective-C&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://raw.githubusercontent.com/grpc/grpc/master/src/objective-c&quot;&gt;src/objective-c&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Language&lt;/th&gt; 
   &lt;th&gt;Source repo&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Java&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-java&quot;&gt;grpc-java&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Kotlin&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-kotlin&quot;&gt;grpc-kotlin&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Go&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-go&quot;&gt;grpc-go&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NodeJS&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-node&quot;&gt;grpc-node&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;WebJS&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-web&quot;&gt;grpc-web&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Dart&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-dart&quot;&gt;grpc-dart&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;.NET (pure C# impl.)&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-dotnet&quot;&gt;grpc-dotnet&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Swift&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/grpc/grpc-swift&quot;&gt;grpc-swift&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/0fbdd3ed6ea6a973f6f2123f4f29671f67b0c52a90e9c508931651096435c445/grpc/grpc" medium="image" />
      
    </item>
    
    <item>
      <title>tenstorrent/tt-metal</title>
      <link>https://github.com/tenstorrent/tt-metal</link>
      <description>&lt;p&gt;🤘 TT-NN operator library, and TT-Metalium low level kernel programming model.&lt;/p&gt;&lt;hr&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/actions/workflows/sanity-tests.yaml&quot;&gt;&lt;img src=&quot;https://github.com/tenstorrent/tt-metal/actions/workflows/sanity-tests.yaml/badge.svg?sanitize=true&quot; alt=&quot;tt-metal CI&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://deepwiki.com/tenstorrent/tt-metal&quot;&gt;&lt;img src=&quot;https://deepwiki.com/badge.svg?sanitize=true&quot; alt=&quot;Ask DeepWiki&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;div align=&quot;center&quot;&gt; 
 &lt;h1&gt; &lt;p&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/blackhole&quot;&gt;Hardware&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/INSTALLING.md&quot;&gt;Install&lt;/a&gt; | &lt;a href=&quot;https://discord.gg/tvhGzHQwaj&quot;&gt;Discord&lt;/a&gt; | &lt;a href=&quot;https://boards.greenhouse.io/tenstorrent/jobs/4155609007&quot;&gt;Join Us&lt;/a&gt; | &lt;a href=&quot;https://github.com/tenstorrent/tt-metal/issues?q=is%3Aissue%20state%3Aopen%20label%3Abounty&quot;&gt;Bounty $&lt;/a&gt;&lt;/p&gt; &lt;/h1&gt; 
 &lt;img src=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/docs/source/common/_static/tt_nn_w_logo.png&quot; alt=&quot;ttnn logo&quot; height=&quot;180&quot; /&gt; 
 &lt;p&gt;&lt;strong&gt;TT-NN&lt;/strong&gt; is a Python &amp;amp; C++ Neural Network OP library.&lt;/p&gt; 
 &lt;h3&gt; &lt;p&gt;&lt;a href=&quot;https://docs.tenstorrent.com/tt-metal/latest/ttnn/index.html&quot;&gt;API Reference&lt;/a&gt; | &lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/models/demos/&quot;&gt;Model Demos&lt;/a&gt;&lt;/p&gt; &lt;/h3&gt; 
&lt;/div&gt; 
&lt;h2&gt;Featured Models&lt;/h2&gt; 
&lt;p&gt;The Models team is focused on developing the following models, optimizing them for performance, accuracy, and compatibility. Follow each model link for more details.&lt;/p&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-important&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-report mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Important&lt;/p&gt;
 &lt;p&gt;For a &lt;strong&gt;full model list&lt;/strong&gt; see the &lt;strong&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/models/README.md&quot;&gt;Model Matrix&lt;/a&gt;&lt;/strong&gt;, or visit the &lt;strong&gt;&lt;a href=&quot;https://tenstorrent.com/developers&quot;&gt;Developer Hub&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt; 
&lt;/div&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-info mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Note&lt;/p&gt;
 &lt;p&gt;Performance Metrics:&lt;/p&gt; 
 &lt;ul&gt; 
  &lt;li&gt;Time to First Token (TTFT) measures the time (in milliseconds) it takes to generate the first output token after input is received.&lt;/li&gt; 
  &lt;li&gt;T/S/U (Tokens per Second per User): Represents the throughput of first-token generation after prefill. It is calculated as 1 / inter-token latency.&lt;/li&gt; 
  &lt;li&gt;T/S (Tokens per Second): Represents total token throughput, calculated as T/S = T/S/U x batch size.&lt;/li&gt; 
  &lt;li&gt;TP (Tensor Parallel) and DP (Data Parallel): Indicate the parallelization factors across multiple devices.&lt;/li&gt; 
  &lt;li&gt;Reported LLM Performance: Based on an input sequence length of 128 tokens for all models.&lt;/li&gt; 
  &lt;li&gt;Performance Data Source: Metrics were collected using the tt-metal model demos (linked above). Results may vary when using other runtimes such as the vLLM inference server.&lt;/li&gt; 
 &lt;/ul&gt; 
&lt;/div&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/models/demos/llama3_70b_galaxy&quot;&gt;Llama 3.3 70B (TP=32)&lt;/a&gt;&lt;/h3&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Batch&lt;/th&gt; 
   &lt;th&gt;Hardware&lt;/th&gt; 
   &lt;th&gt;TTFT (MS)&lt;/th&gt; 
   &lt;th&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;Target&lt;br /&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;T/S&lt;/th&gt; 
   &lt;th&gt;TT-Metalium Release&lt;/th&gt; 
   &lt;th&gt;vLLM Tenstorrent Repo Release&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;32&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/galaxy&quot;&gt;Galaxy (Wormhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;53&lt;/td&gt; 
   &lt;td&gt;72.5&lt;/td&gt; 
   &lt;td&gt;80&lt;/td&gt; 
   &lt;td&gt;2268.8&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.65.0-rc7&quot;&gt;v0.65.0-rc7&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/vllm/tree/59be953f2bbd21e227f9ef4b779f545f9c3bf599/tt_metal&quot;&gt;59be953&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h3&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/main/models/tt_transformers&quot;&gt;Qwen 2.5 7B (TP=2)&lt;/a&gt;&lt;/h3&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Batch&lt;/th&gt; 
   &lt;th&gt;Hardware&lt;/th&gt; 
   &lt;th&gt;TTFT (MS)&lt;/th&gt; 
   &lt;th&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;Target&lt;br /&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;T/S&lt;/th&gt; 
   &lt;th&gt;TT-Metalium Release&lt;/th&gt; 
   &lt;th&gt;vLLM Tenstorrent Repo Release&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;32&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/wormhole&quot;&gt;n300 (Wormhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;109&lt;/td&gt; 
   &lt;td&gt;22.1&lt;/td&gt; 
   &lt;td&gt;30&lt;/td&gt; 
   &lt;td&gt;707.2&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.62.0-rc35&quot;&gt;v0.62.0-rc35&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/vllm/tree/ced0161dc223e6d8aca5f44a6c43d13070c3fba6/tt_metal&quot;&gt;ced0161&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h3&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/main/models/tt_transformers&quot;&gt;Qwen 2.5 72B (TP=8)&lt;/a&gt;&lt;/h3&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Batch&lt;/th&gt; 
   &lt;th&gt;Hardware&lt;/th&gt; 
   &lt;th&gt;TTFT (MS)&lt;/th&gt; 
   &lt;th&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;Target&lt;br /&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;T/S&lt;/th&gt; 
   &lt;th&gt;TT-Metalium Release&lt;/th&gt; 
   &lt;th&gt;vLLM Tenstorrent Repo Release&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;32&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/tt-quietbox&quot;&gt;QuietBox (Wormhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;223&lt;/td&gt; 
   &lt;td&gt;15.4&lt;/td&gt; 
   &lt;td&gt;20&lt;/td&gt; 
   &lt;td&gt;492.8&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.62.0-rc25&quot;&gt;v0.62.0-rc25&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/vllm/tree/e7c329b1664f8591ae8b4269bed9690726e52a24/tt_metal&quot;&gt;e7c329b&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h3&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/main/models/demos/audio/whisper&quot;&gt;Whisper (distil-large-v3)&lt;/a&gt;&lt;/h3&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Batch&lt;/th&gt; 
   &lt;th&gt;Hardware&lt;/th&gt; 
   &lt;th&gt;TTFT (MS)&lt;/th&gt; 
   &lt;th&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;Target&lt;br /&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;T/S&lt;/th&gt; 
   &lt;th&gt;TT-Metalium Release&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/wormhole&quot;&gt;n150 (Wormhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;163&lt;/td&gt; 
   &lt;td&gt;105.0&lt;/td&gt; 
   &lt;td&gt;45&lt;/td&gt; 
   &lt;td&gt;105.0&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.65.0-dev20251208&quot;&gt;v0.65.0-dev20251208&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/blackhole&quot;&gt;p150 (Blackhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;63&lt;/td&gt; 
   &lt;td&gt;263.4&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
   &lt;td&gt;263.4&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.65.0-dev20251208&quot;&gt;v0.65.0-dev20251208&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h3&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/main/models/tt_transformers&quot;&gt;Mixtral 8x7B (TP=8)&lt;/a&gt;&lt;/h3&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Batch&lt;/th&gt; 
   &lt;th&gt;Hardware&lt;/th&gt; 
   &lt;th&gt;TTFT (MS)&lt;/th&gt; 
   &lt;th&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;Target&lt;br /&gt;T/S/U&lt;/th&gt; 
   &lt;th&gt;T/S&lt;/th&gt; 
   &lt;th&gt;TT-Metalium Release&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;32&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://tenstorrent.com/hardware/tt-quietbox&quot;&gt;QuietBox (Wormhole)&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;122&lt;/td&gt; 
   &lt;td&gt;24.9&lt;/td&gt; 
   &lt;td&gt;33&lt;/td&gt; 
   &lt;td&gt;796.8&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/v0.62.0-dev20251015&quot;&gt;v0.62.0-dev20251015&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;Blackhole software optimization is under active development. Please join us in shaping the future of open source AI! &lt;br /&gt; &lt;a href=&quot;https://discord.gg/tenstorrent&quot;&gt;[Discord]&lt;/a&gt; &lt;a href=&quot;https://tenstorrent.com/developers&quot;&gt;[Developer Hub]&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;For more information regarding vLLM installation and environment creation visit the &lt;a href=&quot;https://github.com/tenstorrent/vllm/raw/dev/plugins/vllm-tt-plugin/README.md&quot;&gt;Tenstorrent vLLM TT plugin README&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Model Updates&lt;/h2&gt; 
&lt;p&gt;For the latest model updates and features, please see &lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/models/docs/MODEL_UPDATES.md&quot;&gt;MODEL_UPDATES.md&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Model Bring-Up and Testing&lt;/h2&gt; 
&lt;p&gt;For information on initial model procedures, please see &lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/models/docs/model_bring_up.md&quot;&gt;Model Bring-Up and Testing&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;TT-NN Tech Reports&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/AdvancedPerformanceOptimizationsForModels/AdvancedPerformanceOptimizationsForModels.md&quot;&gt;Advanced Performance Optimizations for Models&lt;/a&gt; (updated March 4th, 2025)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/ViT-TTNN/vit.md&quot;&gt;ViT Implementation in TT-NN on GS&lt;/a&gt; (updated Sept 22nd, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/LLMs/llms.md&quot;&gt;LLMs Bring up in TT-NN&lt;/a&gt; (updated Oct 29th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/CNNs/cnn_optimizations.md&quot;&gt;CNN Bring up &amp;amp; Optimization in TT-NN&lt;/a&gt; (updated Jan 22nd, 2025)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Benchmarks&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/GEMM_FLOPS/GEMM_FLOPS.md&quot;&gt;Matrix Multiply FLOPS on Wormhole and Blackhole&lt;/a&gt; (updated June 17th, 2025)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;hr /&gt; 
&lt;div align=&quot;center&quot;&gt; 
 &lt;img src=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/docs/source/common/images/tt_refresh_metalium_w_icon.png&quot; alt=&quot;TT-Metalium logo&quot; height=&quot;180&quot; /&gt; 
 &lt;p&gt;&lt;strong&gt;TT-Metalium&lt;/strong&gt; is our low-level programming model, enabling kernel development for Tenstorrent hardware.&lt;/p&gt; 
 &lt;h3&gt; &lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/METALIUM_GUIDE.md&quot;&gt;Programming Guide&lt;/a&gt; | &lt;a href=&quot;https://docs.tenstorrent.com/tt-metal/latest/tt-metalium/tt_metal/apis/index.html&quot;&gt;API Reference&lt;/a&gt;&lt;/p&gt; &lt;/h3&gt; 
&lt;/div&gt; 
&lt;h2&gt;Getting started&lt;/h2&gt; 
&lt;p&gt;Get started with &lt;a href=&quot;https://docs.tenstorrent.com/tt-metal/latest/tt-metalium/tt_metal/examples/index.html&quot;&gt;simple kernels&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;TT-Metalium Tech Reports&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/matrix_engine/matrix_engine.md&quot;&gt;Matrix Engine&lt;/a&gt; (updated Sept 6th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/data_formats/data_formats.md&quot;&gt;Data Formats&lt;/a&gt; (updated Sept 7th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/data_formats/reconfig_data_format.md&quot;&gt;Reconfiguring Data Formats&lt;/a&gt; (updated Oct 17th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/Handling_Special_Value/special_values.md&quot;&gt;Handling special floating-point numbers&lt;/a&gt; (updated Oct 5th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/memory/allocator.md&quot;&gt;Allocator&lt;/a&gt; (Updated Dec 19th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/tensor_layouts/tensor_layouts.md&quot;&gt;Tensor Layouts&lt;/a&gt; (updated Sept 6th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/Saturating_DRAM_bandwidth/Saturating_DRAM_bandwidth.md&quot;&gt;Saturating DRAM Bandwidth&lt;/a&gt; (updated Sept 6th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/FlashAttention/FlashAttention.md&quot;&gt;Flash Attention on Wormhole&lt;/a&gt; (updated Sept 6th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/CNNs/ttcnn.md&quot;&gt;CNNs on TT Architectures&lt;/a&gt; (updated Sept 6th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/EthernetMultichip/BasicEthernetGuide.md&quot;&gt;Ethernet and Multichip Basics&lt;/a&gt; (Updated Sept 20th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/Blackhole/BlackholeBringUpProgrammingGuide.md&quot;&gt;Blackhole Bring-Up Programming Guide&lt;/a&gt; (Updated Dec 18th, 2024)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/SubDevices/SubDevices.md&quot;&gt;Sub-Devices&lt;/a&gt; (Updated Jan 7th, 2025)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Scaleout Tech Reports&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/Programming_Mesh_of_Devices/Programming_Mesh_of_Devices_with_TT-NN.md&quot;&gt;Programming Mesh of Devices (Scale-Up)&lt;/a&gt; (updated Jan 6th, 2026)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/Programming_Multiple_Meshes/Programming_Multiple_Meshes.md&quot;&gt;Programming Multiple Meshes (Scale-Out)&lt;/a&gt; (updated Jan 19th, 2026)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/TT-Fabric/TT-Fabric-Architecture.md&quot;&gt;TT-Fabric Architecture&lt;/a&gt; (updated Dec 1st, 2025)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/TT-Distributed/TT-Distributed-Architecture-1219.md&quot;&gt;TT-Distributed Architecture&lt;/a&gt; (updated Oct 20th, 2025)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;TT-Metalium Programming Examples&lt;/h2&gt; 
&lt;h3&gt;Hello World&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/hello_world_compute_kernel/hello_world_compute.md&quot;&gt;Hello World! Compute Kernel&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/hello_world_datamovement_kernel/hello_world_data_movement.md&quot;&gt;Hello World! Data Movement Kernel&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Add Integers&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/add_2_integers_in_riscv/add_2_integers_in_riscv.md&quot;&gt;Add 2 Integers in Baby RiscV&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/add_2_integers_in_compute/add_2_integers_in_compute.md&quot;&gt;Add 2 Integers in Compute Kernel&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Simple Tensor Manipulation&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/prog_examples/shard_data_rm/shard_data_rm.md&quot;&gt;Sharding&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/prog_examples/pad_multi_core/pad_multi_core.md&quot;&gt;Padding&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;DRAM Data Movement&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/loopback/dram_loopback.md&quot;&gt;Dram Loopback Data Movement&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Eltwise&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/eltwise_sfpu/eltwise_sfpu.md&quot;&gt;Eltwise Unary OP in Vector Engine (SFPU)&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/eltwise_binary/eltwise_binary.md&quot;&gt;Eltwise Binary OP in Matrix Engine (FPU)&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Matmul&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/matmul/matmul_single_core/matmul_single_core.md&quot;&gt;Matmul OP on a Single_core&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/tt_metal/programming_examples/matmul/matmul_multi_core/matmul_multi_core.md&quot;&gt;Matmul OP on Multi_core (Basic)&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/prog_examples/matmul_multi_core_optimized/data_reuse.md&quot;&gt;Matmul Multi_core Reuse (Optimized)&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/tech_reports/prog_examples/matmul_multi_core_optimized/data_mcast.md&quot;&gt;Matmul Multi_core Multi-Cast (Optimized)&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Tools and Instruments&lt;/h3&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/ttnn-visualizer&quot;&gt;TT-NN Visualizer&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;A comprehensive tool for visualizing and analyzing model execution, offering interactive graphs, memory plots, tensor details, buffer overviews, operation flow graphs, and multi-instance support with file or SSH-based report loading.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-exalens&quot;&gt;TT-Exalens&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;The TT-Exalens repository describes TT-Lensium, a low-level debugging tool for Tenstorrent hardware. It allows developers to access and communicate with Wormhole and Blackhole devices.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-smi&quot;&gt;TT-SMI&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;The TT-SMI repository describes the Tenstorrent System Management Interface. This command line utility can interact with Tenstorrent devices on host. TT-SMI provides an easy to use interface displaying device, telemetry, and firmware information.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/model-explorer&quot;&gt;Model Explorer&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;The Model Explorer is an intuitive and hierarchical visualization tool using model graphs. It organizes model operations into nested layers and provides features for model exploration and debugging.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/tracy&quot;&gt;Tracy Profiler&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;The Tracy Profiler is a real-time nanosecond resolution, remote telemetry, hybrid frame, and sampling tool. Tracy supports profiling CPU, GPU, memory allocation, locks, context switches, and more.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://docs.tenstorrent.com/tt-metal/latest/tt-metalium/tools/kernel_print.html&quot;&gt;Kernel Print Debug&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;DPRINT can print variables, addresses, and circular buffer data from kernels to the host terminal or log file. This feature is useful for debugging issues with kernels.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/docs/source/tt-metalium/tools/watcher.rst&quot;&gt;Watcher&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;Watcher monitors firmware and kernels for common programming errors, and overall device status. If an error or hang occurs, Watcher displays log data of that occurrence.&lt;/p&gt; 
&lt;h4&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/raw/main/docs/source/tt-metalium/tools/inspector.rst&quot;&gt;Inspector&lt;/a&gt;&lt;/h4&gt; 
&lt;p&gt;Inspector provides insights into host runtime. It logs necessary data for investigation and allows queries to host runtime data.&lt;/p&gt; 
&lt;h2&gt;Related Tenstorrent Projects&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-forge/tree/main&quot;&gt;TT-Forge&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-forge-fe&quot;&gt;TT-Forge-FE&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-torch&quot;&gt;TT-Torch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-xla&quot;&gt;TT-XLA&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-mlir&quot;&gt;TT-MLIR&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-tvm&quot;&gt;TT-TVM&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Latest Releases&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;Release&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;Release Date&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;FW Version&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;KMD Version&lt;/th&gt; 
   &lt;th style=&quot;text-align:center&quot;&gt;SMI Version&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;0.68.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;ETA Apr 30, 2026&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.67.4&quot;&gt;0.67.4&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Mar 30, 2026&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.67.0&quot;&gt;0.67.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Mar 25, 2026&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.66.0&quot;&gt;0.66.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Feb 18, 2026&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.65.1&quot;&gt;0.65.1&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Jan 12, 2026&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.65.0&quot;&gt;0.65.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Dec 15, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;19.2.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.5.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.38&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.64.5&quot;&gt;0.64.5&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Dec 1, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.12.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.4.1&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.32&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.64.4&quot;&gt;0.64.4&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Nov 24, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.12.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.4.1&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.32&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.64.3&quot;&gt;0.64.3&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Nov 14, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.12.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.4.1&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.32&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.64.0&quot;&gt;0.64.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Oct 29, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.12.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.4.1&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.32&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.63.0&quot;&gt;0.63.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Sep 22, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.8.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.3.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.28&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.62.2&quot;&gt;0.62.2&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Aug 20, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.6.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.0.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.20&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;0.61.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Skipped&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.60.1&quot;&gt;0.60.1&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Jul 22, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;18.6.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;2.0.0&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;3.0.20&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.59.0&quot;&gt;0.59.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Jun 18, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.58.0&quot;&gt;0.58.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;May 13, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.57.0&quot;&gt;0.57.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Apr 15, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;&lt;a href=&quot;https://github.com/tenstorrent/tt-metal/releases/tag/v0.56.0&quot;&gt;0.56.0&lt;/a&gt;&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;Mar 7, 2025&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
   &lt;td style=&quot;text-align:center&quot;&gt;-&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;Visit the &lt;a href=&quot;https://github.com/tenstorrent/tt-metal/tree/main/releases&quot;&gt;releases&lt;/a&gt; folder for details on releases, release notes, and estimated release dates.&lt;/p&gt; 
&lt;h2&gt;Tenstorrent Bounty Program Terms and Conditions&lt;/h2&gt; 
&lt;p&gt;This repo is a part of Tenstorrent’s bounty program. If you are interested in helping to improve tt-metal, please make sure to read the &lt;a href=&quot;https://docs.tenstorrent.com/bounty_terms.html&quot;&gt;Tenstorrent Bounty Program Terms and Conditions&lt;/a&gt; before heading to the issues tab. Look for the issues that are tagged with both “bounty” and difficulty level!&lt;/p&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;p&gt;TT-Metalium and TTNN are licensed under the Apache 2.0 License, as detailed in &lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/LICENSE&quot;&gt;LICENSE&lt;/a&gt; and &lt;a href=&quot;https://raw.githubusercontent.com/tenstorrent/tt-metal/main/LICENSE_understanding.txt&quot;&gt;LICENSE_understanding.txt&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;Some distributable forms of this project—such as manylinux-compliant wheels—may need to bundle additional libraries beyond the standard Linux system libraries. For example:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;libnuma&lt;/li&gt; 
 &lt;li&gt;libhwloc&lt;/li&gt; 
 &lt;li&gt;openmpi (when built with multihost support)&lt;/li&gt; 
 &lt;li&gt;libevent (when built with multihost support)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;These libraries are bound by their own license terms.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/da56b4082fbc1ea18f8350c9209fad1f6439f0e9bf6353dc1544c5c845b7d4c9/tenstorrent/tt-metal" medium="image" />
      
    </item>
    
    <item>
      <title>jarczakpawel/BMCU-C-PJARCZAK</title>
      <link>https://github.com/jarczakpawel/BMCU-C-PJARCZAK</link>
      <description>&lt;p&gt;BMCU 370C (Hall) firmware for Bambu Lab A1 / A1 mini / P1S with buffer calibration - all known issues fixed, 100% AMS-compatible behavior.&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;BMCU Firmware – Calibration and Compatibility Notes&lt;/h1&gt; 
&lt;p&gt;This BMCU firmware has been tested and verified with the latest Bambu Lab A1 firmware.&lt;/p&gt; 
&lt;p&gt;IMPORTANT: The printer must be configured as AMS, not AMS Lite. Using AMS Lite will cause incompatibility issues.&lt;/p&gt; 
&lt;h1 align=&quot;center&quot;&gt;Support&lt;/h1&gt; 
&lt;p align=&quot;center&quot;&gt; Bambu Lab continues tightening compatibility around BMCU, and there is a growing risk that BMCU may eventually become unusable in that ecosystem. &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; To prepare for that, I want to build BMCU support for open-source Klipper-based printers. &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; I am currently raising funds to buy a test printer for this work. &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; The $500 goal does not need to be reached in full. If I manage to save the remaining amount myself, I will cover the rest out of my own pocket. &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://ko-fi.com/jarczakpawel/goal?g=0&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/jarczakpawel/BMCU-C-PJARCZAK/main/banner-klipper.png&quot; alt=&quot;Want BMCU on Klipper? Click the links below to support development.&quot; width=&quot;460&quot; /&gt; &lt;/a&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://ko-fi.com/jarczakpawel/goal?g=0&quot;&gt;&lt;strong&gt;Support on Ko-fi&lt;/strong&gt;&lt;/a&gt; · &lt;a href=&quot;https://revolut.me/paweqxdkx&quot;&gt;&lt;strong&gt;Support via Revolut&lt;/strong&gt;&lt;/a&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; Direct Revolut support avoids Ko-fi fees, so more of your contribution goes directly to the project. &lt;/p&gt; 
&lt;h1&gt;❗ IMPORTANT - FIRST START (V10.3+) ❗&lt;/h1&gt; 
&lt;p&gt;At the first startup after flashing, &lt;strong&gt;all channels must be empty&lt;/strong&gt;.&lt;/p&gt; 
&lt;p&gt;From &lt;strong&gt;V10.3&lt;/strong&gt;, the firmware calibrates empty-channel detection during first boot.&lt;/p&gt; 
&lt;p&gt;If you flashed it with filament inserted:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;remove all filament&lt;/li&gt; 
 &lt;li&gt;hold any one buffer for about &lt;strong&gt;5 seconds&lt;/strong&gt; to re-calibrate&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h1&gt;❗ Warning for 2nd generation printers&lt;/h1&gt; 
&lt;p&gt;A lot of people make a mistake because the drawings are misleading, and it is not always clear from the diagrams whether they show the plug or the socket. As a result, Signal A and Signal B often get connected the wrong way around.&lt;/p&gt; 
&lt;p&gt;If your BMCU is not detected by a 2nd generation printer, try swapping Signal A and Signal B - but make sure you know exactly what you are doing.&lt;/p&gt; 
&lt;h1&gt;HMS WARNING STATUS&lt;/h1&gt; 
&lt;p&gt;This firmware version &lt;strong&gt;triggers an HMS warning immediately after printer startup&lt;/strong&gt;.&lt;/p&gt; 
&lt;p&gt;Important clarification:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;This HMS warning &lt;strong&gt;does NOT block BMCU operation&lt;/strong&gt;&lt;/li&gt; 
 &lt;li&gt;It does &lt;strong&gt;NOT require restarting the printer&lt;/strong&gt;&lt;/li&gt; 
 &lt;li&gt;It does &lt;strong&gt;NOT affect printing&lt;/strong&gt;&lt;/li&gt; 
 &lt;li&gt;The printer works normally despite the warning&lt;/li&gt; 
 &lt;li&gt;The issue is &lt;strong&gt;purely visual / informational&lt;/strong&gt; (HMS icon only)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;At the moment, the HMS warning is known and accepted behavior in this firmware version.&lt;/p&gt; 
&lt;p&gt;If the HMS warning in Bambu Studio annoys you: I made a Bambu Studio build that bypasses this specific AMS compatibility warning, so you do not see it anymore. Other HMS warnings will still be visible (if they happen), so HMS remains useful.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/jarczakpawel/BambuStudio-BMCU&quot;&gt;https://github.com/jarczakpawel/BambuStudio-BMCU&lt;/a&gt;&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Supported printers&lt;/h2&gt; 
&lt;p&gt;Correct operation has been confirmed on both 1st generation and 2nd generation printers.&lt;/p&gt; 
&lt;h3&gt;1st generation printers&lt;/h3&gt; 
&lt;p&gt;Support is confirmed for 1st generation printers.&lt;/p&gt; 
&lt;h3&gt;2nd generation printers&lt;/h3&gt; 
&lt;p&gt;Correct operation has been confirmed on:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Bambu Lab P2S&lt;/li&gt; 
 &lt;li&gt;Bambu Lab H2D&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;At this point, it looks like it should work on all printers from both generations.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Download&lt;/h2&gt; 
&lt;p&gt;Please download ready-to-use firmware from the &lt;strong&gt;&quot;Releases&quot;&lt;/strong&gt; section (right side of the GitHub page). All firmware variants are generated there together with &lt;strong&gt;.txt guides&lt;/strong&gt; that explain which build you should choose.&lt;/p&gt; 
&lt;p&gt;Start by selecting the correct printer mode folder first (standard(A1) or high_force_load(P1S)), then choose AUTOLOAD / RGB / slots as usual.&lt;/p&gt; 
&lt;h2&gt;Flashing&lt;/h2&gt; 
&lt;p&gt;To flash any version of the BMCU (USB or TTL) on:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Windows&lt;/li&gt; 
 &lt;li&gt;Linux&lt;/li&gt; 
 &lt;li&gt;macOS&lt;/li&gt; 
 &lt;li&gt;Android&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;use &lt;strong&gt;BMCU Flasher&lt;/strong&gt;:&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/jarczakpawel/BMCU-Flasher&quot;&gt;https://github.com/jarczakpawel/BMCU-Flasher&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Precompiled binaries are available in the &lt;strong&gt;Releases&lt;/strong&gt; section.&lt;/p&gt; 
&lt;p&gt;The flashing process is very simple and &lt;strong&gt;does not require wchisptool&lt;/strong&gt;.&lt;/p&gt; 
&lt;p&gt;You can flash firmware in two ways:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Online flashing&lt;/strong&gt; directly from the built-in wizard (recommended)&lt;br /&gt; → the flasher downloads the correct firmware automatically, so you &lt;strong&gt;do not need to download any .bin files manually&lt;/strong&gt;.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Local flashing&lt;/strong&gt; using a firmware file you downloaded yourself.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;The flasher also supports &lt;strong&gt;Android&lt;/strong&gt;, so you can even flash the BMCU directly from your &lt;strong&gt;phone&lt;/strong&gt; 🙂&lt;/p&gt; 
&lt;p&gt;IMPORTANT:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Do &lt;strong&gt;NOT&lt;/strong&gt; flash the BMCU while it is connected to the printer.&lt;/li&gt; 
 &lt;li&gt;Do &lt;strong&gt;NOT&lt;/strong&gt; connect or disconnect the BMCU while the printer is powered on (risk of damaging the BMCU and/or the printer mainboard).&lt;/li&gt; 
&lt;/ul&gt; 
&lt;hr /&gt; 
&lt;h2&gt;SOLO firmware&lt;/h2&gt; 
&lt;p&gt;Example file:&lt;/p&gt; 
&lt;p&gt;solo_0.095f.bin&lt;/p&gt; 
&lt;p&gt;This firmware is intended for single BMCU (SOLO) operation.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Recommended for single-BMCU setups&lt;/li&gt; 
 &lt;li&gt;Filament retraction length: 9.5 cm&lt;/li&gt; 
&lt;/ul&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Filament retraction explanation&lt;/h2&gt; 
&lt;p&gt;Filament retraction must be calculated from the end of the AMS splitter inside the printer (the plastic AMS part where four PTFE tubes enter).&lt;/p&gt; 
&lt;p&gt;Example:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Distance from BMCU to the end of the AMS splitter: approximately 9.0 cm&lt;/li&gt; 
 &lt;li&gt;SOLO firmware retracts the filament about 0.5 cm past the splitter&lt;/li&gt; 
 &lt;li&gt;Total retraction length: 9.5 cm&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;When calculating your own retraction length:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Always measure from the end of the AMS splitter&lt;/li&gt; 
 &lt;li&gt;Add the required distance plus approximately 9 cm, depending on your setup&lt;/li&gt; 
&lt;/ul&gt; 
&lt;hr /&gt; 
&lt;h2&gt;AMS_A / AMS_B / AMS_C / AMS_D firmware&lt;/h2&gt; 
&lt;p&gt;These firmware versions are intended for:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Multi-BMCU setups&lt;/li&gt; 
 &lt;li&gt;Longer filament retraction distances&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;If you want to use SOLO mode with a longer retraction, use AMS_A instead of SOLO.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Calibration (first start)&lt;/h2&gt; 
&lt;p&gt;Correct calibration is mandatory. Without proper calibration, BMCU will not work correctly.&lt;/p&gt; 
&lt;p&gt;The calibration process is shown in the following video:&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=Hn_DNzSmhuc&quot;&gt;https://www.youtube.com/watch?v=Hn_DNzSmhuc&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Follow the calibration steps shown in the video carefully.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Re-calibration&lt;/h2&gt; 
&lt;p&gt;You can recalibrate the BMCU at any time.&lt;/p&gt; 
&lt;p&gt;Steps:&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt;Remove all filaments from all channels&lt;/li&gt; 
 &lt;li&gt;Hold any one buffer in position for approximately 5 seconds&lt;/li&gt; 
&lt;/ol&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Safety and usage notes&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Do not flash BMCU while it is connected to the printer&lt;/li&gt; 
 &lt;li&gt;Do not disconnect BMCU while the printer is powered on&lt;/li&gt; 
 &lt;li&gt;Do not update printer firmware while BMCU is connected&lt;/li&gt; 
 &lt;li&gt;Connect/disconnect the BMCU ONLY when the printer is completely powered off (unplugged). Doing this while powered can damage the BMCU and/or the printer mainboard.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;These recommendations are based on community reports. Not all failure scenarios have been tested.&lt;/p&gt; 
&lt;p&gt;Changing the printer mode from AMS Lite to AMS while BMCU was connected did not cause issues in testing, but this is not recommended.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Disclaimer&lt;/h2&gt; 
&lt;p&gt;You are using this firmware and performing any modifications at your own risk. Make sure you understand what you are doing. I am not responsible for any damage, failed prints, hardware issues, or data loss.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;Before opening a bug report&lt;/h2&gt; 
&lt;p&gt;Please verify the basics first:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Make sure you flashed the correct firmware variant and followed the flashing tutorial correctly.&lt;/li&gt; 
 &lt;li&gt;Make sure you really have &lt;strong&gt;BMCU 370C with Hall sensors&lt;/strong&gt;. 
  &lt;ul&gt; 
   &lt;li&gt;The only reliable verification is to open the module and inspect the PCB.&lt;/li&gt; 
   &lt;li&gt;Some sellers mix modules and try to get rid of older &lt;strong&gt;370x&lt;/strong&gt; boards - sometimes 1-2 modules in the set can be 370x.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;If you have printer-side issues: 
  &lt;ul&gt; 
   &lt;li&gt;confirm you are on the latest printer firmware&lt;/li&gt; 
   &lt;li&gt;do a factory reset (this often fixes weird AMS-related behavior)&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;If filament detection behaves strangely: 
  &lt;ul&gt; 
   &lt;li&gt;boot the printer once without BMCU connected&lt;/li&gt; 
   &lt;li&gt;then connect BMCU and test again&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Do a few real tests before creating a thread. Printers can have unrelated issues (rare, but happens) - some users cannot even update printer firmware automatically and must do it via SD card.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Bug reports&lt;/h2&gt; 
&lt;p&gt;If you encounter a real bug, you may report it. This firmware has undergone solid testing, and no issues are expected.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h1&gt;Changelog&lt;/h1&gt; 
&lt;h2&gt;V10.5&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Added &lt;strong&gt;automatic filament unload when the buffer is lifted manually&lt;/strong&gt;.&lt;/li&gt; 
 &lt;li&gt;The serial is generated from the MCU hardware UID, so devices no longer share the same SN.&lt;/li&gt; 
 &lt;li&gt;Calibration now performs a &lt;strong&gt;full NVM cleanup&lt;/strong&gt;.&lt;/li&gt; 
 &lt;li&gt;Fixed the rare issue where the &lt;strong&gt;system LED could blink incorrectly&lt;/strong&gt; on some BMCU units.&lt;/li&gt; 
 &lt;li&gt;Fixed the &lt;strong&gt;external fan issue on Bambu Lab P2S&lt;/strong&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V10.4&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Added support for &lt;strong&gt;Bambu Lab P2S&lt;/strong&gt;. 
  &lt;ul&gt; 
   &lt;li&gt;Verified to work correctly in real tests.&lt;/li&gt; 
   &lt;li&gt;The &lt;strong&gt;H2 series&lt;/strong&gt; will most likely also work as well, because &lt;strong&gt;1st generation AMS support&lt;/strong&gt; is confirmed there.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Fixes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;&quot;filament in use&quot;&lt;/strong&gt; flag is now cleared correctly when filament runs out during printing.&lt;/li&gt; 
 &lt;li&gt;Added support for &lt;strong&gt;retraction when the buffer is pulled up manually&lt;/strong&gt;, even when there is &lt;strong&gt;no filament inside&lt;/strong&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V10.3&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Added new firmware mode: &lt;strong&gt;soft_load(A1)&lt;/strong&gt;. 
  &lt;ul&gt; 
   &lt;li&gt;Intended mainly for &lt;strong&gt;A1 / A1 Mini&lt;/strong&gt; users.&lt;/li&gt; 
   &lt;li&gt;Uses lower filament loading force than &lt;strong&gt;standard(A1)&lt;/strong&gt;.&lt;/li&gt; 
   &lt;li&gt;Useful for some BMCU units with weaker lever springs, where stronger loading can cause clicking / grinding during filament load.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved empty-channel detection calibration. 
  &lt;ul&gt; 
   &lt;li&gt;The firmware now calibrates and stores the &quot;no filament&quot; detection point separately for each channel.&lt;/li&gt; 
   &lt;li&gt;This improves reliability on hardware variants where idle detection voltage differs between channels/modules.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved calibration behavior: 
  &lt;ul&gt; 
   &lt;li&gt;calibration now also detects and saves &lt;strong&gt;Hall polarity per channel&lt;/strong&gt;&lt;/li&gt; 
   &lt;li&gt;magnet polarity is automatically detected during calibration and stored, so it no longer matters which way the magnet is inserted in the buffer&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Stability and behavior improvements&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Fixed PWM timer preload configuration on all motor channels. 
  &lt;ul&gt; 
   &lt;li&gt;PWM updates are now buffered correctly before timer update events.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved AS5600 update timing. 
  &lt;ul&gt; 
   &lt;li&gt;Sensor polling is now rate-limited to about &lt;strong&gt;1 ms&lt;/strong&gt;&lt;/li&gt; 
   &lt;li&gt;more stable speed calculation&lt;/li&gt; 
   &lt;li&gt;lower unnecessary CPU load&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved internal timing paths by reusing shared tick snapshots in the main motion loop. 
  &lt;ul&gt; 
   &lt;li&gt;less timing jitter&lt;/li&gt; 
   &lt;li&gt;more consistent runtime behavior&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved high-load / jam timing logic during on_use. 
  &lt;ul&gt; 
   &lt;li&gt;high PWM accumulation now uses &lt;strong&gt;microsecond precision&lt;/strong&gt; instead of millisecond buckets&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved motion loop time-step handling. 
  &lt;ul&gt; 
   &lt;li&gt;uses wrap-safe tick delta&lt;/li&gt; 
   &lt;li&gt;clamps oversized time steps&lt;/li&gt; 
   &lt;li&gt;avoids running motor control with invalid zero-step timing&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Notes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;soft_load(A1)&lt;/code&gt; is not meant as the default for everyone.&lt;/li&gt; 
 &lt;li&gt;If filament gets rejected because push force is too weak, switch back to &lt;code&gt;standard(A1)&lt;/code&gt; and use a stronger lever spring.&lt;/li&gt; 
 &lt;li&gt;On some A1 / A1 Mini units, &lt;code&gt;soft_load(A1)&lt;/code&gt; works very well and can be used permanently.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V10.2&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Fixed a problem where &lt;strong&gt;filament run-out could incorrectly trigger a jam condition&lt;/strong&gt;.&lt;br /&gt; When filament ended, the motor could run continuously and eventually enter jam protection, which blocked the &lt;strong&gt;automatic filament refill&lt;/strong&gt;.&lt;/li&gt; 
 &lt;li&gt;Reworked jam protection logic: 
  &lt;ul&gt; 
   &lt;li&gt;real filament jams are now detected separately from temporary motor stops&lt;/li&gt; 
   &lt;li&gt;high motor load alone no longer falsely triggers a jam&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Improved flash persistence system (less unnecessary flash rewriting).&lt;/li&gt; 
 &lt;li&gt;Improved ADC/DMA processing: 
  &lt;ul&gt; 
   &lt;li&gt;faster value updates&lt;/li&gt; 
   &lt;li&gt;lower CPU overhead&lt;/li&gt; 
   &lt;li&gt;smoother runtime behavior&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Various timing and stability improvements.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Technical changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Filament metadata flash storage redesigned.&lt;/strong&gt; 
  &lt;ul&gt; 
   &lt;li&gt;append-only journal instead of rewriting a full flash page&lt;/li&gt; 
   &lt;li&gt;each record: &lt;strong&gt;40 bytes (10 words)&lt;/strong&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;CRC32 validation&lt;/strong&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;6 records per flash page&lt;/strong&gt;&lt;/li&gt; 
   &lt;li&gt;page erase only when the page becomes full&lt;br /&gt; This significantly reduces flash wear and makes writes power-loss safe.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;Loaded-channel persistence reworked into a lightweight &lt;strong&gt;slot log&lt;/strong&gt; to reduce erase cycles.&lt;/li&gt; 
 &lt;li&gt;Added &lt;strong&gt;skip-if-unchanged&lt;/strong&gt; logic to avoid unnecessary flash writes.&lt;/li&gt; 
 &lt;li&gt;Simplified and optimized &lt;strong&gt;ADC DMA update/publish path&lt;/strong&gt;.&lt;/li&gt; 
 &lt;li&gt;CRC tables moved to &lt;strong&gt;static compile-time tables&lt;/strong&gt; (no runtime generation).&lt;/li&gt; 
 &lt;li&gt;Cleanup of timing paths using &lt;strong&gt;wrap-safe 32-bit timers&lt;/strong&gt;.&lt;/li&gt; 
 &lt;li&gt;Several other smaller fixes and internal optimizations.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V10&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Improved spool jam handling: jam is detected immediately, the print is paused, the printer waits for you to fix the snag/tangle, then you can resume normally without ruining the print.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Flash / persistence (wear + reliability)&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;State (loaded channel) persistence reworked into an append-only slot log: 8 bytes per update, up to 192 updates before any page erase (~192x fewer erase cycles vs rewriting a whole 256B page per update).&lt;/li&gt; 
 &lt;li&gt;Filament metadata persistence reworked into a small CRC-protected log: 64B per update, 2 pages per filament (8 records) -&amp;gt; ~8x fewer erase cycles vs erasing a whole 256B page on every change.&lt;/li&gt; 
 &lt;li&gt;Per-filament saves: only the modified channel is written (reduces unnecessary flash writes).&lt;/li&gt; 
 &lt;li&gt;Power-loss safe commits: records are validated and partially-written data is ignored.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V9&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Increased filament loading force for improved reliability during filament insertion.&lt;/li&gt; 
 &lt;li&gt;Improved filament loading behavior on some materials (e.g. &lt;strong&gt;Sunlu PLA+&lt;/strong&gt; and similar filaments) where loading characteristics differ from standard PLA/PETG.&lt;/li&gt; 
 &lt;li&gt;Added protection against &lt;strong&gt;spool jams&lt;/strong&gt;: 
  &lt;ul&gt; 
   &lt;li&gt;Lock mode activates if the buffer drops too low during printing.&lt;/li&gt; 
   &lt;li&gt;Lock mode also activates if the motor runs at high speed continuously for ~8 seconds.&lt;/li&gt; 
   &lt;li&gt;The lock is automatically released once the buffer returns to the neutral position.&lt;/li&gt; 
   &lt;li&gt;Prevents prolonged motor overrun when filament movement is blocked.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V8&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;Supported print resume after a printer power reset / power loss (printing can be resumed properly).&lt;/li&gt; 
 &lt;li&gt;Improved behavior for &lt;strong&gt;P1S&lt;/strong&gt; (loading problems due to long/bent PTFE path).&lt;/li&gt; 
 &lt;li&gt;Added AUTOLOAD support for &lt;strong&gt;single-switch PCB&lt;/strong&gt; boards: 
  &lt;ul&gt; 
   &lt;li&gt;Triggered by pressing the buffer (&quot;buffer tap&quot;).&lt;/li&gt; 
   &lt;li&gt;Starts filament loading exactly like the external switch trigger.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;More stable loading process overall.&lt;/li&gt; 
 &lt;li&gt;Improved support for &lt;strong&gt;low-torque BMCU&lt;/strong&gt; variants.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;V7&lt;/h2&gt; 
&lt;h3&gt;User-visible changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Remember loaded filaments (persistent state).&lt;/strong&gt;&lt;br /&gt; You can load filament and safely power off the printer.&lt;br /&gt; This allows you to disable the automatic unload-at-end behavior in G-code (if you often print with one filament), keeping filament loaded until you actually need to change it.&lt;br /&gt; More info here: &lt;a href=&quot;https://wiki.bambulab.com/en/ams/manual/ams-not-unloading-to-save-filament&quot;&gt;https://wiki.bambulab.com/en/ams/manual/ams-not-unloading-to-save-filament&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;100% solved filament loading problems.&lt;/strong&gt; The system is stable and consistent across hardware variants.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Filament RGB colors.&lt;/strong&gt; Modules/LEDs can display the configured filament color.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;AUTOLOAD (short)&lt;/h3&gt; 
&lt;p&gt;&lt;strong&gt;How AUTOLOAD works&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;DM (two microswitches):&lt;/strong&gt; 
  &lt;ul&gt; 
   &lt;li&gt;Touch first switch → AUTOLOAD starts (you may need a light manual push until gears grab).&lt;/li&gt; 
   &lt;li&gt;BMCU feeds filament until the second switch (behind extruder) confirms &lt;strong&gt;fully inserted&lt;/strong&gt;.&lt;/li&gt; 
   &lt;li&gt;Then it feeds 120 mm to make it print-ready.&lt;/li&gt; 
   &lt;li&gt;&lt;strong&gt;Anti-snag protection:&lt;/strong&gt; buffer position is monitored; if the filament catches on housing / PTFE edge, it retracts to safe position and retries (3 retries).&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Single-switch boards:&lt;/strong&gt; 
  &lt;ul&gt; 
   &lt;li&gt;Stage 1 is manual (no second switch to confirm fully-in).&lt;/li&gt; 
   &lt;li&gt;Once filament is fully in the extruder, Stage 2 behaves the same (incl. anti-snag protection).&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Technical changes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;ADC_DMA upgraded (ADC1 + ADC2 in parallel):&lt;/strong&gt; 
  &lt;ul&gt; 
   &lt;li&gt;Regular simultaneous mode: ADC1+ADC2 scan channels in parallel to reduce noise and increase throughput.&lt;/li&gt; 
   &lt;li&gt;Lower noise enabled smaller filtering and faster stable readout.&lt;/li&gt; 
   &lt;li&gt;Full filtered update time: &lt;strong&gt;~5 ms instead of ~28 ms&lt;/strong&gt;.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;AS5600 reading correctness improved&lt;/strong&gt; (robustness and stability of reads).&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Timer/tick safety (wrap safety):&lt;/strong&gt; all time comparisons reviewed to be correct under wrap-around.&lt;/li&gt; 
 &lt;li&gt;Final stabilization and cleanup: overall behavior is faster and more deterministic than previous releases.&lt;/li&gt; 
 &lt;li&gt;There were more fixes in V7 as well; easiest is to check the commit history.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;&lt;strong&gt;Final note:&lt;/strong&gt; all known issues were ultimately resolved. BMCU is fully stable and significantly faster vs older firmware. At this moment I do not expect any further fixes.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;V6&lt;/h2&gt; 
&lt;h2&gt;Framework&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Dropped Arduino Core (PlatformIO: framework = arduino) - the whole firmware was rewritten to pure CH32 (WCH SDK / noneos).&lt;/li&gt; 
 &lt;li&gt;Direct use of hardware timers, DMA and interrupts - no Arduino delays, no random timing, deterministic real-time behavior.&lt;/li&gt; 
 &lt;li&gt;Faster and correct flash operations (WCH Fast API) - stable writes, faster, without corrupting neighboring data.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;ADC_DMA&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Separated DMA writes from CPU reads - previously reads happened while DMA was overwriting the buffer.&lt;/li&gt; 
 &lt;li&gt;Filter is computed in the background (DMA half/full), not during readout - previously &lt;code&gt;get_value()&lt;/code&gt; blocked CPU and broke timing.&lt;/li&gt; 
 &lt;li&gt;Constant CPU load - previously larger filter window slowed the system down.&lt;/li&gt; 
 &lt;li&gt;DMA error handling&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;BUS (BambuBus + AHUB)&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Fixed RX/TX buffer race (reading and overwriting the same buffer at the same time).&lt;/li&gt; 
 &lt;li&gt;Snapshot-based parsing instead of working on a live buffer&lt;/li&gt; 
 &lt;li&gt;Deterministic frame handling timing - constant CPU cost, independent from packet length.&lt;/li&gt; 
 &lt;li&gt;Robustness against transmission errors - a bad packet does not break the whole system state.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Flash / NVM&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Flash written page-by-page (256B) instead of erasing/programming the whole sector (4KB)&lt;/li&gt; 
 &lt;li&gt;Write only when data actually changed&lt;/li&gt; 
 &lt;li&gt;Hardware CRC for flash + verification on read&lt;/li&gt; 
 &lt;li&gt;AMS data split into separate records - changing one filament does not rewrite the whole structure.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Soft-I2C / AS5600&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Rewritten from Arduino, removed timing bugs and Arduino &quot;magic&quot;.&lt;/li&gt; 
 &lt;li&gt;Correct ACK/NACK, START/STOP, recovery handling&lt;/li&gt; 
 &lt;li&gt;Hard isolation of channels with errors&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Motion / mechanics&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Smoother motor control&lt;/li&gt; 
 &lt;li&gt;Added calibration buffers - filament stays in a neutral position, without unnecessary tension.&lt;/li&gt; 
 &lt;li&gt;Better state transitions - no jerks and no sudden braking.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Misc&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;CRC8 / CRC16 rewritten to simple C + lookup tables - faster, deterministic, no objects and no runtime init.&lt;/li&gt; 
 &lt;li&gt;Partially de-spaghettified includes&lt;/li&gt; 
 &lt;li&gt;and many more - firmware prepared for further development&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Final note&lt;/h2&gt; 
&lt;p&gt;This firmware started as a personal CH32 learning project. During development it grew far beyond the original scope because working on BMCU turned out to be genuinely enjoyable.&lt;/p&gt; 
&lt;p&gt;Many solutions are intentionally overengineered. Everything was implemented primarily for personal use and experimentation.&lt;/p&gt; 
&lt;p&gt;The firmware has been used extensively during development, and no practical issues were observed in real-world usage.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/6baf2316030d03a0180850589372e539a1f7c5b01fa456330155b64e0dd6f8bc/jarczakpawel/BMCU-C-PJARCZAK" medium="image" />
      
    </item>
    
    <item>
      <title>nlohmann/json</title>
      <link>https://github.com/nlohmann/json</link>
      <description>&lt;p&gt;JSON for Modern C++&lt;/p&gt;&lt;hr&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/nlohmann/json/releases&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/docs/mkdocs/docs/images/json.gif&quot; alt=&quot;JSON for Modern C++&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://ci.appveyor.com/project/nlohmann/json&quot;&gt;&lt;img src=&quot;https://ci.appveyor.com/api/projects/status/1acb366xfyg3qybk/branch/develop?svg=true&quot; alt=&quot;Build Status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/actions?query=workflow%3AUbuntu&quot;&gt;&lt;img src=&quot;https://github.com/nlohmann/json/workflows/Ubuntu/badge.svg?sanitize=true&quot; alt=&quot;Ubuntu&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/actions?query=workflow%3AmacOS&quot;&gt;&lt;img src=&quot;https://github.com/nlohmann/json/workflows/macOS/badge.svg?sanitize=true&quot; alt=&quot;macOS&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/actions?query=workflow%3AWindows&quot;&gt;&lt;img src=&quot;https://github.com/nlohmann/json/workflows/Windows/badge.svg?sanitize=true&quot; alt=&quot;Windows&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://coveralls.io/github/nlohmann/json?branch=develop&quot;&gt;&lt;img src=&quot;https://coveralls.io/repos/github/nlohmann/json/badge.svg?branch=develop&quot; alt=&quot;Coverage Status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://scan.coverity.com/projects/nlohmann-json&quot;&gt;&lt;img src=&quot;https://scan.coverity.com/projects/5550/badge.svg?sanitize=true&quot; alt=&quot;Coverity Scan Build Status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://app.codacy.com/gh/nlohmann/json/dashboard?utm_source=gh&amp;amp;utm_medium=referral&amp;amp;utm_content=&amp;amp;utm_campaign=Badge_grade&quot;&gt;&lt;img src=&quot;https://app.codacy.com/project/badge/Grade/e0d1a9d5d6fd46fcb655c4cb930bb3e8&quot; alt=&quot;Codacy Badge&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://cirrus-ci.com/github/nlohmann/json&quot;&gt;&lt;img src=&quot;https://api.cirrus-ci.com/github/nlohmann/json.svg?sanitize=true&quot; alt=&quot;Cirrus CI&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&amp;amp;can=1&amp;amp;q=proj:json&quot;&gt;&lt;img src=&quot;https://oss-fuzz-build-logs.storage.googleapis.com/badges/json.svg?sanitize=true&quot; alt=&quot;Fuzzing Status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://wandbox.org/permlink/1mp10JbaANo6FUc7&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/try-online-blue.svg?sanitize=true&quot; alt=&quot;Try online&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://json.nlohmann.me&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/docs-mkdocs-blue.svg?sanitize=true&quot; alt=&quot;Documentation&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/master/LICENSE.MIT&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/license-MIT-blue.svg?sanitize=true&quot; alt=&quot;GitHub license&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/releases&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/release/nlohmann/json.svg?sanitize=true&quot; alt=&quot;GitHub Releases&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://repology.org/project/nlohmann-json/versions&quot;&gt;&lt;img src=&quot;https://repology.org/badge/tiny-repos/nlohmann-json.svg?sanitize=true&quot; alt=&quot;Packaging status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/releases&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/downloads/nlohmann/json/total&quot; alt=&quot;GitHub Downloads&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/nlohmann/json/issues&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/issues/nlohmann/json.svg?sanitize=true&quot; alt=&quot;GitHub Issues&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://isitmaintained.com/project/nlohmann/json&quot; title=&quot;Average time to resolve an issue&quot;&gt;&lt;img src=&quot;https://isitmaintained.com/badge/resolution/nlohmann/json.svg?sanitize=true&quot; alt=&quot;Average time to resolve an issue&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://bestpractices.coreinfrastructure.org/projects/289&quot;&gt;&lt;img src=&quot;https://bestpractices.coreinfrastructure.org/projects/289/badge&quot; alt=&quot;CII Best Practices&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://scorecard.dev/viewer/?uri=github.com/nlohmann/json&quot;&gt;&lt;img src=&quot;https://api.scorecard.dev/projects/github.com/nlohmann/json/badge&quot; alt=&quot;OpenSSF Scorecard&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://cloudback.it&quot;&gt;&lt;img src=&quot;https://app.cloudback.it/badge/nlohmann/json&quot; alt=&quot;Backup Status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/sponsors/nlohmann&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/GitHub-Sponsors-ff69b4&quot; alt=&quot;GitHub Sponsors&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://api.reuse.software/info/github.com/nlohmann/json&quot;&gt;&lt;img src=&quot;https://api.reuse.software/badge/github.com/nlohmann/json&quot; alt=&quot;REUSE status&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://discord.gg/6mrGXKvX7y&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/1003743314341793913&quot; alt=&quot;Discord&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#design-goals&quot;&gt;Design goals&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#sponsors&quot;&gt;Sponsors&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#support&quot;&gt;Support&lt;/a&gt; (&lt;a href=&quot;https://json.nlohmann.me&quot;&gt;documentation&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/home/faq/&quot;&gt;FAQ&lt;/a&gt;, &lt;a href=&quot;https://github.com/nlohmann/json/discussions&quot;&gt;discussions&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/&quot;&gt;API&lt;/a&gt;, &lt;a href=&quot;https://github.com/nlohmann/json/issues&quot;&gt;bug issues&lt;/a&gt;)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#quick-reference&quot;&gt;Quick reference&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#examples&quot;&gt;Examples&lt;/a&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#read-json-from-a-file&quot;&gt;Read JSON from a file&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#creating-json-objects-from-json-literals&quot;&gt;Creating &lt;code&gt;json&lt;/code&gt; objects from JSON literals&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#json-as-a-first-class-data-type&quot;&gt;JSON as a first-class data type&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#serialization--deserialization&quot;&gt;Serialization / Deserialization&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#stl-like-access&quot;&gt;STL-like access&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#conversion-from-stl-containers&quot;&gt;Conversion from STL containers&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#json-pointer-and-json-patch&quot;&gt;JSON Pointer and JSON Patch&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#json-merge-patch&quot;&gt;JSON Merge Patch&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#implicit-conversions&quot;&gt;Implicit conversions&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#arbitrary-types-conversions&quot;&gt;Conversions to/from arbitrary types&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#specializing-enum-conversion&quot;&gt;Specializing enum conversion&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#binary-formats-bson-cbor-messagepack-ubjson-and-bjdata&quot;&gt;Binary formats (BSON, CBOR, MessagePack, UBJSON, and BJData)&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#customers&quot;&gt;Customers&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#supported-compilers&quot;&gt;Supported compilers&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#integration&quot;&gt;Integration&lt;/a&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#cmake&quot;&gt;CMake&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#package-managers&quot;&gt;Package Managers&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#pkg-config&quot;&gt;Pkg-config&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#license&quot;&gt;License&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#contact&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#thanks&quot;&gt;Thanks&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#used-third-party-tools&quot;&gt;Used third-party tools&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#notes&quot;&gt;Notes&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#execute-unit-tests&quot;&gt;Execute unit tests&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Design goals&lt;/h2&gt; 
&lt;p&gt;There are myriads of &lt;a href=&quot;https://json.org&quot;&gt;JSON&lt;/a&gt; libraries out there, and each may even have its reason to exist. Our class had these design goals:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Intuitive syntax&lt;/strong&gt;. In languages such as Python, JSON feels like a first-class data type. We used all the operator magic of modern C++ to achieve the same feeling in your code. Check out the &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#examples&quot;&gt;examples below&lt;/a&gt; and you&#39;ll know what I mean.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Trivial integration&lt;/strong&gt;. Our whole code consists of a single header file &lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/single_include/nlohmann/json.hpp&quot;&gt;&lt;code&gt;json.hpp&lt;/code&gt;&lt;/a&gt;. That&#39;s it. No library, no subproject, no dependencies, no complex build system. The class is written in vanilla C++11. All in all, everything should require no adjustment of your compiler flags or project settings. The library is also included in all popular &lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/&quot;&gt;package managers&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Serious testing&lt;/strong&gt;. Our code is heavily &lt;a href=&quot;https://github.com/nlohmann/json/tree/develop/tests/src&quot;&gt;unit-tested&lt;/a&gt; and covers &lt;a href=&quot;https://coveralls.io/r/nlohmann/json&quot;&gt;100%&lt;/a&gt; of the code, including all exceptional behavior. Furthermore, we checked with &lt;a href=&quot;https://valgrind.org&quot;&gt;Valgrind&lt;/a&gt; and the &lt;a href=&quot;https://clang.llvm.org/docs/index.html&quot;&gt;Clang Sanitizers&lt;/a&gt; that there are no memory leaks. &lt;a href=&quot;https://github.com/google/oss-fuzz/tree/master/projects/json&quot;&gt;Google OSS-Fuzz&lt;/a&gt; additionally runs fuzz tests against all parsers 24/7, effectively executing billions of tests so far. To maintain high quality, the project is following the &lt;a href=&quot;https://bestpractices.coreinfrastructure.org/projects/289&quot;&gt;Core Infrastructure Initiative (CII) best practices&lt;/a&gt;. See the &lt;a href=&quot;https://json.nlohmann.me/community/quality_assurance&quot;&gt;quality assurance&lt;/a&gt; overview documentation.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Other aspects were not so important to us:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Memory efficiency&lt;/strong&gt;. Each JSON object has an overhead of one pointer (the maximal size of a union) and one enumeration element (1 byte). The default generalization uses the following C++ data types: &lt;code&gt;std::string&lt;/code&gt; for strings, &lt;code&gt;int64_t&lt;/code&gt;, &lt;code&gt;uint64_t&lt;/code&gt; or &lt;code&gt;double&lt;/code&gt; for numbers, &lt;code&gt;std::map&lt;/code&gt; for objects, &lt;code&gt;std::vector&lt;/code&gt; for arrays, and &lt;code&gt;bool&lt;/code&gt; for Booleans. However, you can template the generalized class &lt;code&gt;basic_json&lt;/code&gt; to your needs.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Speed&lt;/strong&gt;. There are certainly &lt;a href=&quot;https://github.com/miloyip/nativejson-benchmark#parsing-time&quot;&gt;faster JSON libraries&lt;/a&gt; out there. However, if your goal is to speed up your development by adding JSON support with a single header, then this library is the way to go. If you know how to use a &lt;code&gt;std::vector&lt;/code&gt; or &lt;code&gt;std::map&lt;/code&gt;, you are already set.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;See the &lt;a href=&quot;https://github.com/nlohmann/json/raw/master/.github/CONTRIBUTING.md#please-dont&quot;&gt;contribution guidelines&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;h2&gt;Sponsors&lt;/h2&gt; 
&lt;p&gt;You can sponsor this library at &lt;a href=&quot;https://github.com/sponsors/nlohmann&quot;&gt;GitHub Sponsors&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;🙋 Priority Sponsor&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/codeclown&quot;&gt;Martti Laine&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/phrrngtn&quot;&gt;Paul Harrington&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mercedes-benz&quot;&gt;Mercedes-Benz Group&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mccaffers&quot;&gt;Ryan McCaffery&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;🏷️ Named Sponsors&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/reFX-Mike&quot;&gt;Michael Hartmann&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sthagen&quot;&gt;Stefan Hagen&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/homer6&quot;&gt;Steve Sperandeo&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eljefedelrodeodeljefe&quot;&gt;Robert Jefe Lindstädt&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ciroque&quot;&gt;Steve Wagner&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/LionNatsu&quot;&gt;Lion Yang&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Further support&lt;/h3&gt; 
&lt;p&gt;The development of the library is further supported by JetBrains by providing free access to their IDE tools.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://jb.gg/OpenSourceSupport&quot;&gt;&lt;img src=&quot;https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg?sanitize=true&quot; alt=&quot;JetBrains logo.&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Thanks everyone!&lt;/p&gt; 
&lt;h2&gt;Support&lt;/h2&gt; 
&lt;p&gt;❓ If you have a &lt;strong&gt;question&lt;/strong&gt;, please check if it is already answered in the &lt;a href=&quot;https://json.nlohmann.me/home/faq/&quot;&gt;&lt;strong&gt;FAQ&lt;/strong&gt;&lt;/a&gt; or the &lt;a href=&quot;https://github.com/nlohmann/json/discussions/categories/q-a&quot;&gt;&lt;strong&gt;Q&amp;amp;A&lt;/strong&gt;&lt;/a&gt; section. If not, please &lt;a href=&quot;https://github.com/nlohmann/json/discussions/new&quot;&gt;&lt;strong&gt;ask a new question&lt;/strong&gt;&lt;/a&gt; there.&lt;/p&gt; 
&lt;p&gt;📚 If you want to &lt;strong&gt;learn more&lt;/strong&gt; about how to use the library, check out the rest of the &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#examples&quot;&gt;&lt;strong&gt;README&lt;/strong&gt;&lt;/a&gt;, have a look at &lt;a href=&quot;https://github.com/nlohmann/json/tree/develop/docs/mkdocs/docs/examples&quot;&gt;&lt;strong&gt;code examples&lt;/strong&gt;&lt;/a&gt;, or browse through the &lt;a href=&quot;https://json.nlohmann.me&quot;&gt;&lt;strong&gt;help pages&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;🚧 If you want to understand the &lt;strong&gt;API&lt;/strong&gt; better, check out the &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/&quot;&gt;&lt;strong&gt;API Reference&lt;/strong&gt;&lt;/a&gt; or have a look at the &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#quick-reference&quot;&gt;quick reference&lt;/a&gt; below.&lt;/p&gt; 
&lt;p&gt;🐛 If you found a &lt;strong&gt;bug&lt;/strong&gt;, please check the &lt;a href=&quot;https://json.nlohmann.me/home/faq/&quot;&gt;&lt;strong&gt;FAQ&lt;/strong&gt;&lt;/a&gt; if it is a known issue or the result of a design decision. Please also have a look at the &lt;a href=&quot;https://github.com/nlohmann/json/issues&quot;&gt;&lt;strong&gt;issue list&lt;/strong&gt;&lt;/a&gt; before you &lt;a href=&quot;https://github.com/nlohmann/json/issues/new/choose&quot;&gt;&lt;strong&gt;create a new issue&lt;/strong&gt;&lt;/a&gt;. Please provide as much information as possible to help us understand and reproduce your issue.&lt;/p&gt; 
&lt;p&gt;There is also a &lt;a href=&quot;https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/JSON_for_Modern_C%2B%2B&quot;&gt;&lt;strong&gt;docset&lt;/strong&gt;&lt;/a&gt; for the documentation browsers &lt;a href=&quot;https://kapeli.com/dash&quot;&gt;Dash&lt;/a&gt;, &lt;a href=&quot;https://velocity.silverlakesoftware.com&quot;&gt;Velocity&lt;/a&gt;, and &lt;a href=&quot;https://zealdocs.org&quot;&gt;Zeal&lt;/a&gt; that contains the full &lt;a href=&quot;https://json.nlohmann.me&quot;&gt;documentation&lt;/a&gt; as an offline resource.&lt;/p&gt; 
&lt;h2&gt;Quick reference&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Constructors&lt;/strong&gt; &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/basic_json&quot;&gt;basic_json&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/array&quot;&gt;array&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/binary&quot;&gt;binary&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/object&quot;&gt;object&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Object inspection&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/type&quot;&gt;type&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_value_t&quot;&gt;operator value_t&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/type_name&quot;&gt;type_name&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_primitive&quot;&gt;is_primitive&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_structured&quot;&gt;is_structured&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_null&quot;&gt;is_null&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_boolean&quot;&gt;is_boolean&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_number&quot;&gt;is_number&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_number_integer&quot;&gt;is_number_integer&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_number_unsigned&quot;&gt;is_number_unsigned&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_number_float&quot;&gt;is_number_float&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_object&quot;&gt;is_object&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_array&quot;&gt;is_array&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_string&quot;&gt;is_string&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_binary&quot;&gt;is_binary&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/is_discarded&quot;&gt;is_discarded&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Value access&lt;/strong&gt;; &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get&quot;&gt;get&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get_to&quot;&gt;get_to&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get_ptr&quot;&gt;get_ptr&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get_ref&quot;&gt;get_ref&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_ValueType&quot;&gt;operator ValueType&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get_binary&quot;&gt;get_binary&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Element access&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/at&quot;&gt;at&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator%5B%5D&quot;&gt;operator[]&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/value&quot;&gt;value&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/front&quot;&gt;front&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/back&quot;&gt;back&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Lookup&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/find&quot;&gt;find&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/count&quot;&gt;count&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/contains&quot;&gt;contains&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Iterators&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/begin&quot;&gt;begin&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/cbegin&quot;&gt;cbegin&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/end&quot;&gt;end&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/cend&quot;&gt;cend&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/rbegin&quot;&gt;rbegin&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/rend&quot;&gt;rend&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/crbegin&quot;&gt;crbegin&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/crend&quot;&gt;crend&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/items&quot;&gt;items&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Capacity&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/empty&quot;&gt;empty&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/size&quot;&gt;size&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/max_size&quot;&gt;max_size&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Modifiers&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/clear&quot;&gt;clear&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/push_back&quot;&gt;push_back&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator+=&quot;&gt;operator+=&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/emplace_back&quot;&gt;emplace_back&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/emplace&quot;&gt;emplace&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/erase&quot;&gt;erase&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/insert&quot;&gt;insert&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/update&quot;&gt;update&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/swap&quot;&gt;swap&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Lexicographical comparison operators&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_eq&quot;&gt;operator==&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_ne&quot;&gt;operator!=&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_lt&quot;&gt;operator&amp;lt;&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_gt&quot;&gt;operator&amp;gt;&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_le&quot;&gt;operator&amp;lt;=&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_ge&quot;&gt;operator&amp;gt;=&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator_spaceship&quot;&gt;operator&amp;lt;=&amp;gt;&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Serialization / Dumping&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/dump&quot;&gt;dump&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Deserialization / Parsing&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/parse&quot;&gt;parse&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/accept&quot;&gt;accept&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/sax_parse&quot;&gt;sax_parse&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;JSON Pointer functions&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/flatten&quot;&gt;flatten&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/unflatten&quot;&gt;unflatten&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;JSON Patch functions&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/patch&quot;&gt;patch&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/patch_inplace&quot;&gt;patch_inplace&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/diff&quot;&gt;diff&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/merge_patch&quot;&gt;merge_patch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Static functions&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/meta&quot;&gt;meta&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/get_allocator&quot;&gt;get_allocator&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Binary formats&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/from_bjdata&quot;&gt;from_bjdata&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/from_bson&quot;&gt;from_bson&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/from_cbor&quot;&gt;from_cbor&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/from_msgpack&quot;&gt;from_msgpack&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/from_ubjson&quot;&gt;from_ubjson&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_bjdata&quot;&gt;to_bjdata&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_bson&quot;&gt;to_bson&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_cbor&quot;&gt;to_cbor&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_msgpack&quot;&gt;to_msgpack&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_ubjson&quot;&gt;to_ubjson&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Non-member functions&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/operator_ltlt/&quot;&gt;operator&amp;lt;&amp;lt;&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/operator_gtgt/&quot;&gt;operator&amp;gt;&amp;gt;&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/to_string&quot;&gt;to_string&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Literals&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/operator_literal_json&quot;&gt;operator&quot;&quot;_json&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Helper classes&lt;/strong&gt;: &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/std_hash&quot;&gt;std::hash&amp;lt;basic_json&amp;gt;&lt;/a&gt;, &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/std_swap&quot;&gt;std::swap&amp;lt;basic_json&amp;gt;&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;&lt;a href=&quot;https://json.nlohmann.me/api/basic_json/&quot;&gt;&lt;strong&gt;Full API documentation&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Examples&lt;/h2&gt; 
&lt;p&gt;Here are some examples to give you an idea how to use the class.&lt;/p&gt; 
&lt;p&gt;Besides the examples below, you may want to:&lt;/p&gt; 
&lt;p&gt;→ Check the &lt;a href=&quot;https://json.nlohmann.me/&quot;&gt;documentation&lt;/a&gt;&lt;br /&gt; → Browse the &lt;a href=&quot;https://github.com/nlohmann/json/tree/develop/docs/mkdocs/docs/examples&quot;&gt;standalone example files&lt;/a&gt;&lt;br /&gt; → Read the full &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/&quot;&gt;API Documentation&lt;/a&gt; with self-contained examples for every function&lt;/p&gt; 
&lt;h3&gt;Read JSON from a file&lt;/h3&gt; 
&lt;p&gt;The &lt;code&gt;json&lt;/code&gt; class provides an API for manipulating a JSON value. To create a &lt;code&gt;json&lt;/code&gt; object by reading a JSON file:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;#include &amp;lt;fstream&amp;gt;
#include &amp;lt;nlohmann/json.hpp&amp;gt;
using json = nlohmann::json;

// ...

std::ifstream f(&quot;example.json&quot;);
json data = json::parse(f);
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If using modules (enabled with &lt;code&gt;NLOHMANN_JSON_BUILD_MODULES&lt;/code&gt;), this example becomes:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;import std;
import nlohmann.json;

using json = nlohmann::json;

// ...

std::ifstream f(&quot;example.json&quot;);
json data = json::parse(f);
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Creating &lt;code&gt;json&lt;/code&gt; objects from JSON literals&lt;/h3&gt; 
&lt;p&gt;Assume you want to hard-code this literal JSON value as a &lt;code&gt;json&lt;/code&gt; object:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;pi&quot;: 3.141,
  &quot;happy&quot;: true
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;There are various options:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// Using (raw) string literals and json::parse
json ex1 = json::parse(R&quot;(
  {
    &quot;pi&quot;: 3.141,
    &quot;happy&quot;: true
  }
)&quot;);

// Using user-defined (raw) string literals
using namespace nlohmann::literals;
json ex2 = R&quot;(
  {
    &quot;pi&quot;: 3.141,
    &quot;happy&quot;: true
  }
)&quot;_json;

// Using initializer lists
json ex3 = {
  {&quot;happy&quot;, true},
  {&quot;pi&quot;, 3.141},
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;JSON as a first-class data type&lt;/h3&gt; 
&lt;p&gt;Here are some examples to give you an idea how to use the class.&lt;/p&gt; 
&lt;p&gt;Assume you want to create the JSON object&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;pi&quot;: 3.141,
  &quot;happy&quot;: true,
  &quot;name&quot;: &quot;Niels&quot;,
  &quot;nothing&quot;: null,
  &quot;answer&quot;: {
    &quot;everything&quot;: 42
  },
  &quot;list&quot;: [1, 0, 2],
  &quot;object&quot;: {
    &quot;currency&quot;: &quot;USD&quot;,
    &quot;value&quot;: 42.99
  }
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;With this library, you could write:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// create an empty structure (null)
json j;

// add a number stored as double (note the implicit conversion of j to an object)
j[&quot;pi&quot;] = 3.141;

// add a Boolean stored as bool
j[&quot;happy&quot;] = true;

// add a string stored as std::string
j[&quot;name&quot;] = &quot;Niels&quot;;

// add another null object by passing nullptr
j[&quot;nothing&quot;] = nullptr;

// add an object inside the object
j[&quot;answer&quot;][&quot;everything&quot;] = 42;

// add an array stored as std::vector (using an initializer list)
j[&quot;list&quot;] = { 1, 0, 2 };

// add another object (using an initializer list of pairs)
j[&quot;object&quot;] = { {&quot;currency&quot;, &quot;USD&quot;}, {&quot;value&quot;, 42.99} };

// instead, you could also write (which looks very similar to the JSON above)
json j2 = {
  {&quot;pi&quot;, 3.141},
  {&quot;happy&quot;, true},
  {&quot;name&quot;, &quot;Niels&quot;},
  {&quot;nothing&quot;, nullptr},
  {&quot;answer&quot;, {
    {&quot;everything&quot;, 42}
  }},
  {&quot;list&quot;, {1, 0, 2}},
  {&quot;object&quot;, {
    {&quot;currency&quot;, &quot;USD&quot;},
    {&quot;value&quot;, 42.99}
  }}
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note that in all these cases, you never need to &quot;tell&quot; the compiler which JSON value type you want to use. If you want to be explicit or express some edge cases, the functions &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/array/&quot;&gt;&lt;code&gt;json::array()&lt;/code&gt;&lt;/a&gt; and &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/object/&quot;&gt;&lt;code&gt;json::object()&lt;/code&gt;&lt;/a&gt; will help:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// a way to express the empty array []
json empty_array_explicit = json::array();

// ways to express the empty object {}
json empty_object_implicit = json({});
json empty_object_explicit = json::object();

// a way to express an _array_ of key/value pairs [[&quot;currency&quot;, &quot;USD&quot;], [&quot;value&quot;, 42.99]]
json array_not_object = json::array({ {&quot;currency&quot;, &quot;USD&quot;}, {&quot;value&quot;, 42.99} });
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Serialization / Deserialization&lt;/h3&gt; 
&lt;h4&gt;To/from strings&lt;/h4&gt; 
&lt;p&gt;You can create a JSON value (deserialization) by appending &lt;code&gt;_json&lt;/code&gt; to a string literal:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// create object from string literal
json j = &quot;{ \&quot;happy\&quot;: true, \&quot;pi\&quot;: 3.141 }&quot;_json;

// or even nicer with a raw string literal
auto j2 = R&quot;(
  {
    &quot;happy&quot;: true,
    &quot;pi&quot;: 3.141
  }
)&quot;_json;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note that without appending the &lt;code&gt;_json&lt;/code&gt; suffix, the passed string literal is not parsed, but just used as JSON string value. That is, &lt;code&gt;json j = &quot;{ \&quot;happy\&quot;: true, \&quot;pi\&quot;: 3.141 }&quot;&lt;/code&gt; would just store the string &lt;code&gt;&quot;{ &quot;happy&quot;: true, &quot;pi&quot;: 3.141 }&quot;&lt;/code&gt; rather than parsing the actual object.&lt;/p&gt; 
&lt;p&gt;The string literal should be brought into scope with &lt;code&gt;using namespace nlohmann::literals;&lt;/code&gt; (see &lt;a href=&quot;https://json.nlohmann.me/api/operator_literal_json/&quot;&gt;&lt;code&gt;json::parse()&lt;/code&gt;&lt;/a&gt;).&lt;/p&gt; 
&lt;p&gt;The above example can also be expressed explicitly using &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/parse/&quot;&gt;&lt;code&gt;json::parse()&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// parse explicitly
auto j3 = json::parse(R&quot;({&quot;happy&quot;: true, &quot;pi&quot;: 3.141})&quot;);
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You can also get a string representation of a JSON value (serialize):&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// explicit conversion to string
std::string s = j.dump();    // {&quot;happy&quot;:true,&quot;pi&quot;:3.141}

// serialization with pretty printing
// pass in the amount of spaces to indent
std::cout &amp;lt;&amp;lt; j.dump(4) &amp;lt;&amp;lt; std::endl;
// {
//     &quot;happy&quot;: true,
//     &quot;pi&quot;: 3.141
// }
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note the difference between serialization and assignment:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// store a string in a JSON value
json j_string = &quot;this is a string&quot;;

// retrieve the string value
auto cpp_string = j_string.get&amp;lt;std::string&amp;gt;();
// retrieve the string value (alternative when a variable already exists)
std::string cpp_string2;
j_string.get_to(cpp_string2);

// retrieve the serialized value (explicit JSON serialization)
std::string serialized_string = j_string.dump();

// output of original string
std::cout &amp;lt;&amp;lt; cpp_string &amp;lt;&amp;lt; &quot; == &quot; &amp;lt;&amp;lt; cpp_string2 &amp;lt;&amp;lt; &quot; == &quot; &amp;lt;&amp;lt; j_string.get&amp;lt;std::string&amp;gt;() &amp;lt;&amp;lt; &#39;\n&#39;;
// output of serialized value
std::cout &amp;lt;&amp;lt; j_string &amp;lt;&amp;lt; &quot; == &quot; &amp;lt;&amp;lt; serialized_string &amp;lt;&amp;lt; std::endl;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;a href=&quot;https://json.nlohmann.me/api/basic_json/dump/&quot;&gt;&lt;code&gt;.dump()&lt;/code&gt;&lt;/a&gt; returns the originally stored string value.&lt;/p&gt; 
&lt;p&gt;Note the library only supports UTF-8. When you store strings with different encodings in the library, calling &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/dump/&quot;&gt;&lt;code&gt;dump()&lt;/code&gt;&lt;/a&gt; may throw an exception unless &lt;code&gt;json::error_handler_t::replace&lt;/code&gt; or &lt;code&gt;json::error_handler_t::ignore&lt;/code&gt; are used as error handlers.&lt;/p&gt; 
&lt;h4&gt;To/from streams (e.g., files, string streams)&lt;/h4&gt; 
&lt;p&gt;You can also use streams to serialize and deserialize:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// deserialize from standard input
json j;
std::cin &amp;gt;&amp;gt; j;

// serialize to standard output
std::cout &amp;lt;&amp;lt; j;

// the setw manipulator was overloaded to set the indentation for pretty printing
std::cout &amp;lt;&amp;lt; std::setw(4) &amp;lt;&amp;lt; j &amp;lt;&amp;lt; std::endl;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;These operators work for any subclasses of &lt;code&gt;std::istream&lt;/code&gt; or &lt;code&gt;std::ostream&lt;/code&gt;. Here is the same example with files:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// read a JSON file
std::ifstream i(&quot;file.json&quot;);
json j;
i &amp;gt;&amp;gt; j;

// write prettified JSON to another file
std::ofstream o(&quot;pretty.json&quot;);
o &amp;lt;&amp;lt; std::setw(4) &amp;lt;&amp;lt; j &amp;lt;&amp;lt; std::endl;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Please note that setting the exception bit for &lt;code&gt;failbit&lt;/code&gt; is inappropriate for this use case. It will result in program termination due to the &lt;code&gt;noexcept&lt;/code&gt; specifier in use.&lt;/p&gt; 
&lt;h4&gt;Read from iterator range&lt;/h4&gt; 
&lt;p&gt;You can also parse JSON from an iterator range; that is, from any container accessible by iterators whose &lt;code&gt;value_type&lt;/code&gt; is an integral type of 1, 2, or 4 bytes, which will be interpreted as UTF-8, UTF-16, and UTF-32 respectively. For instance, a &lt;code&gt;std::vector&amp;lt;std::uint8_t&amp;gt;&lt;/code&gt;, or a &lt;code&gt;std::list&amp;lt;std::uint16_t&amp;gt;&lt;/code&gt;:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;std::vector&amp;lt;std::uint8_t&amp;gt; v = {&#39;t&#39;, &#39;r&#39;, &#39;u&#39;, &#39;e&#39;};
json j = json::parse(v.begin(), v.end());
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You may leave the iterators for the range [begin, end):&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;std::vector&amp;lt;std::uint8_t&amp;gt; v = {&#39;t&#39;, &#39;r&#39;, &#39;u&#39;, &#39;e&#39;};
json j = json::parse(v);
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Custom data source&lt;/h4&gt; 
&lt;p&gt;Since the parse function accepts arbitrary iterator ranges, you can provide your own data sources by implementing the &lt;code&gt;LegacyInputIterator&lt;/code&gt; concept.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;struct MyContainer {
  void advance();
  const char&amp;amp; get_current();
};

struct MyIterator {
    using difference_type = std::ptrdiff_t;
    using value_type = char;
    using pointer = const char*;
    using reference = const char&amp;amp;;
    using iterator_category = std::input_iterator_tag;

    MyIterator&amp;amp; operator++() {
        target-&amp;gt;advance();
        return *this;
    }

    bool operator!=(const MyIterator&amp;amp; rhs) const {
        return rhs.target != target;
    }

    reference operator*() const {
        return target-&amp;gt;get_current();
    }

    MyContainer* target = nullptr;
};

MyIterator begin(MyContainer&amp;amp; tgt) {
    return MyIterator{&amp;amp;tgt};
}

MyIterator end(const MyContainer&amp;amp;) {
    return {};
}

void foo() {
    MyContainer c;
    json j = json::parse(c);
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;SAX interface&lt;/h4&gt; 
&lt;p&gt;The library uses a SAX-like interface with the following functions:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// called when null is parsed
bool null();

// called when a boolean is parsed; value is passed
bool boolean(bool val);

// called when a signed or unsigned integer number is parsed; value is passed
bool number_integer(number_integer_t val);
bool number_unsigned(number_unsigned_t val);

// called when a floating-point number is parsed; value and original string is passed
bool number_float(number_float_t val, const string_t&amp;amp; s);

// called when a string is parsed; value is passed and can be safely moved away
bool string(string_t&amp;amp; val);
// called when a binary value is parsed; value is passed and can be safely moved away
bool binary(binary_t&amp;amp; val);

// called when an object or array begins or ends, resp. The number of elements is passed (or -1 if not known)
bool start_object(std::size_t elements);
bool end_object();
bool start_array(std::size_t elements);
bool end_array();
// called when an object key is parsed; value is passed and can be safely moved away
bool key(string_t&amp;amp; val);

// called when a parse error occurs; byte position, the last token, and an exception is passed
bool parse_error(std::size_t position, const std::string&amp;amp; last_token, const detail::exception&amp;amp; ex);
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The return value of each function determines whether parsing should proceed.&lt;/p&gt; 
&lt;p&gt;To implement your own SAX handler, proceed as follows:&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt;Implement the SAX interface in a class. You can use class &lt;code&gt;nlohmann::json_sax&amp;lt;json&amp;gt;&lt;/code&gt; as base class, but you can also use any class where the functions described above are implemented and public.&lt;/li&gt; 
 &lt;li&gt;Create an object of your SAX interface class, e.g. &lt;code&gt;my_sax&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;Call &lt;code&gt;bool json::sax_parse(input, &amp;amp;my_sax)&lt;/code&gt;; where the first parameter can be any input like a string or an input stream and the second parameter is a pointer to your SAX interface.&lt;/li&gt; 
&lt;/ol&gt; 
&lt;p&gt;Note the &lt;code&gt;sax_parse&lt;/code&gt; function only returns a &lt;code&gt;bool&lt;/code&gt; indicating the result of the last executed SAX event. It does not return a &lt;code&gt;json&lt;/code&gt; value - it is up to you to decide what to do with the SAX events. Furthermore, no exceptions are thrown in case of a parse error -- it is up to you what to do with the exception object passed to your &lt;code&gt;parse_error&lt;/code&gt; implementation. Internally, the SAX interface is used for the DOM parser (class &lt;code&gt;json_sax_dom_parser&lt;/code&gt;) as well as the acceptor (&lt;code&gt;json_sax_acceptor&lt;/code&gt;), see file &lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/include/nlohmann/detail/input/json_sax.hpp&quot;&gt;&lt;code&gt;json_sax.hpp&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;STL-like access&lt;/h3&gt; 
&lt;p&gt;We designed the JSON class to behave just like an STL container. In fact, it satisfies the &lt;a href=&quot;https://en.cppreference.com/w/cpp/named_req/ReversibleContainer&quot;&gt;&lt;strong&gt;ReversibleContainer&lt;/strong&gt;&lt;/a&gt; requirement.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// create an array using push_back
json j;
j.push_back(&quot;foo&quot;);
j.push_back(1);
j.push_back(true);

// also use emplace_back
j.emplace_back(1.78);

// iterate the array
for (json::iterator it = j.begin(); it != j.end(); ++it) {
  std::cout &amp;lt;&amp;lt; *it &amp;lt;&amp;lt; &#39;\n&#39;;
}

// range-based for
for (auto&amp;amp; element : j) {
  std::cout &amp;lt;&amp;lt; element &amp;lt;&amp;lt; &#39;\n&#39;;
}

// getter/setter
const auto tmp = j[0].get&amp;lt;std::string&amp;gt;();
j[1] = 42;
bool foo = j.at(2);

// comparison
j == R&quot;([&quot;foo&quot;, 1, true, 1.78])&quot;_json;  // true

// other stuff
j.size();     // 4 entries
j.empty();    // false
j.type();     // json::value_t::array
j.clear();    // the array is empty again

// convenience type checkers
j.is_null();
j.is_boolean();
j.is_number();
j.is_object();
j.is_array();
j.is_string();

// create an object
json o;
o[&quot;foo&quot;] = 23;
o[&quot;bar&quot;] = false;
o[&quot;baz&quot;] = 3.141;

// also use emplace
o.emplace(&quot;weather&quot;, &quot;sunny&quot;);

// special iterator member functions for objects
for (json::iterator it = o.begin(); it != o.end(); ++it) {
  std::cout &amp;lt;&amp;lt; it.key() &amp;lt;&amp;lt; &quot; : &quot; &amp;lt;&amp;lt; it.value() &amp;lt;&amp;lt; &quot;\n&quot;;
}

// the same code as range for
for (auto&amp;amp; el : o.items()) {
  std::cout &amp;lt;&amp;lt; el.key() &amp;lt;&amp;lt; &quot; : &quot; &amp;lt;&amp;lt; el.value() &amp;lt;&amp;lt; &quot;\n&quot;;
}

// even easier with structured bindings (C++17)
for (auto&amp;amp; [key, value] : o.items()) {
  std::cout &amp;lt;&amp;lt; key &amp;lt;&amp;lt; &quot; : &quot; &amp;lt;&amp;lt; value &amp;lt;&amp;lt; &quot;\n&quot;;
}

// find an entry
if (o.contains(&quot;foo&quot;)) {
  // there is an entry with key &quot;foo&quot;
}

// or via find and an iterator
if (o.find(&quot;foo&quot;) != o.end()) {
  // there is an entry with key &quot;foo&quot;
}

// or simpler using count()
int foo_present = o.count(&quot;foo&quot;); // 1
int fob_present = o.count(&quot;fob&quot;); // 0

// delete an entry
o.erase(&quot;foo&quot;);
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Conversion from STL containers&lt;/h3&gt; 
&lt;p&gt;Any sequence container (&lt;code&gt;std::array&lt;/code&gt;, &lt;code&gt;std::vector&lt;/code&gt;, &lt;code&gt;std::deque&lt;/code&gt;, &lt;code&gt;std::forward_list&lt;/code&gt;, &lt;code&gt;std::list&lt;/code&gt;) whose values can be used to construct JSON values (e.g., integers, floating point numbers, Booleans, string types, or again STL containers described in this section) can be used to create a JSON array. The same holds for similar associative containers (&lt;code&gt;std::set&lt;/code&gt;, &lt;code&gt;std::multiset&lt;/code&gt;, &lt;code&gt;std::unordered_set&lt;/code&gt;, &lt;code&gt;std::unordered_multiset&lt;/code&gt;), but in these cases the order of the elements of the array depends on how the elements are ordered in the respective STL container.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;std::vector&amp;lt;int&amp;gt; c_vector {1, 2, 3, 4};
json j_vec(c_vector);
// [1, 2, 3, 4]

std::deque&amp;lt;double&amp;gt; c_deque {1.2, 2.3, 3.4, 5.6};
json j_deque(c_deque);
// [1.2, 2.3, 3.4, 5.6]

std::list&amp;lt;bool&amp;gt; c_list {true, true, false, true};
json j_list(c_list);
// [true, true, false, true]

std::forward_list&amp;lt;int64_t&amp;gt; c_flist {12345678909876, 23456789098765, 34567890987654, 45678909876543};
json j_flist(c_flist);
// [12345678909876, 23456789098765, 34567890987654, 45678909876543]

std::array&amp;lt;unsigned long, 4&amp;gt; c_array {{1, 2, 3, 4}};
json j_array(c_array);
// [1, 2, 3, 4]

std::set&amp;lt;std::string&amp;gt; c_set {&quot;one&quot;, &quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;one&quot;};
json j_set(c_set); // only one entry for &quot;one&quot; is used
// [&quot;four&quot;, &quot;one&quot;, &quot;three&quot;, &quot;two&quot;]

std::unordered_set&amp;lt;std::string&amp;gt; c_uset {&quot;one&quot;, &quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;one&quot;};
json j_uset(c_uset); // only one entry for &quot;one&quot; is used
// maybe [&quot;two&quot;, &quot;three&quot;, &quot;four&quot;, &quot;one&quot;]

std::multiset&amp;lt;std::string&amp;gt; c_mset {&quot;one&quot;, &quot;two&quot;, &quot;one&quot;, &quot;four&quot;};
json j_mset(c_mset); // both entries for &quot;one&quot; are used
// maybe [&quot;one&quot;, &quot;two&quot;, &quot;one&quot;, &quot;four&quot;]

std::unordered_multiset&amp;lt;std::string&amp;gt; c_umset {&quot;one&quot;, &quot;two&quot;, &quot;one&quot;, &quot;four&quot;};
json j_umset(c_umset); // both entries for &quot;one&quot; are used
// maybe [&quot;one&quot;, &quot;two&quot;, &quot;one&quot;, &quot;four&quot;]
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Likewise, any associative key-value containers (&lt;code&gt;std::map&lt;/code&gt;, &lt;code&gt;std::multimap&lt;/code&gt;, &lt;code&gt;std::unordered_map&lt;/code&gt;, &lt;code&gt;std::unordered_multimap&lt;/code&gt;) whose keys can construct an &lt;code&gt;std::string&lt;/code&gt; and whose values can be used to construct JSON values (see examples above) can be used to create a JSON object. Note that in case of multimaps, only one key is used in the JSON object and the value depends on the internal order of the STL container.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;std::map&amp;lt;std::string, int&amp;gt; c_map { {&quot;one&quot;, 1}, {&quot;two&quot;, 2}, {&quot;three&quot;, 3} };
json j_map(c_map);
// {&quot;one&quot;: 1, &quot;three&quot;: 3, &quot;two&quot;: 2 }

std::unordered_map&amp;lt;const char*, double&amp;gt; c_umap { {&quot;one&quot;, 1.2}, {&quot;two&quot;, 2.3}, {&quot;three&quot;, 3.4} };
json j_umap(c_umap);
// {&quot;one&quot;: 1.2, &quot;two&quot;: 2.3, &quot;three&quot;: 3.4}

std::multimap&amp;lt;std::string, bool&amp;gt; c_mmap { {&quot;one&quot;, true}, {&quot;two&quot;, true}, {&quot;three&quot;, false}, {&quot;three&quot;, true} };
json j_mmap(c_mmap); // only one entry for key &quot;three&quot; is used
// maybe {&quot;one&quot;: true, &quot;two&quot;: true, &quot;three&quot;: true}

std::unordered_multimap&amp;lt;std::string, bool&amp;gt; c_ummap { {&quot;one&quot;, true}, {&quot;two&quot;, true}, {&quot;three&quot;, false}, {&quot;three&quot;, true} };
json j_ummap(c_ummap); // only one entry for key &quot;three&quot; is used
// maybe {&quot;one&quot;: true, &quot;two&quot;: true, &quot;three&quot;: true}
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;JSON Pointer and JSON Patch&lt;/h3&gt; 
&lt;p&gt;The library supports &lt;strong&gt;JSON Pointer&lt;/strong&gt; (&lt;a href=&quot;https://tools.ietf.org/html/rfc6901&quot;&gt;RFC 6901&lt;/a&gt;) as an alternative means to address structured values. On top of this, &lt;strong&gt;JSON Patch&lt;/strong&gt; (&lt;a href=&quot;https://tools.ietf.org/html/rfc6902&quot;&gt;RFC 6902&lt;/a&gt;) allows describing differences between two JSON values -- effectively allowing patch and diff operations known from Unix.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// a JSON value
json j_original = R&quot;({
  &quot;baz&quot;: [&quot;one&quot;, &quot;two&quot;, &quot;three&quot;],
  &quot;foo&quot;: &quot;bar&quot;
})&quot;_json;

// access members with a JSON pointer (RFC 6901)
j_original[&quot;/baz/1&quot;_json_pointer];
// &quot;two&quot;

// a JSON patch (RFC 6902)
json j_patch = R&quot;([
  { &quot;op&quot;: &quot;replace&quot;, &quot;path&quot;: &quot;/baz&quot;, &quot;value&quot;: &quot;boo&quot; },
  { &quot;op&quot;: &quot;add&quot;, &quot;path&quot;: &quot;/hello&quot;, &quot;value&quot;: [&quot;world&quot;] },
  { &quot;op&quot;: &quot;remove&quot;, &quot;path&quot;: &quot;/foo&quot;}
])&quot;_json;

// apply the patch
json j_result = j_original.patch(j_patch);
// {
//    &quot;baz&quot;: &quot;boo&quot;,
//    &quot;hello&quot;: [&quot;world&quot;]
// }

// calculate a JSON patch from two JSON values
json::diff(j_result, j_original);
// [
//   { &quot;op&quot;:&quot; replace&quot;, &quot;path&quot;: &quot;/baz&quot;, &quot;value&quot;: [&quot;one&quot;, &quot;two&quot;, &quot;three&quot;] },
//   { &quot;op&quot;: &quot;remove&quot;,&quot;path&quot;: &quot;/hello&quot; },
//   { &quot;op&quot;: &quot;add&quot;, &quot;path&quot;: &quot;/foo&quot;, &quot;value&quot;: &quot;bar&quot; }
// ]
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;JSON Merge Patch&lt;/h3&gt; 
&lt;p&gt;The library supports &lt;strong&gt;JSON Merge Patch&lt;/strong&gt; (&lt;a href=&quot;https://tools.ietf.org/html/rfc7386&quot;&gt;RFC 7386&lt;/a&gt;) as a patch format. Instead of using JSON Pointer (see above) to specify values to be manipulated, it describes the changes using a syntax that closely mimics the document being modified.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// a JSON value
json j_document = R&quot;({
  &quot;a&quot;: &quot;b&quot;,
  &quot;c&quot;: {
    &quot;d&quot;: &quot;e&quot;,
    &quot;f&quot;: &quot;g&quot;
  }
})&quot;_json;

// a patch
json j_patch = R&quot;({
  &quot;a&quot;:&quot;z&quot;,
  &quot;c&quot;: {
    &quot;f&quot;: null
  }
})&quot;_json;

// apply the patch
j_document.merge_patch(j_patch);
// {
//  &quot;a&quot;: &quot;z&quot;,
//  &quot;c&quot;: {
//    &quot;d&quot;: &quot;e&quot;
//  }
// }
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Implicit conversions&lt;/h3&gt; 
&lt;p&gt;Supported types can be implicitly converted to JSON values.&lt;/p&gt; 
&lt;p&gt;It is recommended to &lt;strong&gt;NOT USE&lt;/strong&gt; implicit conversions &lt;strong&gt;FROM&lt;/strong&gt; a JSON value. You can find more details about this recommendation &lt;a href=&quot;https://www.github.com/nlohmann/json/issues/958&quot;&gt;here&lt;/a&gt;. You can switch off implicit conversions by defining &lt;code&gt;JSON_USE_IMPLICIT_CONVERSIONS&lt;/code&gt; to &lt;code&gt;0&lt;/code&gt; before including the &lt;code&gt;json.hpp&lt;/code&gt; header. When using CMake, you can also achieve this by setting the option &lt;code&gt;JSON_ImplicitConversions&lt;/code&gt; to &lt;code&gt;OFF&lt;/code&gt;.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// strings
std::string s1 = &quot;Hello, world!&quot;;
json js = s1;
auto s2 = js.get&amp;lt;std::string&amp;gt;();
// NOT RECOMMENDED
std::string s3 = js;
std::string s4;
s4 = js;

// Booleans
bool b1 = true;
json jb = b1;
auto b2 = jb.get&amp;lt;bool&amp;gt;();
// NOT RECOMMENDED
bool b3 = jb;
bool b4;
b4 = jb;

// numbers
int i = 42;
json jn = i;
auto f = jn.get&amp;lt;double&amp;gt;();
// NOT RECOMMENDED
double f2 = jb;
double f3;
f3 = jb;

// etc.
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note that &lt;code&gt;char&lt;/code&gt; types are not automatically converted to JSON strings, but to integer numbers. A conversion to a string must be specified explicitly:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;char ch = &#39;A&#39;;                       // ASCII value 65
json j_default = ch;                 // stores integer number 65
json j_string = std::string(1, ch);  // stores string &quot;A&quot;
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Arbitrary types conversions&lt;/h3&gt; 
&lt;p&gt;Every type can be serialized in JSON, not just STL containers and scalar types. Usually, you would do something along those lines:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;namespace ns {
    // a simple struct to model a person
    struct person {
        std::string name;
        std::string address;
        int age;
    };
}

ns::person p = {&quot;Ned Flanders&quot;, &quot;744 Evergreen Terrace&quot;, 60};

// convert to JSON: copy each value into the JSON object
json j;
j[&quot;name&quot;] = p.name;
j[&quot;address&quot;] = p.address;
j[&quot;age&quot;] = p.age;

// ...

// convert from JSON: copy each value from the JSON object
ns::person p {
    j[&quot;name&quot;].get&amp;lt;std::string&amp;gt;(),
    j[&quot;address&quot;].get&amp;lt;std::string&amp;gt;(),
    j[&quot;age&quot;].get&amp;lt;int&amp;gt;()
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;It works, but that&#39;s quite a lot of boilerplate... Fortunately, there&#39;s a better way:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// create a person
ns::person p {&quot;Ned Flanders&quot;, &quot;744 Evergreen Terrace&quot;, 60};

// conversion: person -&amp;gt; json
json j = p;

std::cout &amp;lt;&amp;lt; j &amp;lt;&amp;lt; std::endl;
// {&quot;address&quot;:&quot;744 Evergreen Terrace&quot;,&quot;age&quot;:60,&quot;name&quot;:&quot;Ned Flanders&quot;}

// conversion: json -&amp;gt; person
auto p2 = j.get&amp;lt;ns::person&amp;gt;();

// that&#39;s it
assert(p == p2);
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Basic usage&lt;/h4&gt; 
&lt;p&gt;To make this work with one of your types, you only need to provide two functions:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;using json = nlohmann::json;

namespace ns {
    void to_json(json&amp;amp; j, const person&amp;amp; p) {
        j = json{{&quot;name&quot;, p.name}, {&quot;address&quot;, p.address}, {&quot;age&quot;, p.age}};
    }

    void from_json(const json&amp;amp; j, person&amp;amp; p) {
        j.at(&quot;name&quot;).get_to(p.name);
        j.at(&quot;address&quot;).get_to(p.address);
        j.at(&quot;age&quot;).get_to(p.age);
    }
} // namespace ns
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;That&#39;s all! When calling the &lt;code&gt;json&lt;/code&gt; constructor with your type, your custom &lt;code&gt;to_json&lt;/code&gt; method will be automatically called. Likewise, when calling &lt;code&gt;get&amp;lt;your_type&amp;gt;()&lt;/code&gt; or &lt;code&gt;get_to(your_type&amp;amp;)&lt;/code&gt;, the &lt;code&gt;from_json&lt;/code&gt; method will be called.&lt;/p&gt; 
&lt;p&gt;Some important things:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Those methods &lt;strong&gt;MUST&lt;/strong&gt; be in your type&#39;s namespace (which can be the global namespace), or the library will not be able to locate them (in this example, they are in namespace &lt;code&gt;ns&lt;/code&gt;, where &lt;code&gt;person&lt;/code&gt; is defined).&lt;/li&gt; 
 &lt;li&gt;Those methods &lt;strong&gt;MUST&lt;/strong&gt; be available (e.g., proper headers must be included) everywhere you use these conversions. Look at &lt;a href=&quot;https://github.com/nlohmann/json/issues/1108&quot;&gt;issue 1108&lt;/a&gt; for errors that may occur otherwise.&lt;/li&gt; 
 &lt;li&gt;When using &lt;code&gt;get&amp;lt;your_type&amp;gt;()&lt;/code&gt;, &lt;code&gt;your_type&lt;/code&gt; &lt;strong&gt;MUST&lt;/strong&gt; be &lt;a href=&quot;https://en.cppreference.com/w/cpp/named_req/DefaultConstructible&quot;&gt;DefaultConstructible&lt;/a&gt;. (There is a way to bypass this requirement described later.)&lt;/li&gt; 
 &lt;li&gt;In function &lt;code&gt;from_json&lt;/code&gt;, use function &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/at/&quot;&gt;&lt;code&gt;at()&lt;/code&gt;&lt;/a&gt; to access the object values rather than &lt;code&gt;operator[]&lt;/code&gt;. In case a key does not exist, &lt;code&gt;at&lt;/code&gt; throws an exception that you can handle, whereas &lt;code&gt;operator[]&lt;/code&gt; exhibits undefined behavior.&lt;/li&gt; 
 &lt;li&gt;You do not need to add serializers or deserializers for STL types like &lt;code&gt;std::vector&lt;/code&gt;: the library already implements these.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h4&gt;Simplify your life with macros&lt;/h4&gt; 
&lt;p&gt;If you just want to serialize/deserialize some structs, the &lt;code&gt;to_json&lt;/code&gt;/&lt;code&gt;from_json&lt;/code&gt; functions can be a lot of boilerplate. There are &lt;a href=&quot;https://json.nlohmann.me/api/macros/#serializationdeserialization-macros&quot;&gt;&lt;strong&gt;several macros&lt;/strong&gt;&lt;/a&gt; to make your life easier as long as you want to use a JSON object as serialization.&lt;/p&gt; 
&lt;p&gt;Which macro to choose depends on whether private member variables need to be accessed, a deserialization is needed, missing values should yield an error or should be replaced by default values, and if derived classes are used. See &lt;a href=&quot;https://json.nlohmann.me/features/arbitrary_types/#simplify-your-life-with-macros&quot;&gt;this overview to choose the right one for your use case&lt;/a&gt;.&lt;/p&gt; 
&lt;h5&gt;Example usage of macros&lt;/h5&gt; 
&lt;p&gt;The &lt;code&gt;to_json&lt;/code&gt;/&lt;code&gt;from_json&lt;/code&gt; functions for the &lt;code&gt;person&lt;/code&gt; struct above can be created with &lt;a href=&quot;https://json.nlohmann.me/api/macros/nlohmann_define_type_non_intrusive/&quot;&gt;&lt;code&gt;NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE&lt;/code&gt;&lt;/a&gt;. In all macros, the first parameter is the name of the class/struct, and all remaining parameters name the members.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;namespace ns {
    NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(person, name, address, age)
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If you want to inherit the &lt;code&gt;person&lt;/code&gt; struct and add a field to it, it can be done with:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;namespace ns {
    struct person_derived : person {
        std::string email;
    };
    
    NLOHMANN_DEFINE_DERIVED_TYPE_NON_INTRUSIVE(person_derived, person, email)
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Here is another example with private members, where &lt;a href=&quot;https://json.nlohmann.me/api/macros/nlohmann_define_type_intrusive/&quot;&gt;&lt;code&gt;NLOHMANN_DEFINE_TYPE_INTRUSIVE&lt;/code&gt;&lt;/a&gt; is needed:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;namespace ns {
    class address {
      private:
        std::string street;
        int housenumber;
        int postcode;
  
      public:
        NLOHMANN_DEFINE_TYPE_INTRUSIVE(address, street, housenumber, postcode)
    };
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Or in case if you use some naming convention that you do not want to expose to JSON:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;namespace ns {
    class address {
      private:
        std::string m_street;
        int m_housenumber;
        int m_postcode;

      public:
        NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_NAMES(address, &quot;street&quot;, m_street,
                                                           &quot;housenumber&quot;, m_housenumber,
                                                           &quot;postcode&quot;, m_postcode)
    };
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;How do I convert third-party types?&lt;/h4&gt; 
&lt;p&gt;This requires a bit more advanced technique. But first, let&#39;s see how this conversion mechanism works:&lt;/p&gt; 
&lt;p&gt;The library uses &lt;strong&gt;JSON Serializers&lt;/strong&gt; to convert types to JSON. The default serializer for &lt;code&gt;nlohmann::json&lt;/code&gt; is &lt;code&gt;nlohmann::adl_serializer&lt;/code&gt; (ADL means &lt;a href=&quot;https://en.cppreference.com/w/cpp/language/adl&quot;&gt;Argument-Dependent Lookup&lt;/a&gt;).&lt;/p&gt; 
&lt;p&gt;It is implemented like this (simplified):&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;template &amp;lt;typename T&amp;gt;
struct adl_serializer {
    static void to_json(json&amp;amp; j, const T&amp;amp; value) {
        // calls the &quot;to_json&quot; method in T&#39;s namespace
    }

    static void from_json(const json&amp;amp; j, T&amp;amp; value) {
        // same thing, but with the &quot;from_json&quot; method
    }
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;This serializer works fine when you have control over the type&#39;s namespace. However, what about &lt;code&gt;boost::optional&lt;/code&gt; or &lt;code&gt;std::filesystem::path&lt;/code&gt; (C++17)? Hijacking the &lt;code&gt;boost&lt;/code&gt; namespace is pretty bad, and it&#39;s illegal to add something other than template specializations to &lt;code&gt;std&lt;/code&gt;...&lt;/p&gt; 
&lt;p&gt;To solve this, you need to add a specialization of &lt;code&gt;adl_serializer&lt;/code&gt; to the &lt;code&gt;nlohmann&lt;/code&gt; namespace, here&#39;s an example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// partial specialization (full specialization works too)
namespace nlohmann {
    template &amp;lt;typename T&amp;gt;
    struct adl_serializer&amp;lt;boost::optional&amp;lt;T&amp;gt;&amp;gt; {
        static void to_json(json&amp;amp; j, const boost::optional&amp;lt;T&amp;gt;&amp;amp; opt) {
            if (opt == boost::none) {
                j = nullptr;
            } else {
              j = *opt; // this will call adl_serializer&amp;lt;T&amp;gt;::to_json which will
                        // find the free function to_json in T&#39;s namespace!
            }
        }

        static void from_json(const json&amp;amp; j, boost::optional&amp;lt;T&amp;gt;&amp;amp; opt) {
            if (j.is_null()) {
                opt = boost::none;
            } else {
                opt = j.get&amp;lt;T&amp;gt;(); // same as above, but with
                                  // adl_serializer&amp;lt;T&amp;gt;::from_json
            }
        }
    };
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;How can I use &lt;code&gt;get()&lt;/code&gt; for non-default constructible/non-copyable types?&lt;/h4&gt; 
&lt;p&gt;There is a way if your type is &lt;a href=&quot;https://en.cppreference.com/w/cpp/named_req/MoveConstructible&quot;&gt;MoveConstructible&lt;/a&gt;. You will need to specialize the &lt;code&gt;adl_serializer&lt;/code&gt; as well, but with a special &lt;code&gt;from_json&lt;/code&gt; overload:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;struct move_only_type {
    move_only_type() = delete;
    move_only_type(int ii): i(ii) {}
    move_only_type(const move_only_type&amp;amp;) = delete;
    move_only_type(move_only_type&amp;amp;&amp;amp;) = default;

    int i;
};

namespace nlohmann {
    template &amp;lt;&amp;gt;
    struct adl_serializer&amp;lt;move_only_type&amp;gt; {
        // note: the return type is no longer &#39;void&#39;, and the method only takes
        // one argument
        static move_only_type from_json(const json&amp;amp; j) {
            return {j.get&amp;lt;int&amp;gt;()};
        }

        // Here&#39;s the catch! You must provide a to_json method! Otherwise, you
        // will not be able to convert move_only_type to json, since you fully
        // specialized adl_serializer on that type
        static void to_json(json&amp;amp; j, move_only_type t) {
            j = t.i;
        }
    };
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;Can I write my own serializer? (Advanced use)&lt;/h4&gt; 
&lt;p&gt;Yes. You might want to take a look at &lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/tests/src/unit-udt.cpp&quot;&gt;&lt;code&gt;unit-udt.cpp&lt;/code&gt;&lt;/a&gt; in the test suite, to see a few examples.&lt;/p&gt; 
&lt;p&gt;If you write your own serializer, you&#39;ll need to do a few things:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;use a different &lt;code&gt;basic_json&lt;/code&gt; alias than &lt;code&gt;nlohmann::json&lt;/code&gt; (the last template parameter of &lt;code&gt;basic_json&lt;/code&gt; is the &lt;code&gt;JSONSerializer&lt;/code&gt;)&lt;/li&gt; 
 &lt;li&gt;use your &lt;code&gt;basic_json&lt;/code&gt; alias (or a template parameter) in all your &lt;code&gt;to_json&lt;/code&gt;/&lt;code&gt;from_json&lt;/code&gt; methods&lt;/li&gt; 
 &lt;li&gt;use &lt;code&gt;nlohmann::to_json&lt;/code&gt; and &lt;code&gt;nlohmann::from_json&lt;/code&gt; when you need ADL&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Here is an example, without simplifications, that only accepts types with a size &amp;lt;= 32, and uses ADL.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// You should use void as a second template argument
// if you don&#39;t need compile-time checks on T
template&amp;lt;typename T, typename SFINAE = typename std::enable_if&amp;lt;sizeof(T) &amp;lt;= 32&amp;gt;::type&amp;gt;
struct less_than_32_serializer {
    template &amp;lt;typename BasicJsonType&amp;gt;
    static void to_json(BasicJsonType&amp;amp; j, T value) {
        // we want to use ADL, and call the correct to_json overload
        using nlohmann::to_json; // this method is called by adl_serializer,
                                 // this is where the magic happens
        to_json(j, value);
    }

    template &amp;lt;typename BasicJsonType&amp;gt;
    static void from_json(const BasicJsonType&amp;amp; j, T&amp;amp; value) {
        // same thing here
        using nlohmann::from_json;
        from_json(j, value);
    }
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Be &lt;strong&gt;very&lt;/strong&gt; careful when reimplementing your serializer, you can stack overflow if you don&#39;t pay attention:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;template &amp;lt;typename T, void&amp;gt;
struct bad_serializer
{
    template &amp;lt;typename BasicJsonType&amp;gt;
    static void to_json(BasicJsonType&amp;amp; j, const T&amp;amp; value) {
      // this calls BasicJsonType::json_serializer&amp;lt;T&amp;gt;::to_json(j, value)
      // if BasicJsonType::json_serializer == bad_serializer ... oops!
      j = value;
    }

    template &amp;lt;typename BasicJsonType&amp;gt;
    static void to_json(const BasicJsonType&amp;amp; j, T&amp;amp; value) {
      // this calls BasicJsonType::json_serializer&amp;lt;T&amp;gt;::from_json(j, value)
      // if BasicJsonType::json_serializer == bad_serializer ... oops!
      value = j.get&amp;lt;T&amp;gt;(); // oops!
    }
};
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Specializing enum conversion&lt;/h3&gt; 
&lt;p&gt;By default, enum values are serialized to JSON as integers. In some cases, this could result in undesired behavior. If an enum is modified or re-ordered after data has been serialized to JSON, the later deserialized JSON data may be undefined or a different enum value than was originally intended.&lt;/p&gt; 
&lt;p&gt;It is possible to more precisely specify how a given enum is mapped to and from JSON as shown below:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// example enum type declaration
enum TaskState {
    TS_STOPPED,
    TS_RUNNING,
    TS_COMPLETED,
    TS_INVALID=-1,
};

// map TaskState values to JSON as strings
NLOHMANN_JSON_SERIALIZE_ENUM( TaskState, {
    {TS_INVALID, nullptr},
    {TS_STOPPED, &quot;stopped&quot;},
    {TS_RUNNING, &quot;running&quot;},
    {TS_COMPLETED, &quot;completed&quot;},
})
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The &lt;code&gt;NLOHMANN_JSON_SERIALIZE_ENUM()&lt;/code&gt; macro declares a set of &lt;code&gt;to_json()&lt;/code&gt; / &lt;code&gt;from_json()&lt;/code&gt; functions for type &lt;code&gt;TaskState&lt;/code&gt; while avoiding repetition and boilerplate serialization code.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// enum to JSON as string
json j = TS_STOPPED;
assert(j == &quot;stopped&quot;);

// json string to enum
json j3 = &quot;running&quot;;
assert(j3.get&amp;lt;TaskState&amp;gt;() == TS_RUNNING);

// undefined json value to enum (where the first map entry above is the default)
json jPi = 3.14;
assert(jPi.get&amp;lt;TaskState&amp;gt;() == TS_INVALID);
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Just as in &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#arbitrary-types-conversions&quot;&gt;Arbitrary Type Conversions&lt;/a&gt; above,&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;NLOHMANN_JSON_SERIALIZE_ENUM()&lt;/code&gt; MUST be declared in your enum type&#39;s namespace (which can be the global namespace), or the library will not be able to locate it, and it will default to integer serialization.&lt;/li&gt; 
 &lt;li&gt;It MUST be available (e.g., proper headers must be included) everywhere you use the conversions.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Other Important points:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;When using &lt;code&gt;get&amp;lt;ENUM_TYPE&amp;gt;()&lt;/code&gt;, undefined JSON values will default to the first pair specified in your map. Select this default pair carefully.&lt;/li&gt; 
 &lt;li&gt;If an enum or JSON value is specified more than once in your map, the first matching occurrence from the top of the map will be returned when converting to or from JSON.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Binary formats (BSON, CBOR, MessagePack, UBJSON, and BJData)&lt;/h3&gt; 
&lt;p&gt;Though JSON is a ubiquitous data format, it is not a very compact format suitable for data exchange, for instance over a network. Hence, the library supports &lt;a href=&quot;https://bsonspec.org&quot;&gt;BSON&lt;/a&gt; (Binary JSON), &lt;a href=&quot;https://cbor.io&quot;&gt;CBOR&lt;/a&gt; (Concise Binary Object Representation), &lt;a href=&quot;https://msgpack.org&quot;&gt;MessagePack&lt;/a&gt;, &lt;a href=&quot;https://ubjson.org&quot;&gt;UBJSON&lt;/a&gt; (Universal Binary JSON Specification) and &lt;a href=&quot;https://neurojson.org/bjdata&quot;&gt;BJData&lt;/a&gt; (Binary JData) to efficiently encode JSON values to byte vectors and to decode such vectors.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// create a JSON value
json j = R&quot;({&quot;compact&quot;: true, &quot;schema&quot;: 0})&quot;_json;

// serialize to BSON
std::vector&amp;lt;std::uint8_t&amp;gt; v_bson = json::to_bson(j);

// 0x1B, 0x00, 0x00, 0x00, 0x08, 0x63, 0x6F, 0x6D, 0x70, 0x61, 0x63, 0x74, 0x00, 0x01, 0x10, 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00

// roundtrip
json j_from_bson = json::from_bson(v_bson);

// serialize to CBOR
std::vector&amp;lt;std::uint8_t&amp;gt; v_cbor = json::to_cbor(j);

// 0xA2, 0x67, 0x63, 0x6F, 0x6D, 0x70, 0x61, 0x63, 0x74, 0xF5, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x00

// roundtrip
json j_from_cbor = json::from_cbor(v_cbor);

// serialize to MessagePack
std::vector&amp;lt;std::uint8_t&amp;gt; v_msgpack = json::to_msgpack(j);

// 0x82, 0xA7, 0x63, 0x6F, 0x6D, 0x70, 0x61, 0x63, 0x74, 0xC3, 0xA6, 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x00

// roundtrip
json j_from_msgpack = json::from_msgpack(v_msgpack);

// serialize to UBJSON
std::vector&amp;lt;std::uint8_t&amp;gt; v_ubjson = json::to_ubjson(j);

// 0x7B, 0x69, 0x07, 0x63, 0x6F, 0x6D, 0x70, 0x61, 0x63, 0x74, 0x54, 0x69, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x69, 0x00, 0x7D

// roundtrip
json j_from_ubjson = json::from_ubjson(v_ubjson);
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The library also supports binary types from BSON, CBOR (byte strings), and MessagePack (bin, ext, fixext). They are stored by default as &lt;code&gt;std::vector&amp;lt;std::uint8_t&amp;gt;&lt;/code&gt; to be processed outside the library.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;// CBOR byte string with payload 0xCAFE
std::vector&amp;lt;std::uint8_t&amp;gt; v = {0x42, 0xCA, 0xFE};

// read value
json j = json::from_cbor(v);

// the JSON value has type binary
j.is_binary(); // true

// get reference to stored binary value
auto&amp;amp; binary = j.get_binary();

// the binary value has no subtype (CBOR has no binary subtypes)
binary.has_subtype(); // false

// access std::vector&amp;lt;std::uint8_t&amp;gt; member functions
binary.size(); // 2
binary[0]; // 0xCA
binary[1]; // 0xFE

// set subtype to 0x10
binary.set_subtype(0x10);

// serialize to MessagePack
auto cbor = json::to_msgpack(j); // 0xD5 (fixext2), 0x10, 0xCA, 0xFE
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Customers&lt;/h2&gt; 
&lt;p&gt;The library is used in multiple projects, applications, operating systems, etc. The list below is not exhaustive, but the result of an internet search. If you know further customers of the library, please let me know, see &lt;a href=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/#contact&quot;&gt;contact&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://json.nlohmann.me/home/customers/&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/docs/mkdocs/docs/images/customers.png&quot; alt=&quot;logos of customers using the library&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Supported compilers&lt;/h2&gt; 
&lt;p&gt;Though it&#39;s 2026 already, the support for C++11 is still a bit sparse. Currently, the following compilers are known to work:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;GCC 4.8 - 14.2 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Clang 3.4 - 21.0 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Apple Clang 9.1 - 16.0 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Intel C++ Compiler 17.0.2 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Nvidia CUDA Compiler 11.0.221 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Microsoft Visual C++ 2017 / Build Tools 15.5.180.51428 (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Microsoft Visual C++ 2019 / Build Tools 16.3.1+1def00d3d (and possibly later)&lt;/li&gt; 
 &lt;li&gt;Microsoft Visual C++ 2022 / Build Tools 19.30.30709.0 (and possibly later)&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;I would be happy to learn about other compilers/versions.&lt;/p&gt; 
&lt;p&gt;Please note:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;GCC 4.8 has a bug &lt;a href=&quot;https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57824&quot;&gt;57824&lt;/a&gt;: multiline raw strings cannot be the arguments to macros. Don&#39;t use multiline raw strings directly in macros with this compiler.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Android defaults to using very old compilers and C++ libraries. To fix this, add the following to your &lt;code&gt;Application.mk&lt;/code&gt;. This will switch to the LLVM C++ library, the Clang compiler, and enable C++11 and other features disabled by default.&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-makefile&quot;&gt;APP_STL := c++_shared
NDK_TOOLCHAIN_VERSION := clang3.6
APP_CPPFLAGS += -frtti -fexceptions
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The code compiles successfully with &lt;a href=&quot;https://developer.android.com/ndk/index.html?hl=ml&quot;&gt;Android NDK&lt;/a&gt;, Revision 9 - 11 (and possibly later) and &lt;a href=&quot;https://www.crystax.net/en/android/ndk&quot;&gt;CrystaX&#39;s Android NDK&lt;/a&gt; version 10.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;For GCC running on MinGW or Android SDK, the error &lt;code&gt;&#39;to_string&#39; is not a member of &#39;std&#39;&lt;/code&gt; (or similarly, for &lt;code&gt;strtod&lt;/code&gt; or &lt;code&gt;strtof&lt;/code&gt;) may occur. Note this is not an issue with the code, but rather with the compiler itself. On Android, see above to build with a newer environment. For MinGW, please refer to &lt;a href=&quot;https://tehsausage.com/mingw-to-string&quot;&gt;this site&lt;/a&gt; and &lt;a href=&quot;https://github.com/nlohmann/json/issues/136&quot;&gt;this discussion&lt;/a&gt; for information on how to fix this bug. For Android NDK using &lt;code&gt;APP_STL := gnustl_static&lt;/code&gt;, please refer to &lt;a href=&quot;https://github.com/nlohmann/json/issues/219&quot;&gt;this discussion&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Unsupported versions of GCC and Clang are rejected by &lt;code&gt;#error&lt;/code&gt; directives. This can be switched off by defining &lt;code&gt;JSON_SKIP_UNSUPPORTED_COMPILER_CHECK&lt;/code&gt;. Note that you can expect no support in this case.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;See the page &lt;a href=&quot;https://json.nlohmann.me/community/quality_assurance&quot;&gt;quality assurance&lt;/a&gt; on the compilers used to check the library in the CI.&lt;/p&gt; 
&lt;h2&gt;Integration&lt;/h2&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/single_include/nlohmann/json.hpp&quot;&gt;&lt;code&gt;json.hpp&lt;/code&gt;&lt;/a&gt; is the single required file in &lt;code&gt;single_include/nlohmann&lt;/code&gt; or &lt;a href=&quot;https://github.com/nlohmann/json/releases&quot;&gt;released here&lt;/a&gt;. You need to add&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cpp&quot;&gt;#include &amp;lt;nlohmann/json.hpp&amp;gt;

// for convenience
using json = nlohmann::json;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;to the files you want to process JSON and set the necessary switches to enable C++11 (e.g., &lt;code&gt;-std=c++11&lt;/code&gt; for GCC and Clang).&lt;/p&gt; 
&lt;p&gt;You can further use file &lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/include/nlohmann/json_fwd.hpp&quot;&gt;&lt;code&gt;include/nlohmann/json_fwd.hpp&lt;/code&gt;&lt;/a&gt; for forward-declarations. The installation of &lt;code&gt;json_fwd.hpp&lt;/code&gt; (as part of cmake&#39;s install step) can be achieved by setting &lt;code&gt;-DJSON_MultipleHeaders=ON&lt;/code&gt;.&lt;/p&gt; 
&lt;h3&gt;CMake&lt;/h3&gt; 
&lt;p&gt;You can also use the &lt;code&gt;nlohmann_json::nlohmann_json&lt;/code&gt; interface target in CMake. This target populates the appropriate usage requirements for &lt;code&gt;INTERFACE_INCLUDE_DIRECTORIES&lt;/code&gt; to point to the appropriate include directories and &lt;code&gt;INTERFACE_COMPILE_FEATURES&lt;/code&gt; for the necessary C++11 flags.&lt;/p&gt; 
&lt;h4&gt;External&lt;/h4&gt; 
&lt;p&gt;To use this library from a CMake project, you can locate it directly with &lt;code&gt;find_package()&lt;/code&gt; and use the namespaced imported target from the generated package configuration:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmake&quot;&gt;# CMakeLists.txt
find_package(nlohmann_json 3.12.0 REQUIRED)
...
add_library(foo ...)
...
target_link_libraries(foo PRIVATE nlohmann_json::nlohmann_json)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The package configuration file, &lt;code&gt;nlohmann_jsonConfig.cmake&lt;/code&gt;, can be used either from an install tree or directly out of the build tree.&lt;/p&gt; 
&lt;h4&gt;Embedded&lt;/h4&gt; 
&lt;p&gt;To embed the library directly into an existing CMake project, place the entire source tree in a subdirectory and call &lt;code&gt;add_subdirectory()&lt;/code&gt; in your &lt;code&gt;CMakeLists.txt&lt;/code&gt; file:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmake&quot;&gt;# Typically you don&#39;t care so much for a third party library&#39;s tests to be
# run from your own project&#39;s code.
set(JSON_BuildTests OFF CACHE INTERNAL &quot;&quot;)

# If you only include this third party in PRIVATE source files, you do not
# need to install it when your main project gets installed.
# set(JSON_Install OFF CACHE INTERNAL &quot;&quot;)

# Don&#39;t use include(nlohmann_json/CMakeLists.txt) since that carries with it
# unintended consequences that will break the build.  It&#39;s generally
# discouraged (although not necessarily well documented as such) to use
# include(...) for pulling in other CMake projects anyways.
add_subdirectory(nlohmann_json)
...
add_library(foo ...)
...
target_link_libraries(foo PRIVATE nlohmann_json::nlohmann_json)
&lt;/code&gt;&lt;/pre&gt; 
&lt;h5&gt;Embedded (FetchContent)&lt;/h5&gt; 
&lt;p&gt;Since CMake v3.11, &lt;a href=&quot;https://cmake.org/cmake/help/v3.11/module/FetchContent.html&quot;&gt;FetchContent&lt;/a&gt; can be used to automatically download a release as a dependency at configure time.&lt;/p&gt; 
&lt;p&gt;Example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmake&quot;&gt;include(FetchContent)

FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz)
FetchContent_MakeAvailable(json)

target_link_libraries(foo PRIVATE nlohmann_json::nlohmann_json)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It is recommended to use the URL approach described above, which is supported as of version 3.10.0. See &lt;a href=&quot;https://json.nlohmann.me/integration/cmake/#fetchcontent&quot;&gt;https://json.nlohmann.me/integration/cmake/#fetchcontent&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;h4&gt;Supporting Both&lt;/h4&gt; 
&lt;p&gt;To allow your project to support either an externally supplied or an embedded JSON library, you can use a pattern akin to the following:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmake&quot;&gt;# Top level CMakeLists.txt
project(FOO)
...
option(FOO_USE_EXTERNAL_JSON &quot;Use an external JSON library&quot; OFF)
...
add_subdirectory(thirdparty)
...
add_library(foo ...)
...
# Note that the namespaced target will always be available regardless of the
# import method
target_link_libraries(foo PRIVATE nlohmann_json::nlohmann_json)
&lt;/code&gt;&lt;/pre&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmake&quot;&gt;# thirdparty/CMakeLists.txt
...
if(FOO_USE_EXTERNAL_JSON)
  find_package(nlohmann_json 3.12.0 REQUIRED)
else()
  set(JSON_BuildTests OFF CACHE INTERNAL &quot;&quot;)
  add_subdirectory(nlohmann_json)
endif()
...
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;code&gt;thirdparty/nlohmann_json&lt;/code&gt; is then a complete copy of this source tree.&lt;/p&gt; 
&lt;h3&gt;Package Managers&lt;/h3&gt; 
&lt;p&gt;Use your favorite &lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/&quot;&gt;&lt;strong&gt;package manager&lt;/strong&gt;&lt;/a&gt; to use the library.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/homebrew.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#homebrew&quot;&gt;&lt;strong&gt;Homebrew&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann-json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/meson.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#meson&quot;&gt;&lt;strong&gt;Meson&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/bazel.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#bazel&quot;&gt;&lt;strong&gt;Bazel&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/conan.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#conan&quot;&gt;&lt;strong&gt;Conan&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/spack.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#spack&quot;&gt;&lt;strong&gt;Spack&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann-json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#hunter&quot;&gt;&lt;strong&gt;Hunter&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/vcpkg.png&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#vcpkg&quot;&gt;&lt;strong&gt;vcpkg&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann-json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#cget&quot;&gt;&lt;strong&gt;cget&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann/json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/swift.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#swift-package-manager&quot;&gt;&lt;strong&gt;Swift Package Manager&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann/json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/nuget.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#nuget&quot;&gt;&lt;strong&gt;Nuget&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann.json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/conda.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#conda&quot;&gt;&lt;strong&gt;Conda&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/macports.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#macports&quot;&gt;&lt;strong&gt;MacPorts&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann-json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/CPM.png&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#cpmcmake&quot;&gt;&lt;strong&gt;cpm.cmake&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;gh:nlohmann/json&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/refs/heads/develop/docs/mkdocs/docs/images/package_managers/xmake.svg?sanitize=true&quot; height=&quot;20&quot; /&gt;&amp;nbsp;&lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/#xmake&quot;&gt;&lt;strong&gt;xmake&lt;/strong&gt;&lt;/a&gt; &lt;code&gt;nlohmann_json&lt;/code&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;The library is part of many package managers. See the &lt;a href=&quot;https://json.nlohmann.me/integration/package_managers/&quot;&gt;&lt;strong&gt;documentation&lt;/strong&gt;&lt;/a&gt; for detailed descriptions and examples.&lt;/p&gt; 
&lt;h3&gt;Pkg-config&lt;/h3&gt; 
&lt;p&gt;If you are using bare Makefiles, you can use &lt;code&gt;pkg-config&lt;/code&gt; to generate the include flags that point to where the library is installed:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;pkg-config nlohmann_json --cflags
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;img align=&quot;right&quot; src=&quot;https://149753425.v2.pressablecdn.com/wp-content/uploads/2009/06/OSIApproved_100X125.png&quot; alt=&quot;OSI approved license&quot; /&gt; 
&lt;p&gt;The class is licensed under the &lt;a href=&quot;https://opensource.org/licenses/MIT&quot;&gt;MIT License&lt;/a&gt;:&lt;/p&gt; 
&lt;p&gt;Copyright © 2013-2026 &lt;a href=&quot;https://nlohmann.me&quot;&gt;Niels Lohmann&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:&lt;/p&gt; 
&lt;p&gt;The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.&lt;/p&gt; 
&lt;p&gt;THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.&lt;/p&gt; 
&lt;hr /&gt; 
&lt;ul&gt; 
 &lt;li&gt;The class contains the UTF-8 Decoder from Bjoern Hoehrmann which is licensed under the &lt;a href=&quot;https://opensource.org/licenses/MIT&quot;&gt;MIT License&lt;/a&gt; (see above). Copyright © 2008-2009 &lt;a href=&quot;https://bjoern.hoehrmann.de/&quot;&gt;Björn Hoehrmann&lt;/a&gt; &lt;a href=&quot;mailto:bjoern@hoehrmann.de&quot;&gt;bjoern@hoehrmann.de&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;The class contains a slightly modified version of the Grisu2 algorithm from Florian Loitsch which is licensed under the &lt;a href=&quot;https://opensource.org/licenses/MIT&quot;&gt;MIT License&lt;/a&gt; (see above). Copyright © 2009 &lt;a href=&quot;https://florian.loitsch.com/&quot;&gt;Florian Loitsch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;The class contains a copy of &lt;a href=&quot;https://nemequ.github.io/hedley/&quot;&gt;Hedley&lt;/a&gt; from Evan Nemerson which is licensed as &lt;a href=&quot;https://creativecommons.org/publicdomain/zero/1.0/&quot;&gt;CC0-1.0&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;The class contains parts of &lt;a href=&quot;https://github.com/abseil/abseil-cpp&quot;&gt;Google Abseil&lt;/a&gt; which is licensed under the &lt;a href=&quot;https://opensource.org/licenses/Apache-2.0&quot;&gt;Apache 2.0 License&lt;/a&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;img align=&quot;right&quot; src=&quot;https://git.fsfe.org/reuse/reuse-ci/raw/branch/master/reuse-horizontal.png&quot; alt=&quot;REUSE Software&quot; /&gt; 
&lt;p&gt;The library is compliant to version 3.3 of the &lt;a href=&quot;https://reuse.software&quot;&gt;&lt;strong&gt;REUSE specification&lt;/strong&gt;&lt;/a&gt;:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Every source file contains an SPDX copyright header.&lt;/li&gt; 
 &lt;li&gt;The full text of all licenses used in the repository can be found in the &lt;code&gt;LICENSES&lt;/code&gt; folder.&lt;/li&gt; 
 &lt;li&gt;File &lt;code&gt;.reuse/dep5&lt;/code&gt; contains an overview of all files&#39; copyrights and licenses.&lt;/li&gt; 
 &lt;li&gt;Run &lt;code&gt;pipx run reuse lint&lt;/code&gt; to verify the project&#39;s REUSE compliance and &lt;code&gt;pipx run reuse spdx&lt;/code&gt; to generate a SPDX SBOM.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Contact&lt;/h2&gt; 
&lt;p&gt;If you have questions regarding the library, I would like to invite you to &lt;a href=&quot;https://github.com/nlohmann/json/issues/new/choose&quot;&gt;open an issue at GitHub&lt;/a&gt;. Please describe your request, problem, or question as detailed as possible, and also mention the version of the library you are using as well as the version of your compiler and operating system. Opening an issue at GitHub allows other users and contributors to this library to collaborate. For instance, I have little experience with MSVC, and most issues in this regard have been solved by a growing community. If you have a look at the &lt;a href=&quot;https://github.com/nlohmann/json/issues?q=is%3Aissue+is%3Aclosed&quot;&gt;closed issues&lt;/a&gt;, you will see that we react quite timely in most cases.&lt;/p&gt; 
&lt;p&gt;Only if your request would contain confidential information, please &lt;a href=&quot;mailto:mail@nlohmann.me&quot;&gt;send me an email&lt;/a&gt;. For encrypted messages, please use &lt;a href=&quot;https://keybase.io/nlohmann/pgp_keys.asc&quot;&gt;this key&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Security&lt;/h2&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/nlohmann/json/commits&quot;&gt;Commits by Niels Lohmann&lt;/a&gt; and &lt;a href=&quot;https://github.com/nlohmann/json/releases&quot;&gt;releases&lt;/a&gt; are signed with this &lt;a href=&quot;https://keybase.io/nlohmann/pgp_keys.asc?fingerprint=797167ae41c0a6d9232e48457f3cea63ae251b69&quot;&gt;PGP Key&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Thanks&lt;/h2&gt; 
&lt;p&gt;I deeply appreciate the help of the following people.&lt;/p&gt; 
&lt;img src=&quot;https://raw.githubusercontent.com/nlohmann/json/develop/docs/avatars.png&quot; align=&quot;right&quot; alt=&quot;GitHub avatars of the contributors&quot; /&gt; 
&lt;ol&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Teemperor&quot;&gt;Teemperor&lt;/a&gt; implemented CMake support and lcov integration, realized escape and Unicode handling in the string parser, and fixed the JSON serialization.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/elliotgoodrich&quot;&gt;elliotgoodrich&lt;/a&gt; fixed an issue with double deletion in the iterator classes.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kirkshoop&quot;&gt;kirkshoop&lt;/a&gt; made the iterators of the class composable to other libraries.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wanwc&quot;&gt;wancw&lt;/a&gt; fixed a bug that hindered the class to compile with Clang.&lt;/li&gt; 
 &lt;li&gt;Tomas Åblad found a bug in the iterator implementation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jrandall&quot;&gt;Joshua C. Randall&lt;/a&gt; fixed a bug in the floating-point serialization.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/aburgh&quot;&gt;Aaron Burghardt&lt;/a&gt; implemented code to parse streams incrementally. Furthermore, he greatly improved the parser class by allowing the definition of a filter function to discard undesired elements while parsing.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dkopecek&quot;&gt;Daniel Kopeček&lt;/a&gt; fixed a bug in the compilation with GCC 5.0.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Florianjw&quot;&gt;Florian Weber&lt;/a&gt; fixed a bug in and improved the performance of the comparison operators.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/EricMCornelius&quot;&gt;Eric Cornelius&lt;/a&gt; pointed out a bug in the handling with NaN and infinity values. He also improved the performance of the string escaping.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/likebeta&quot;&gt;易思龙&lt;/a&gt; implemented a conversion from anonymous enums.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kepkin&quot;&gt;kepkin&lt;/a&gt; patiently pushed forward the support for Microsoft Visual Studio.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gregmarr&quot;&gt;gregmarr&lt;/a&gt; simplified the implementation of reverse iterators and helped with numerous hints and improvements. In particular, he pushed forward the implementation of user-defined types.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/caiovlp&quot;&gt;Caio Luppi&lt;/a&gt; fixed a bug in the Unicode handling.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dariomt&quot;&gt;dariomt&lt;/a&gt; fixed some typos in the examples.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/d-frey&quot;&gt;Daniel Frey&lt;/a&gt; cleaned up some pointers and implemented exception-safe memory allocation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ColinH&quot;&gt;Colin Hirsch&lt;/a&gt; took care of a small namespace issue.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/whoshuu&quot;&gt;Huu Nguyen&lt;/a&gt; corrected a variable name in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/silverweed&quot;&gt;Silverweed&lt;/a&gt; overloaded &lt;code&gt;parse()&lt;/code&gt; to accept an rvalue reference.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dariomt&quot;&gt;dariomt&lt;/a&gt; fixed a subtlety in MSVC type support and implemented the &lt;code&gt;get_ref()&lt;/code&gt; function to get a reference to stored values.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ZahlGraf&quot;&gt;ZahlGraf&lt;/a&gt; added a workaround that allows compilation using Android NDK.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/whackashoe&quot;&gt;whackashoe&lt;/a&gt; replaced a function that was marked as unsafe by Visual Studio.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/406345&quot;&gt;406345&lt;/a&gt; fixed two small warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/glenfe&quot;&gt;Glen Fernandes&lt;/a&gt; noted a potential portability problem in the &lt;code&gt;has_mapped_type&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nibroc&quot;&gt;Corbin Hughes&lt;/a&gt; fixed some typos in the contribution guidelines.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/twelsby&quot;&gt;twelsby&lt;/a&gt; fixed the array subscript operator, an issue that failed the MSVC build, and floating-point parsing/dumping. He further added support for unsigned integer numbers and implemented better roundtrip support for parsed numbers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vog&quot;&gt;Volker Diels-Grabsch&lt;/a&gt; fixed a link in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/msm-&quot;&gt;msm-&lt;/a&gt; added support for American Fuzzy Lop.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Annihil&quot;&gt;Annihil&lt;/a&gt; fixed an example in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Themercee&quot;&gt;Themercee&lt;/a&gt; noted a wrong URL in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/lv-zheng&quot;&gt;Lv Zheng&lt;/a&gt; fixed a namespace issue with &lt;code&gt;int64_t&lt;/code&gt; and &lt;code&gt;uint64_t&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/abc100m&quot;&gt;abc100m&lt;/a&gt; analyzed the issues with GCC 4.8 and proposed a &lt;a href=&quot;https://github.com/nlohmann/json/pull/212&quot;&gt;partial solution&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zewt&quot;&gt;zewt&lt;/a&gt; added useful notes to the README file about Android.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/robertmrk&quot;&gt;Róbert Márki&lt;/a&gt; added a fix to use move iterators and improved the integration via CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ChrisKitching&quot;&gt;Chris Kitching&lt;/a&gt; cleaned up the CMake files.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/06needhamt&quot;&gt;Tom Needham&lt;/a&gt; fixed a subtle bug with MSVC 2015 which was also proposed by &lt;a href=&quot;https://github.com/Epidal&quot;&gt;Michael K.&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/thelostt&quot;&gt;Mário Feroldi&lt;/a&gt; fixed a small typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/duncanwerner&quot;&gt;duncanwerner&lt;/a&gt; found a really embarrassing performance regression in the 2.0.0 release.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dtoma&quot;&gt;Damien&lt;/a&gt; fixed one of the last conversion warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/t-b&quot;&gt;Thomas Braun&lt;/a&gt; fixed a warning in a test case and adjusted MSVC calls in the CI.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/theodelrieu&quot;&gt;Théo DELRIEU&lt;/a&gt; patiently and constructively oversaw the long way toward &lt;a href=&quot;https://github.com/nlohmann/json/issues/290&quot;&gt;iterator-range parsing&lt;/a&gt;. He also implemented the magic behind the serialization/deserialization of user-defined types and split the single header file into smaller chunks.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/5tefan&quot;&gt;Stefan&lt;/a&gt; fixed a minor issue in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vasild&quot;&gt;Vasil Dimov&lt;/a&gt; fixed the documentation regarding conversions from &lt;code&gt;std::multiset&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ChristophJud&quot;&gt;ChristophJud&lt;/a&gt; overworked the CMake files to ease project inclusion.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vpetrigo&quot;&gt;Vladimir Petrigo&lt;/a&gt; made a SFINAE hack more readable and added Visual Studio 17 to the build matrix.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/seeekr&quot;&gt;Denis Andrejew&lt;/a&gt; fixed a grammar issue in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/palacaze&quot;&gt;Pierre-Antoine Lacaze&lt;/a&gt; found a subtle bug in the &lt;code&gt;dump()&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TurpentineDistillery&quot;&gt;TurpentineDistillery&lt;/a&gt; pointed to &lt;a href=&quot;https://en.cppreference.com/w/cpp/locale/locale/classic&quot;&gt;&lt;code&gt;std::locale::classic()&lt;/code&gt;&lt;/a&gt; to avoid too much locale joggling, found some nice performance improvements in the parser, improved the benchmarking code, and realized locale-independent number parsing and printing.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/cgzones&quot;&gt;cgzones&lt;/a&gt; had an idea how to fix the Coverity scan.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jaredgrubb&quot;&gt;Jared Grubb&lt;/a&gt; silenced a nasty documentation warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/qwename&quot;&gt;Yixin Zhang&lt;/a&gt; fixed an integer overflow check.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Bosswestfalen&quot;&gt;Bosswestfalen&lt;/a&gt; merged two iterator classes into a smaller one.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Daniel599&quot;&gt;Daniel599&lt;/a&gt; helped to get Travis to execute the tests with Clang&#39;s sanitizers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vjon&quot;&gt;Jonathan Lee&lt;/a&gt; fixed an example in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gnzlbg&quot;&gt;gnzlbg&lt;/a&gt; supported the implementation of user-defined types.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/qis&quot;&gt;Alexej Harm&lt;/a&gt; helped to get the user-defined types working with Visual Studio.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jaredgrubb&quot;&gt;Jared Grubb&lt;/a&gt; supported the implementation of user-defined types.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/EnricoBilla&quot;&gt;EnricoBilla&lt;/a&gt; noted a typo in an example.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/horenmar&quot;&gt;Martin Hořeňovský&lt;/a&gt; found a way for a 2x speedup for the compilation time of the test suite.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ukhegg&quot;&gt;ukhegg&lt;/a&gt; found proposed an improvement for the examples section.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rswanson-ihi&quot;&gt;rswanson-ihi&lt;/a&gt; noted a typo in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/stanmihai4&quot;&gt;Mihai Stan&lt;/a&gt; fixed a bug in the comparison with &lt;code&gt;nullptr&lt;/code&gt;s.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tusharpm&quot;&gt;Tushar Maheshwari&lt;/a&gt; added &lt;a href=&quot;https://github.com/sakra/cotire&quot;&gt;cotire&lt;/a&gt; support to speed up the compilation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TedLyngmo&quot;&gt;TedLyngmo&lt;/a&gt; noted a typo in the README, removed unnecessary bit arithmetic, and fixed some &lt;code&gt;-Weffc++&lt;/code&gt; warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/krzysztofwos&quot;&gt;Krzysztof Woś&lt;/a&gt; made exceptions more visible.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ftillier&quot;&gt;ftillier&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tinloaf&quot;&gt;tinloaf&lt;/a&gt; made sure all pushed warnings are properly popped.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Fytch&quot;&gt;Fytch&lt;/a&gt; found a bug in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Type1J&quot;&gt;Jay Sistar&lt;/a&gt; implemented a Meson build description.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/HenryRLee&quot;&gt;Henry Lee&lt;/a&gt; fixed a warning in ICC and improved the iterator implementation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vthiery&quot;&gt;Vincent Thiery&lt;/a&gt; maintains a package for the Conan package manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/koemeet&quot;&gt;Steffen&lt;/a&gt; fixed a potential issue with MSVC and &lt;code&gt;std::min&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Chocobo1&quot;&gt;Mike Tzou&lt;/a&gt; fixed some typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/amrcode&quot;&gt;amrcode&lt;/a&gt; noted misleading documentation about comparison of floats.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/olegendo&quot;&gt;Oleg Endo&lt;/a&gt; reduced the memory consumption by replacing &lt;code&gt;&amp;lt;iostream&amp;gt;&lt;/code&gt; with &lt;code&gt;&amp;lt;iosfwd&amp;gt;&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dan-42&quot;&gt;dan-42&lt;/a&gt; cleaned up the CMake files to simplify including/reusing of the library.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/himikof&quot;&gt;Nikita Ofitserov&lt;/a&gt; allowed for moving values from initializer lists.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wincent&quot;&gt;Greg Hurrell&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/DmitryKuk&quot;&gt;Dmitry Kukovinets&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kbthomp1&quot;&gt;kbthomp1&lt;/a&gt; fixed an issue related to the Intel OSX compiler.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/daixtrose&quot;&gt;Markus Werle&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/WebProdPP&quot;&gt;WebProdPP&lt;/a&gt; fixed a subtle error in a precondition check.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/leha-bot&quot;&gt;Alex&lt;/a&gt; noted an error in a code sample.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tdegeus&quot;&gt;Tom de Geus&lt;/a&gt; reported some warnings with ICC and helped to fix them.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pjkundert&quot;&gt;Perry Kundert&lt;/a&gt; simplified reading from input streams.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sonulohani&quot;&gt;Sonu Lohani&lt;/a&gt; fixed a small compilation error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jseward&quot;&gt;Jamie Seward&lt;/a&gt; fixed all MSVC warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eld00d&quot;&gt;Nate Vargas&lt;/a&gt; added a Doxygen tag file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pvleuven&quot;&gt;pvleuven&lt;/a&gt; helped to fix a warning in ICC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/crea7or&quot;&gt;Pavel&lt;/a&gt; helped to fix some warnings in MSVC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jseward&quot;&gt;Jamie Seward&lt;/a&gt; avoided unnecessary string copies in &lt;code&gt;find()&lt;/code&gt; and &lt;code&gt;count()&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Itja&quot;&gt;Mitja&lt;/a&gt; fixed some typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jowr&quot;&gt;Jorrit Wronski&lt;/a&gt; updated the Hunter package links.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TinyTinni&quot;&gt;Matthias Möller&lt;/a&gt; added a &lt;code&gt;.natvis&lt;/code&gt; for the MSVC debug view.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/bogemic&quot;&gt;bogemic&lt;/a&gt; fixed some C++17 deprecation warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/erengy&quot;&gt;Eren Okka&lt;/a&gt; fixed some MSVC warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/abolz&quot;&gt;abolz&lt;/a&gt; integrated the Grisu2 algorithm for proper floating-point formatting, allowing more roundtrip checks to succeed.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Pipeliner&quot;&gt;Vadim Evard&lt;/a&gt; fixed a Markdown issue in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zerodefect&quot;&gt;zerodefect&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kaidokert&quot;&gt;Kert&lt;/a&gt; allowed to template the string type in the serialization and added the possibility to override the exceptional behavior.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mark-99&quot;&gt;mark-99&lt;/a&gt; helped fix an ICC error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/patrikhuber&quot;&gt;Patrik Huber&lt;/a&gt; fixed links in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/johnfb&quot;&gt;johnfb&lt;/a&gt; found a bug in the implementation of CBOR&#39;s indefinite length strings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pfultz2&quot;&gt;Paul Fultz II&lt;/a&gt; added a note on the cget package manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wla80&quot;&gt;Wilson Lin&lt;/a&gt; made the integration section of the README more concise.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ralfbielig&quot;&gt;RalfBielig&lt;/a&gt; detected and fixed a memory leak in the parser callback.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/agrianius&quot;&gt;agrianius&lt;/a&gt; allowed dumping JSON to an alternative string type.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ktonon&quot;&gt;Kevin Tonon&lt;/a&gt; overworked the C++11 compiler checks in CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ax3l&quot;&gt;Axel Huebl&lt;/a&gt; simplified a CMake check and added support for the &lt;a href=&quot;https://spack.io&quot;&gt;Spack package manager&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/coryan&quot;&gt;Carlos O&#39;Ryan&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jammehcow&quot;&gt;James Upjohn&lt;/a&gt; fixed a version number in the compilers section.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/chuckatkins&quot;&gt;Chuck Atkins&lt;/a&gt; adjusted the CMake files to the CMake packaging guidelines and provided documentation for the CMake integration.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dns13&quot;&gt;Jan Schöppach&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/martin-mfg&quot;&gt;martin-mfg&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TinyTinni&quot;&gt;Matthias Möller&lt;/a&gt; removed the dependency from &lt;code&gt;std::stringstream&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/agrianius&quot;&gt;agrianius&lt;/a&gt; added code to use alternative string implementations.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Daniel599&quot;&gt;Daniel599&lt;/a&gt; allowed to use more algorithms with the &lt;code&gt;items()&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jrakow&quot;&gt;Julius Rakow&lt;/a&gt; fixed the Meson include directory and fixed the links to &lt;a href=&quot;https://cppreference.com&quot;&gt;cppreference.com&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sonulohani&quot;&gt;Sonu Lohani&lt;/a&gt; fixed the compilation with MSVC 2015 in debug mode.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grembo&quot;&gt;grembo&lt;/a&gt; fixed the test suite and re-enabled several test cases.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/simnalamburt&quot;&gt;Hyeon Kim&lt;/a&gt; introduced the macro &lt;code&gt;JSON_INTERNAL_CATCH&lt;/code&gt; to control the exception handling inside the library.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/thyu&quot;&gt;thyu&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/LEgregius&quot;&gt;David Guthrie&lt;/a&gt; fixed a subtle compilation error with Clang 3.4.2.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dennisfischer&quot;&gt;Dennis Fischer&lt;/a&gt; allowed to call &lt;code&gt;find_package&lt;/code&gt; without installing the library.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/simnalamburt&quot;&gt;Hyeon Kim&lt;/a&gt; fixed an issue with a double macro definition.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rivertam&quot;&gt;Ben Berman&lt;/a&gt; made some error messages more understandable.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zakalibit&quot;&gt;zakalibit&lt;/a&gt; fixed a compilation problem with the Intel C++ compiler.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mandreyel&quot;&gt;mandreyel&lt;/a&gt; fixed a compilation problem.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/koponomarenko&quot;&gt;Kostiantyn Ponomarenko&lt;/a&gt; added version and license information to the Meson build file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/henryiii&quot;&gt;Henry Schreiner&lt;/a&gt; added support for GCC 4.8.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/knilch0r&quot;&gt;knilch&lt;/a&gt; made sure the test suite does not stall when run in the wrong directory.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/antonioborondo&quot;&gt;Antonio Borondo&lt;/a&gt; fixed an MSVC 2017 warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dgendreau&quot;&gt;Dan Gendreau&lt;/a&gt; implemented the &lt;code&gt;NLOHMANN_JSON_SERIALIZE_ENUM&lt;/code&gt; macro to quickly define an enum/JSON mapping.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/efp&quot;&gt;efp&lt;/a&gt; added line and column information to parse errors.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/julian-becker&quot;&gt;julian-becker&lt;/a&gt; added BSON support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pratikpc&quot;&gt;Pratik Chowdhury&lt;/a&gt; added support for structured bindings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/davedissian&quot;&gt;David Avedissian&lt;/a&gt; added support for Clang 5.0.1 (PS4 version).&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dumarjo&quot;&gt;Jonathan Dumaresq&lt;/a&gt; implemented an input adapter to read from &lt;code&gt;FILE*&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kjpus&quot;&gt;kjpus&lt;/a&gt; fixed a link in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/manu-chroma&quot;&gt;Manvendra Singh&lt;/a&gt; fixed a typo in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ziggurat29&quot;&gt;ziggurat29&lt;/a&gt; fixed an MSVC warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/SylvainCorlay&quot;&gt;Sylvain Corlay&lt;/a&gt; added code to avoid an issue with MSVC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mefyl&quot;&gt;mefyl&lt;/a&gt; fixed a bug when JSON was parsed from an input stream.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mpoquet&quot;&gt;Millian Poquet&lt;/a&gt; allowed to install the library via Meson.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/moodboom&quot;&gt;Michael Behrns-Miller&lt;/a&gt; found an issue with a missing namespace.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/naszta&quot;&gt;Nasztanovics Ferenc&lt;/a&gt; fixed a compilation issue with libc 2.12.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/andreas-schwab&quot;&gt;Andreas Schwab&lt;/a&gt; fixed the endian conversion.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Mark-Dunning&quot;&gt;Mark-Dunning&lt;/a&gt; fixed a warning in MSVC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/garethsb-sony&quot;&gt;Gareth Sylvester-Bradley&lt;/a&gt; added &lt;code&gt;operator/&lt;/code&gt; for JSON Pointers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/johnmarkwayve&quot;&gt;John-Mark&lt;/a&gt; noted a missing header.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/xvitaly&quot;&gt;Vitaly Zaitsev&lt;/a&gt; fixed compilation with GCC 9.0.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/stac47&quot;&gt;Laurent Stacul&lt;/a&gt; fixed compilation with GCC 9.0.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/iwanders&quot;&gt;Ivor Wanders&lt;/a&gt; helped to reduce the CMake requirement to version 3.1.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/njlr&quot;&gt;njlr&lt;/a&gt; updated the Buckaroo instructions.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/lieff&quot;&gt;Lion&lt;/a&gt; fixed a compilation issue with GCC 7 on CentOS.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nickaein&quot;&gt;Isaac Nickaein&lt;/a&gt; improved the integer serialization performance and implemented the &lt;code&gt;contains()&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/past-due&quot;&gt;past-due&lt;/a&gt; suppressed an unfixable warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/elvisoric&quot;&gt;Elvis Oric&lt;/a&gt; improved Meson support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Afforix&quot;&gt;Matěj Plch&lt;/a&gt; fixed an example in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wythe&quot;&gt;Mark Beckwith&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/scinart&quot;&gt;scinart&lt;/a&gt; fixed a bug in the serializer.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pboettch&quot;&gt;Patrick Boettcher&lt;/a&gt; implemented &lt;code&gt;push_back()&lt;/code&gt; and &lt;code&gt;pop_back()&lt;/code&gt; for JSON Pointers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nicoddemus&quot;&gt;Bruno Oliveira&lt;/a&gt; added support for Conda.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/skypjack&quot;&gt;Michele Caini&lt;/a&gt; fixed links in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/hnkb&quot;&gt;Hani&lt;/a&gt; documented how to install the library with NuGet.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wythe&quot;&gt;Mark Beckwith&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/yann-morin-1998&quot;&gt;yann-morin-1998&lt;/a&gt; helped to reduce the CMake requirement to version 3.1.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/podsvirov&quot;&gt;Konstantin Podsvirov&lt;/a&gt; maintains a package for the MSYS2 software distro.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/remyabel&quot;&gt;remyabel&lt;/a&gt; added GNUInstallDirs to the CMake files.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/taylorhoward92&quot;&gt;Taylor Howard&lt;/a&gt; fixed a unit test.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Macr0Nerd&quot;&gt;Gabe Ron&lt;/a&gt; implemented the &lt;code&gt;to_string&lt;/code&gt; method.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/heavywatal&quot;&gt;Watal M. Iwasaki&lt;/a&gt; fixed a Clang warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/onqtam&quot;&gt;Viktor Kirilov&lt;/a&gt; switched the unit tests from &lt;a href=&quot;https://github.com/philsquared/Catch&quot;&gt;Catch&lt;/a&gt; to &lt;a href=&quot;https://github.com/onqtam/doctest&quot;&gt;doctest&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ejcjason&quot;&gt;Juncheng E&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tete17&quot;&gt;tete17&lt;/a&gt; fixed a bug in the &lt;code&gt;contains&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Xav83&quot;&gt;Xav83&lt;/a&gt; fixed some cppcheck warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/0xflotus&quot;&gt;0xflotus&lt;/a&gt; fixed some typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/chris0x44&quot;&gt;Christian Deneke&lt;/a&gt; added a const version of &lt;code&gt;json_pointer::back&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/crazyjul&quot;&gt;Julien Hamaide&lt;/a&gt; made the &lt;code&gt;items()&lt;/code&gt; function work with custom string types.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nemequ&quot;&gt;Evan Nemerson&lt;/a&gt; updated fixed a bug in Hedley and updated this library accordingly.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/flopp&quot;&gt;Florian Pigorsch&lt;/a&gt; fixed a lot of typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/cbegue&quot;&gt;Camille Bégué&lt;/a&gt; fixed an issue in the conversion from &lt;code&gt;std::pair&lt;/code&gt; and &lt;code&gt;std::tuple&lt;/code&gt; to &lt;code&gt;json&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/AnthonyVH&quot;&gt;Anthony VH&lt;/a&gt; fixed a compile error in an enum deserialization.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ua-code-dragon&quot;&gt;Yuriy Vountesmery&lt;/a&gt; noted a subtle bug in a preprocessor check.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dota17&quot;&gt;Chen&lt;/a&gt; fixed numerous issues in the library.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/aokellermann&quot;&gt;Antony Kellermann&lt;/a&gt; added a CI step for GCC 10.1.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gistrec&quot;&gt;Alex&lt;/a&gt; fixed an MSVC warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rvjr&quot;&gt;Rainer&lt;/a&gt; proposed an improvement in the floating-point serialization in CBOR.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/FrancoisChabot&quot;&gt;Francois Chabot&lt;/a&gt; made performance improvements in the input adapters.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ArthurSonzogni&quot;&gt;Arthur Sonzogni&lt;/a&gt; documented how the library can be included via &lt;code&gt;FetchContent&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rmisev&quot;&gt;Rimas Misevičius&lt;/a&gt; fixed an error message.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/alexandermyasnikov&quot;&gt;Alexander Myasnikov&lt;/a&gt; fixed some examples and a link in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/uhoreg&quot;&gt;Hubert Chathi&lt;/a&gt; made CMake&#39;s version config file architecture-independent.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/OmnipotentEntity&quot;&gt;OmnipotentEntity&lt;/a&gt; implemented the binary values for CBOR, MessagePack, BSON, and UBJSON.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ArtemSarmini&quot;&gt;ArtemSarmini&lt;/a&gt; fixed a compilation issue with GCC 10 and fixed a leak.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sea-kg&quot;&gt;Evgenii Sopov&lt;/a&gt; integrated the library to the wsjcpp package manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/linev&quot;&gt;Sergey Linev&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/magamig&quot;&gt;Miguel Magalhães&lt;/a&gt; fixed the year in the copyright.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/garethsb-sony&quot;&gt;Gareth Sylvester-Bradley&lt;/a&gt; fixed a compilation issue with MSVC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/alex-weej&quot;&gt;Alexander “weej” Jones&lt;/a&gt; fixed an example in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Coeur&quot;&gt;Antoine Cœur&lt;/a&gt; fixed some typos in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jothepro&quot;&gt;jothepro&lt;/a&gt; updated links to the Hunter package.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kastiglione&quot;&gt;Dave Lee&lt;/a&gt; fixed a link in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Klaim&quot;&gt;Joël Lamotte&lt;/a&gt; added instruction for using Build2&#39;s package manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pauljurczak&quot;&gt;Paul Jurczak&lt;/a&gt; fixed an example in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sonulohani&quot;&gt;Sonu Lohani&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gocarlos&quot;&gt;Carlos Gomes Martinho&lt;/a&gt; updated the Conan package source.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/podsvirov&quot;&gt;Konstantin Podsvirov&lt;/a&gt; fixed the MSYS2 package documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Tridacnid&quot;&gt;Tridacnid&lt;/a&gt; improved the CMake tests.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/MBalszun&quot;&gt;Michael&lt;/a&gt; fixed MSVC warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/quentin-dev&quot;&gt;Quentin Barbarat&lt;/a&gt; fixed an example in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/XyFreak&quot;&gt;XyFreak&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TotalCaesar659&quot;&gt;TotalCaesar659&lt;/a&gt; fixed links in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tanuj208&quot;&gt;Tanuj Garg&lt;/a&gt; improved the fuzzer coverage for UBSAN input.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/AODQ&quot;&gt;AODQ&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jwittbrodt&quot;&gt;jwittbrodt&lt;/a&gt; made &lt;code&gt;NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE&lt;/code&gt; inline.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pfeatherstone&quot;&gt;pfeatherstone&lt;/a&gt; improved the upper bound of arguments of the &lt;code&gt;NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE&lt;/code&gt;/&lt;code&gt;NLOHMANN_DEFINE_TYPE_INTRUSIVE&lt;/code&gt; macros.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jprochazk&quot;&gt;Jan Procházka&lt;/a&gt; fixed a bug in the CBOR parser for binary and string values.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/T0b1-iOS&quot;&gt;T0b1-iOS&lt;/a&gt; fixed a bug in the new hash implementation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/matthewbauer&quot;&gt;Matthew Bauer&lt;/a&gt; adjusted the CBOR writer to create tags for binary subtypes.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gatopeich&quot;&gt;gatopeich&lt;/a&gt; implemented an ordered map container for &lt;code&gt;nlohmann::ordered_json&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ericonr&quot;&gt;Érico Nogueira Rolim&lt;/a&gt; added support for pkg-config.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/KonanM&quot;&gt;KonanM&lt;/a&gt; proposed an implementation for the &lt;code&gt;NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE&lt;/code&gt;/&lt;code&gt;NLOHMANN_DEFINE_TYPE_INTRUSIVE&lt;/code&gt; macros.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gracicot&quot;&gt;Guillaume Racicot&lt;/a&gt; implemented &lt;code&gt;string_view&lt;/code&gt; support and allowed C++20 support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/alexreinking&quot;&gt;Alex Reinking&lt;/a&gt; improved CMake support for &lt;code&gt;FetchContent&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ssbssa&quot;&gt;Hannes Domani&lt;/a&gt; provided a GDB pretty printer.&lt;/li&gt; 
 &lt;li&gt;Lars Wirzenius reviewed the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ongjunjie&quot;&gt;Jun Jie&lt;/a&gt; fixed a compiler path in the CMake scripts.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rbuch&quot;&gt;Ronak Buch&lt;/a&gt; fixed typos in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/karzhenkov&quot;&gt;Alexander Karzhenkov&lt;/a&gt; fixed a move constructor and the Travis builds.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/leozz37&quot;&gt;Leonardo Lima&lt;/a&gt; added CPM.Cmake support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jbzdarkid&quot;&gt;Joseph Blackman&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/YarikTH&quot;&gt;Yaroslav&lt;/a&gt; updated doctest and implemented unit tests.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/globberwops&quot;&gt;Martin Stump&lt;/a&gt; fixed a bug in the CMake files.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jasujm&quot;&gt;Jaakko Moisio&lt;/a&gt; fixed a bug in the input adapters.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/bl-ue&quot;&gt;bl-ue&lt;/a&gt; fixed some Markdown issues in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wawiesel&quot;&gt;William A. Wieselquist&lt;/a&gt; fixed an example from the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/abbaswasim&quot;&gt;abbaswasim&lt;/a&gt; fixed an example from the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/remyjette&quot;&gt;Remy Jette&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/frasermarlow&quot;&gt;Fraser&lt;/a&gt; fixed the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/musicinmybrain&quot;&gt;Ben Beasley&lt;/a&gt; updated doctest.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/doronbehar&quot;&gt;Doron Behar&lt;/a&gt; fixed pkg-config.pc.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/raduteo&quot;&gt;raduteo&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/theShmoo&quot;&gt;David Pfahler&lt;/a&gt; added the possibility to compile the library without I/O support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mortenfyhn&quot;&gt;Morten Fyhn Amundsen&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jpl-mac&quot;&gt;jpl-mac&lt;/a&gt; allowed treating the library as a system header in CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jasmcaus&quot;&gt;Jason Dsouza&lt;/a&gt; fixed the indentation of the CMake file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/offa&quot;&gt;offa&lt;/a&gt; added a link to Conan Center to the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TotalCaesar659&quot;&gt;TotalCaesar659&lt;/a&gt; updated the links in the documentation to use HTTPS.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/grafail&quot;&gt;Rafail Giavrimis&lt;/a&gt; fixed the Google Benchmark default branch.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ldionne&quot;&gt;Louis Dionne&lt;/a&gt; fixed a conversion operator.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/justanotheranonymoususer&quot;&gt;justanotheranonymoususer&lt;/a&gt; made the examples in the README more consistent.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Finkman&quot;&gt;Finkman&lt;/a&gt; suppressed some &lt;code&gt;-Wfloat-equal&lt;/code&gt; warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/fhuberts&quot;&gt;Ferry Huberts&lt;/a&gt; fixed &lt;code&gt;-Wswitch-enum&lt;/code&gt; warnings.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/senyai&quot;&gt;Arseniy Terekhin&lt;/a&gt; made the GDB pretty-printer robust against unset variable names.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/amirmasoudabdol&quot;&gt;Amir Masoud Abdol&lt;/a&gt; updated the Homebrew command as nlohmann/json is now in homebrew-core.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Hallot&quot;&gt;Hallot&lt;/a&gt; fixed some &lt;code&gt;-Wextra-semi-stmt warnings&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gcerretani&quot;&gt;Giovanni Cerretani&lt;/a&gt; fixed &lt;code&gt;-Wunused&lt;/code&gt; warnings on &lt;code&gt;JSON_DIAGNOSTICS&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Kapeli&quot;&gt;Bogdan Popescu&lt;/a&gt; hosts the &lt;a href=&quot;https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/JSON_for_Modern_C%2B%2B&quot;&gt;docset&lt;/a&gt; for offline documentation viewers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/carlsmedstad&quot;&gt;Carl Smedstad&lt;/a&gt; fixed an assertion error when using &lt;code&gt;JSON_DIAGNOSTICS&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/miikka75&quot;&gt;miikka75&lt;/a&gt; provided an important fix to compile C++17 code with Clang 9.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kernie&quot;&gt;Maarten Becker&lt;/a&gt; fixed a warning for shadowed variables.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/axnsan12&quot;&gt;Cristi Vîjdea&lt;/a&gt; fixed typos in the &lt;code&gt;operator[]&lt;/code&gt; documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/axic&quot;&gt;Alex Beregszaszi&lt;/a&gt; fixed spelling mistakes in comments.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/striezel&quot;&gt;Dirk Stolle&lt;/a&gt; fixed typos in documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/daniel-kun&quot;&gt;Daniel Albuschat&lt;/a&gt; corrected the parameter name in the &lt;code&gt;parse&lt;/code&gt; documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Prince-Mendiratta&quot;&gt;Prince Mendiratta&lt;/a&gt; fixed a link to the FAQ.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/falbrechtskirchinger&quot;&gt;Florian Albrechtskirchinger&lt;/a&gt; implemented &lt;code&gt;std::string_view&lt;/code&gt; support for object keys and made dozens of other improvements.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/fangq&quot;&gt;Qianqian Fang&lt;/a&gt; implemented the Binary JData (BJData) format.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/pketelsen&quot;&gt;pketelsen&lt;/a&gt; added macros &lt;code&gt;NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT&lt;/code&gt; and &lt;code&gt;NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/DarkZeros&quot;&gt;DarkZeros&lt;/a&gt; adjusted to code to not clash with Arduino defines.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/flagarde&quot;&gt;flagarde&lt;/a&gt; fixed the output of &lt;code&gt;meta()&lt;/code&gt; for MSVC.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gcerretani&quot;&gt;Giovanni Cerretani&lt;/a&gt; fixed a check for &lt;code&gt;std::filesystem&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rex4539&quot;&gt;Dimitris Apostolou&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/fhuberts&quot;&gt;Ferry Huberts&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/heinemml&quot;&gt;Michael Nosthoff&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jhnlee&quot;&gt;JungHoon Lee&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/fdiblen&quot;&gt;Faruk D.&lt;/a&gt; fixed the CITATION.CFF file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/puffetto&quot;&gt;Andrea Cocito&lt;/a&gt; added a clarification on macro usage to the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kkarbowiak&quot;&gt;Krzysiek Karbowiak&lt;/a&gt; refactored the tests to use &lt;code&gt;CHECK_THROWS_WITH_AS&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/prncoprs&quot;&gt;Chaoqi Zhang&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ivanovmp&quot;&gt;ivanovmp&lt;/a&gt; fixed a whitespace error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/KsaNL&quot;&gt;KsaNL&lt;/a&gt; fixed a build error when including &lt;code&gt;&amp;lt;windows.h&amp;gt;&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Tachi107&quot;&gt;Andrea Pappacoda&lt;/a&gt; moved &lt;code&gt;.pc&lt;/code&gt; and &lt;code&gt;.cmake&lt;/code&gt; files to &lt;code&gt;share&lt;/code&gt; directory.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wolfv&quot;&gt;Wolf Vollprecht&lt;/a&gt; added the &lt;code&gt;patch_inplace&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jez&quot;&gt;Jake Zimmerman&lt;/a&gt; highlighted common usage patterns in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/NN---&quot;&gt;NN&lt;/a&gt; added the Visual Studio output directory to &lt;code&gt;.gitignore&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/romainreignier&quot;&gt;Romain Reignier&lt;/a&gt; improved the performance of the vector output adapter.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Mike-Leo-Smith&quot;&gt;Mike&lt;/a&gt; fixed the &lt;code&gt;std::iterator_traits&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zxey&quot;&gt;Richard Hozák&lt;/a&gt; added macro &lt;code&gt;JSON_NO_ENUM&lt;/code&gt; to disable default enum conversions.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/vakokako&quot;&gt;vakokako&lt;/a&gt; fixed tests when compiling with C++20.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/alexweej&quot;&gt;Alexander “weej” Jones&lt;/a&gt; fixed an example in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eli-schwartz&quot;&gt;Eli Schwartz&lt;/a&gt; added more files to the &lt;code&gt;include.zip&lt;/code&gt; archive.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kevinlul&quot;&gt;Kevin Lu&lt;/a&gt; fixed a compilation issue when typedefs with certain names were present.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/luxe&quot;&gt;Trevor Hickey&lt;/a&gt; improved the description of an example.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jef&quot;&gt;Jef LeCompte&lt;/a&gt; updated the year in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ahamez&quot;&gt;Alexandre Hamez&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mbadhan&quot;&gt;Maninderpal Badhan&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kevin--&quot;&gt;kevin--&lt;/a&gt; added a note to an example in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wx257osn2&quot;&gt;I&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Lord-Kamina&quot;&gt;Gregorio Litenstein&lt;/a&gt; fixed the Clang detection.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/andoma&quot;&gt;Andreas Smas&lt;/a&gt; added a Doozer badge.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/wancw&quot;&gt;WanCW&lt;/a&gt; fixed the string conversion with Clang.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zhaohuaxishi&quot;&gt;zhaohuaxishi&lt;/a&gt; fixed a Doxygen error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/emvivre&quot;&gt;emvivre&lt;/a&gt; removed an invalid parameter from CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Dobiasd&quot;&gt;Tobias Hermann&lt;/a&gt; fixed a link in the README file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/traits&quot;&gt;Michael&lt;/a&gt; fixed a warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ryanjmulder&quot;&gt;Ryan Mulder&lt;/a&gt; added &lt;code&gt;ensure_ascii&lt;/code&gt; to the &lt;code&gt;dump&lt;/code&gt; function.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/murinicanor&quot;&gt;Muri Nicanor&lt;/a&gt; fixed the &lt;code&gt;sed&lt;/code&gt; discovery in the Makefile.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dgavedissian&quot;&gt;David Avedissian&lt;/a&gt; implemented SFINAE-friendly &lt;code&gt;iterator_traits&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/aqnouch&quot;&gt;AQNOUCH Mohammed&lt;/a&gt; fixed a typo in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/garethsb&quot;&gt;Gareth Sylvester-Bradley&lt;/a&gt; added &lt;code&gt;operator/=&lt;/code&gt; and &lt;code&gt;operator/&lt;/code&gt; to construct JSON pointers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mykter&quot;&gt;Michael Macnair&lt;/a&gt; added support for afl-fuzz testing.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/berkus&quot;&gt;Berkus Decker&lt;/a&gt; fixed a typo in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/effolkronium&quot;&gt;Illia Polishchuk&lt;/a&gt; improved the CMake testing.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eltociear&quot;&gt;Ikko Ashimine&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/barcode&quot;&gt;Raphael Grimm&lt;/a&gt; added the possibility to define a custom base class.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tocic&quot;&gt;tocic&lt;/a&gt; fixed typos in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Vertexwahn&quot;&gt;Vertexwahn&lt;/a&gt; added Bazel build support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/striezel&quot;&gt;Dirk Stolle&lt;/a&gt; fixed typos in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/DavidKorczynski&quot;&gt;DavidKorczynski&lt;/a&gt; added a CIFuzz CI GitHub action.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Finkman&quot;&gt;Finkman&lt;/a&gt; fixed the debug pretty-printer.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/floriansegginger&quot;&gt;Florian Segginger&lt;/a&gt; bumped the years in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/haadfida&quot;&gt;haadfida&lt;/a&gt; cleaned up the badges of used services.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ArsenArsen&quot;&gt;Arsen Arsenović&lt;/a&gt; fixed a build error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/theevilone45&quot;&gt;theevilone45&lt;/a&gt; fixed a typo in a CMake file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/trofi&quot;&gt;Sergei Trofimovich&lt;/a&gt; fixed the custom allocator support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/joycebrum&quot;&gt;Joyce&lt;/a&gt; fixed some security issues in the GitHub workflows.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/njakob&quot;&gt;Nicolas Jakob&lt;/a&gt; add vcpkg version badge.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Tomerkm&quot;&gt;Tomerkm&lt;/a&gt; added tests.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tusooa&quot;&gt;No.&lt;/a&gt; fixed the use of &lt;code&gt;get&amp;lt;&amp;gt;&lt;/code&gt; calls.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tarolling&quot;&gt;taro&lt;/a&gt; fixed a typo in the &lt;code&gt;CODEOWNERS&lt;/code&gt; file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/eltociear&quot;&gt;Ikko Eltociear Ashimine&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/felixonmars&quot;&gt;Felix Yan&lt;/a&gt; fixed a typo in the README.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/HO-COOH&quot;&gt;HO-COOH&lt;/a&gt; fixed a parenthesis in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/iwanders&quot;&gt;Ivor Wanders&lt;/a&gt; fixed the examples to catch exception by &lt;code&gt;const&amp;amp;&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/miny1233&quot;&gt;miny1233&lt;/a&gt; fixed a parenthesis in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tomalakgeretkal&quot;&gt;tomalakgeretkal&lt;/a&gt; fixed a compilation error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ALF-ONE&quot;&gt;alferov&lt;/a&gt; fixed a compilation error.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/craigscott-crascit&quot;&gt;Craig Scott&lt;/a&gt; fixed a deprecation warning in CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ZeronSix&quot;&gt;Vyacheslav Zhdanovskiy&lt;/a&gt; added macros for serialization-only types.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mwestphal&quot;&gt;Mathieu Westphal&lt;/a&gt; fixed typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/scribam&quot;&gt;scribam&lt;/a&gt; fixed the MinGW workflow.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/aleksproger&quot;&gt;Aleksei Sapitskii&lt;/a&gt; added support for Apple&#39;s Swift Package Manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/bebuch&quot;&gt;Benjamin Buch&lt;/a&gt; fixed the installation path in CMake.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/colbychaskell&quot;&gt;Colby Haskell&lt;/a&gt; clarified the parse error message in case a file cannot be opened.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TheJCAB&quot;&gt;Juan Carlos Arevalo Baeza&lt;/a&gt; fixed the enum conversion.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/ALF-ONE&quot;&gt;alferov&lt;/a&gt; fixed a version in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/serge-s&quot;&gt;ss&lt;/a&gt; fixed the amalgamation call.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/AniketDhemare&quot;&gt;AniketDhemare&lt;/a&gt; fixed a version in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/philip-paul-mueller&quot;&gt;Philip Müller&lt;/a&gt; fixed an example.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/LeilaShcheglova&quot;&gt;Leila Shcheglova&lt;/a&gt; fixed a warning in a test.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/alexprabhat99&quot;&gt;Alex Prabhat Bara&lt;/a&gt; fixed a function name in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/laterlaugh&quot;&gt;laterlaugh&lt;/a&gt; fixed some typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/MrJia1997&quot;&gt;Yuanhao Jia&lt;/a&gt; fixed the GDB pretty printer.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Fallen-Breath&quot;&gt;Fallen_Breath&lt;/a&gt; fixed an example for JSON Pointer.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/tsnl&quot;&gt;Nikhil Idiculla&lt;/a&gt; fixed some typos.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/gmyers18&quot;&gt;Griffin Myers&lt;/a&gt; updated the Natvis file.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/thetimr&quot;&gt;thetimr&lt;/a&gt; fixed a typo in the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zerocukor287&quot;&gt;Balazs Erseki&lt;/a&gt; fixed a URL in the contribution guidelines.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/rotolof&quot;&gt;Niccolò Iardella&lt;/a&gt; added &lt;code&gt;NLOHMANN_DEFINE_DERIVED_TYPE_*&lt;/code&gt; macros.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/iboB&quot;&gt;Borislav Stanimirov&lt;/a&gt; allowed overriding the CMake target name.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/captaincrutches&quot;&gt;Captain Crutches&lt;/a&gt; made &lt;code&gt;iterator_proxy_value&lt;/code&gt; a &lt;code&gt;std::forward_iterator&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/fsandhei&quot;&gt;Fredrik Sandhei&lt;/a&gt; added type conversion support for &lt;code&gt;std::optional&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/jordan-hoang&quot;&gt;jh96&lt;/a&gt; added exceptions when &lt;code&gt;nullptr&lt;/code&gt; is passed to &lt;code&gt;parse&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/StuartGorman&quot;&gt;Stuart Gorman&lt;/a&gt; fixed number parsing when &lt;code&gt;EINTR&lt;/code&gt; set in &lt;code&gt;errno&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/dcbaker&quot;&gt;Dylan Baker&lt;/a&gt; generated a pkg-config file that follows the pkg-config conventions.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/TianyiChen&quot;&gt;Tianyi Chen&lt;/a&gt; optimized the binary &lt;code&gt;get_number&lt;/code&gt; implementation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/peng-wang-cn&quot;&gt;peng-wang-cn&lt;/a&gt; added type conversion support for multidimensional arrays.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/EinarsNG&quot;&gt;Einars Netlis-Galejs&lt;/a&gt; added &lt;code&gt;ONLY_SERIALIZE&lt;/code&gt; for &lt;code&gt;NLOHMANN_DEFINE_DERIVED_TYPE_*&lt;/code&gt; macros.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/mering&quot;&gt;Marcel&lt;/a&gt; removed &lt;code&gt;alwayslink=True&lt;/code&gt; Bazel flag.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/hnampally&quot;&gt;Harinath Nampally&lt;/a&gt; added diagnostic positions to exceptions.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/NissimBendanan&quot;&gt;Nissim Armand Ben Danan&lt;/a&gt; fixed &lt;code&gt;NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT&lt;/code&gt; with an empty JSON instance.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/codenut&quot;&gt;Michael Valladolid&lt;/a&gt; added support for BSON uint64 serialization/deserialization.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nikhilreddydev&quot;&gt;Nikhil&lt;/a&gt; updated the documentation.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/nebkat&quot;&gt;Nebojša Cvetković&lt;/a&gt; added support for BJDATA optimized binary array type.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/sushshring&quot;&gt;Sushrut Shringarputale&lt;/a&gt; added support for diagnostic positions.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/kimci86&quot;&gt;kimci86&lt;/a&gt; templated to &lt;code&gt;NLOHMANN_DEFINE_TYPE&lt;/code&gt; macros to also support &lt;code&gt;ordered_json&lt;/code&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/richardtop&quot;&gt;Richard Topchii&lt;/a&gt; added support for VisionOS in the Swift Package Manager.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/Robadob&quot;&gt;Robert Chisholm&lt;/a&gt; fixed a typo.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/zjyhjqs&quot;&gt;zjyhjqs&lt;/a&gt; added CPack support.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/bitFiedler&quot;&gt;bitFiedler&lt;/a&gt; made GDB pretty printer work with Python 3.8.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/LocutusOfBorg&quot;&gt;Gianfranco Costamagna&lt;/a&gt; fixed a compiler warning.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/risa2000&quot;&gt;risa2000&lt;/a&gt; made &lt;code&gt;std::filesystem::path&lt;/code&gt; conversion to/from UTF-8 encoded string explicit.&lt;/li&gt; 
&lt;/ol&gt; 
&lt;p&gt;Thanks a lot for helping out! Please &lt;a href=&quot;mailto:mail@nlohmann.me&quot;&gt;let me know&lt;/a&gt; if I forgot someone.&lt;/p&gt; 
&lt;h2&gt;Used third-party tools&lt;/h2&gt; 
&lt;p&gt;The library itself consists of a single header file licensed under the MIT license. However, it is built, tested, documented, and whatnot using a lot of third-party tools and services. Thanks a lot!&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/edlund/amalgamate&quot;&gt;&lt;strong&gt;amalgamate.py - Amalgamate C source and header files&lt;/strong&gt;&lt;/a&gt; to create a single header file&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://lcamtuf.coredump.cx/afl/&quot;&gt;&lt;strong&gt;American fuzzy lop&lt;/strong&gt;&lt;/a&gt; for fuzz testing&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.appveyor.com&quot;&gt;&lt;strong&gt;AppVeyor&lt;/strong&gt;&lt;/a&gt; for &lt;a href=&quot;https://ci.appveyor.com/project/nlohmann/json&quot;&gt;continuous integration&lt;/a&gt; on Windows&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://astyle.sourceforge.net&quot;&gt;&lt;strong&gt;Artistic Style&lt;/strong&gt;&lt;/a&gt; for automatic source code indentation&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://clang.llvm.org&quot;&gt;&lt;strong&gt;Clang&lt;/strong&gt;&lt;/a&gt; for compilation with code sanitizers&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://cmake.org&quot;&gt;&lt;strong&gt;CMake&lt;/strong&gt;&lt;/a&gt; for build automation&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.codacy.com&quot;&gt;&lt;strong&gt;Codacy&lt;/strong&gt;&lt;/a&gt; for further &lt;a href=&quot;https://app.codacy.com/gh/nlohmann/json/dashboard&quot;&gt;code analysis&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://coveralls.io&quot;&gt;&lt;strong&gt;Coveralls&lt;/strong&gt;&lt;/a&gt; to measure &lt;a href=&quot;https://coveralls.io/github/nlohmann/json&quot;&gt;code coverage&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://scan.coverity.com&quot;&gt;&lt;strong&gt;Coverity Scan&lt;/strong&gt;&lt;/a&gt; for &lt;a href=&quot;https://scan.coverity.com/projects/nlohmann-json&quot;&gt;static analysis&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://cppcheck.sourceforge.net&quot;&gt;&lt;strong&gt;cppcheck&lt;/strong&gt;&lt;/a&gt; for static analysis&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/onqtam/doctest&quot;&gt;&lt;strong&gt;doctest&lt;/strong&gt;&lt;/a&gt; for the unit tests&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/skywinder/github-changelog-generator&quot;&gt;&lt;strong&gt;GitHub Changelog Generator&lt;/strong&gt;&lt;/a&gt; to generate the &lt;a href=&quot;https://github.com/nlohmann/json/raw/develop/ChangeLog.md&quot;&gt;ChangeLog&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/google/benchmark&quot;&gt;&lt;strong&gt;Google Benchmark&lt;/strong&gt;&lt;/a&gt; to implement the benchmarks&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://nemequ.github.io/hedley/&quot;&gt;&lt;strong&gt;Hedley&lt;/strong&gt;&lt;/a&gt; to avoid re-inventing several compiler-agnostic feature macros&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/linux-test-project/lcov&quot;&gt;&lt;strong&gt;lcov&lt;/strong&gt;&lt;/a&gt; to process coverage information and create an HTML view&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://llvm.org/docs/LibFuzzer.html&quot;&gt;&lt;strong&gt;libFuzzer&lt;/strong&gt;&lt;/a&gt; to implement fuzz testing for OSS-Fuzz&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://squidfunk.github.io/mkdocs-material/&quot;&gt;&lt;strong&gt;Material for MkDocs&lt;/strong&gt;&lt;/a&gt; for the style of the documentation site&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.mkdocs.org&quot;&gt;&lt;strong&gt;MkDocs&lt;/strong&gt;&lt;/a&gt; for the documentation site&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/google/oss-fuzz&quot;&gt;&lt;strong&gt;OSS-Fuzz&lt;/strong&gt;&lt;/a&gt; for continuous fuzz testing of the library (&lt;a href=&quot;https://github.com/google/oss-fuzz/tree/master/projects/json&quot;&gt;project repository&lt;/a&gt;)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://probot.github.io&quot;&gt;&lt;strong&gt;Probot&lt;/strong&gt;&lt;/a&gt; for automating maintainer tasks such as closing stale issues, requesting missing information, or detecting toxic comments.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://valgrind.org&quot;&gt;&lt;strong&gt;Valgrind&lt;/strong&gt;&lt;/a&gt; to check for correct memory management&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Notes&lt;/h2&gt; 
&lt;h3&gt;Character encoding&lt;/h3&gt; 
&lt;p&gt;The library supports &lt;strong&gt;Unicode input&lt;/strong&gt; as follows:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Only &lt;strong&gt;UTF-8&lt;/strong&gt; encoded input is supported, which is the default encoding for JSON according to &lt;a href=&quot;https://tools.ietf.org/html/rfc8259.html#section-8.1&quot;&gt;RFC 8259&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;std::u16string&lt;/code&gt; and &lt;code&gt;std::u32string&lt;/code&gt; can be parsed, assuming UTF-16 and UTF-32 encoding, respectively. These encodings are not supported when reading from files or other input containers.&lt;/li&gt; 
 &lt;li&gt;Other encodings such as Latin-1 or ISO 8859-1 are &lt;strong&gt;not&lt;/strong&gt; supported and will yield parse or serialization errors.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.unicode.org/faq/private_use.html#nonchar1&quot;&gt;Unicode noncharacters&lt;/a&gt; will not be replaced by the library.&lt;/li&gt; 
 &lt;li&gt;Invalid surrogates (e.g., incomplete pairs such as &lt;code&gt;\uDEAD&lt;/code&gt;) will yield parse errors.&lt;/li&gt; 
 &lt;li&gt;The strings stored in the library are UTF-8 encoded. When using the default string type (&lt;code&gt;std::string&lt;/code&gt;), note that its length/size functions return the number of stored bytes rather than the number of characters or glyphs.&lt;/li&gt; 
 &lt;li&gt;When you store strings with different encodings in the library, calling &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/dump/&quot;&gt;&lt;code&gt;dump()&lt;/code&gt;&lt;/a&gt; may throw an exception unless &lt;code&gt;json::error_handler_t::replace&lt;/code&gt; or &lt;code&gt;json::error_handler_t::ignore&lt;/code&gt; are used as error handlers.&lt;/li&gt; 
 &lt;li&gt;To store wide strings (e.g., &lt;code&gt;std::wstring&lt;/code&gt;), you need to convert them to a UTF-8 encoded &lt;code&gt;std::string&lt;/code&gt; before, see &lt;a href=&quot;https://json.nlohmann.me/home/faq/#wide-string-handling&quot;&gt;an example&lt;/a&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Comments in JSON&lt;/h3&gt; 
&lt;p&gt;This library does not support comments by default. It does so for three reasons:&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt; &lt;p&gt;Comments are not part of the &lt;a href=&quot;https://tools.ietf.org/html/rfc8259&quot;&gt;JSON specification&lt;/a&gt;. You may argue that &lt;code&gt;//&lt;/code&gt; or &lt;code&gt;/* */&lt;/code&gt; are allowed in JavaScript, but JSON is not JavaScript.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;This was not an oversight: Douglas Crockford &lt;a href=&quot;https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr&quot;&gt;wrote on this&lt;/a&gt; in May 2012:&lt;/p&gt; 
  &lt;blockquote&gt; 
   &lt;p&gt;I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. I know that the lack of comments makes some people sad, but it shouldn&#39;t.&lt;/p&gt; 
   &lt;p&gt;Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser.&lt;/p&gt; 
  &lt;/blockquote&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;It is dangerous for interoperability if some libraries would add comment support while others don&#39;t. Please check &lt;a href=&quot;https://tools.ietf.org/html/draft-iab-protocol-maintenance-01&quot;&gt;The Harmful Consequences of the Robustness Principle&lt;/a&gt; on this.&lt;/p&gt; &lt;/li&gt; 
&lt;/ol&gt; 
&lt;p&gt;However, you can set set parameter &lt;code&gt;ignore_comments&lt;/code&gt; to true in the &lt;code&gt;parse&lt;/code&gt; function to ignore &lt;code&gt;//&lt;/code&gt; or &lt;code&gt;/* */&lt;/code&gt; comments. Comments will then be treated as whitespace.&lt;/p&gt; 
&lt;h3&gt;Trailing commas&lt;/h3&gt; 
&lt;p&gt;The JSON specification does not allow trailing commas in arrays and objects, and hence this library is treating them as parsing errors by default.&lt;/p&gt; 
&lt;p&gt;Like comments, you can set parameter &lt;code&gt;ignore_trailing_commas&lt;/code&gt; to true in the &lt;code&gt;parse&lt;/code&gt; function to ignore trailing commas in arrays and objects. Note that a single comma as the only content of the array or object (&lt;code&gt;[,]&lt;/code&gt; or &lt;code&gt;{,}&lt;/code&gt;) is not allowed, and multiple trailing commas (&lt;code&gt;[1,,]&lt;/code&gt;) are not allowed either.&lt;/p&gt; 
&lt;p&gt;This library does not add trailing commas when serializing JSON data.&lt;/p&gt; 
&lt;p&gt;For more information, see &lt;a href=&quot;https://nigeltao.github.io/blog/2021/json-with-commas-comments.html&quot;&gt;JSON With Commas and Comments (JWCC)&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Order of object keys&lt;/h3&gt; 
&lt;p&gt;By default, the library does not preserve the &lt;strong&gt;insertion order of object elements&lt;/strong&gt;. This is standards-compliant, as the &lt;a href=&quot;https://tools.ietf.org/html/rfc8259.html&quot;&gt;JSON standard&lt;/a&gt; defines objects as &quot;an unordered collection of zero or more name/value pairs&quot;.&lt;/p&gt; 
&lt;p&gt;If you do want to preserve the insertion order, you can try the type &lt;a href=&quot;https://github.com/nlohmann/json/issues/2179&quot;&gt;&lt;code&gt;nlohmann::ordered_json&lt;/code&gt;&lt;/a&gt;. Alternatively, you can use a more sophisticated ordered map like &lt;a href=&quot;https://github.com/Tessil/ordered-map&quot;&gt;&lt;code&gt;tsl::ordered_map&lt;/code&gt;&lt;/a&gt; (&lt;a href=&quot;https://github.com/nlohmann/json/issues/546#issuecomment-304447518&quot;&gt;integration&lt;/a&gt;) or &lt;a href=&quot;https://github.com/nlohmann/fifo_map&quot;&gt;&lt;code&gt;nlohmann::fifo_map&lt;/code&gt;&lt;/a&gt; (&lt;a href=&quot;https://github.com/nlohmann/json/issues/485#issuecomment-333652309&quot;&gt;integration&lt;/a&gt;).&lt;/p&gt; 
&lt;p&gt;See the &lt;a href=&quot;https://json.nlohmann.me/features/object_order/&quot;&gt;&lt;strong&gt;documentation on object order&lt;/strong&gt;&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;h3&gt;Memory Release&lt;/h3&gt; 
&lt;p&gt;We checked with Valgrind and the Address Sanitizer (ASAN) that there are no memory leaks.&lt;/p&gt; 
&lt;p&gt;If you find that a parsing program with this library does not release memory, please consider the following case, and it may be unrelated to this library.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Your program is compiled with glibc.&lt;/strong&gt; There is a tunable threshold that glibc uses to decide whether to actually return memory to the system or whether to cache it for later reuse. If in your program you make lots of small allocations and those small allocations are not a contiguous block and are presumably below the threshold, then they will not get returned to the OS. Here is a related issue &lt;a href=&quot;https://github.com/nlohmann/json/issues/1924&quot;&gt;#1924&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Further notes&lt;/h3&gt; 
&lt;ul&gt; 
 &lt;li&gt;The code contains numerous debug &lt;strong&gt;assertions&lt;/strong&gt; which can be switched off by defining the preprocessor macro &lt;code&gt;NDEBUG&lt;/code&gt;, see the &lt;a href=&quot;https://en.cppreference.com/w/cpp/error/assert&quot;&gt;documentation of &lt;code&gt;assert&lt;/code&gt;&lt;/a&gt;. In particular, note &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/operator%5B%5D/&quot;&gt;&lt;code&gt;operator[]&lt;/code&gt;&lt;/a&gt; implements &lt;strong&gt;unchecked access&lt;/strong&gt; for const objects: If the given key is not present, the behavior is undefined (think of a dereferenced null pointer) and yields an &lt;a href=&quot;https://github.com/nlohmann/json/issues/289&quot;&gt;assertion failure&lt;/a&gt; if assertions are switched on. If you are not sure whether an element in an object exists, use checked access with the &lt;a href=&quot;https://json.nlohmann.me/api/basic_json/at/&quot;&gt;&lt;code&gt;at()&lt;/code&gt; function&lt;/a&gt;. Furthermore, you can define &lt;code&gt;JSON_ASSERT(x)&lt;/code&gt; to replace calls to &lt;code&gt;assert(x)&lt;/code&gt;. See the &lt;a href=&quot;https://json.nlohmann.me/features/assertions/&quot;&gt;&lt;strong&gt;documentation on runtime assertions&lt;/strong&gt;&lt;/a&gt; for more information.&lt;/li&gt; 
 &lt;li&gt;As the exact number type is not defined in the &lt;a href=&quot;https://tools.ietf.org/html/rfc8259.html&quot;&gt;JSON specification&lt;/a&gt;, this library tries to choose the best fitting C++ number type automatically. As a result, the type &lt;code&gt;double&lt;/code&gt; may be used to store numbers which may yield &lt;a href=&quot;https://github.com/nlohmann/json/issues/181&quot;&gt;&lt;strong&gt;floating-point exceptions&lt;/strong&gt;&lt;/a&gt; in certain rare situations if floating-point exceptions have been unmasked in the calling code. These exceptions are not caused by the library and need to be fixed in the calling code, such as by re-masking the exceptions prior to calling library functions.&lt;/li&gt; 
 &lt;li&gt;The code can be compiled without C++ &lt;strong&gt;runtime type identification&lt;/strong&gt; features; that is, you can use the &lt;code&gt;-fno-rtti&lt;/code&gt; compiler flag.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Exceptions&lt;/strong&gt; are used widely within the library. They can, however, be switched off with either using the compiler flag &lt;code&gt;-fno-exceptions&lt;/code&gt; or by defining the symbol &lt;code&gt;JSON_NOEXCEPTION&lt;/code&gt;. In this case, exceptions are replaced by &lt;code&gt;abort()&lt;/code&gt; calls. You can further control this behavior by defining &lt;code&gt;JSON_THROW_USER&lt;/code&gt; (overriding &lt;code&gt;throw&lt;/code&gt;), &lt;code&gt;JSON_TRY_USER&lt;/code&gt; (overriding &lt;code&gt;try&lt;/code&gt;), and &lt;code&gt;JSON_CATCH_USER&lt;/code&gt; (overriding &lt;code&gt;catch&lt;/code&gt;). Note that &lt;code&gt;JSON_THROW_USER&lt;/code&gt; should leave the current scope (e.g., by throwing or aborting), as continuing after it may yield undefined behavior. Note the explanatory &lt;a href=&quot;https://en.cppreference.com/w/cpp/error/exception/what&quot;&gt;&lt;code&gt;what()&lt;/code&gt;&lt;/a&gt; string of exceptions is not available for MSVC if exceptions are disabled, see &lt;a href=&quot;https://github.com/nlohmann/json/discussions/2824&quot;&gt;#2824&lt;/a&gt;. See the &lt;a href=&quot;https://json.nlohmann.me/home/exceptions/&quot;&gt;&lt;strong&gt;documentation of exceptions&lt;/strong&gt;&lt;/a&gt; for more information.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Execute unit tests&lt;/h2&gt; 
&lt;p&gt;To compile and run the tests, you need to execute&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;mkdir build
cd build
cmake .. -DJSON_BuildTests=On
cmake --build .
ctest --output-on-failure
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Note that during the &lt;code&gt;ctest&lt;/code&gt; stage, several JSON test files are downloaded from an &lt;a href=&quot;https://github.com/nlohmann/json_test_data&quot;&gt;external repository&lt;/a&gt;. If policies forbid downloading artifacts during testing, you can download the files yourself and pass the directory with the test files via &lt;code&gt;-DJSON_TestDataDirectory=path&lt;/code&gt; to CMake. Then, no Internet connectivity is required. See &lt;a href=&quot;https://github.com/nlohmann/json/issues/2189&quot;&gt;issue #2189&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;p&gt;If the testdata is not found, several test suites will fail like this:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;===============================================================================
json/tests/src/make_test_data_available.hpp:21:
TEST CASE:  check test suite is downloaded

json/tests/src/make_test_data_available.hpp:23: FATAL ERROR: REQUIRE( utils::check_testsuite_downloaded() ) is NOT correct!
  values: REQUIRE( false )
  logged: Test data not found in &#39;json/cmake-build-debug/json_test_data&#39;.
          Please execute target &#39;download_test_data&#39; before running this test suite.
          See &amp;lt;https://github.com/nlohmann/json#execute-unit-tests&amp;gt; for more information.

===============================================================================
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;In case you have downloaded the library rather than checked out the code via Git, test &lt;code&gt;cmake_fetch_content_configure&lt;/code&gt; will fail. Please execute &lt;code&gt;ctest -LE git_required&lt;/code&gt; to skip these tests. See &lt;a href=&quot;https://github.com/nlohmann/json/issues/2189&quot;&gt;issue #2189&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;p&gt;Some tests are requiring network to be properly execute. They are labeled as &lt;code&gt;git_required&lt;/code&gt;. Please execute &lt;code&gt;ctest -LE git_required&lt;/code&gt; to skip these tests. See &lt;a href=&quot;https://github.com/nlohmann/json/issues/4851&quot;&gt;issue #4851&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;p&gt;Some tests change the installed files and hence make the whole process not reproducible. Please execute &lt;code&gt;ctest -LE not_reproducible&lt;/code&gt; to skip these tests. See &lt;a href=&quot;https://github.com/nlohmann/json/issues/2324&quot;&gt;issue #2324&lt;/a&gt; for more information. Furthermore, assertions must be switched off to ensure reproducible builds (see &lt;a href=&quot;https://github.com/nlohmann/json/discussions/4494&quot;&gt;discussion 4494&lt;/a&gt;).&lt;/p&gt; 
&lt;p&gt;Note you need to call &lt;code&gt;cmake -LE &quot;not_reproducible|git_required&quot;&lt;/code&gt; to exclude both labels. See &lt;a href=&quot;https://github.com/nlohmann/json/issues/2596&quot;&gt;issue #2596&lt;/a&gt; for more information.&lt;/p&gt; 
&lt;p&gt;As Intel compilers use unsafe floating point optimization by default, the unit tests may fail. Use flag &lt;a href=&quot;https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/fp-model-fp.html&quot;&gt;&lt;code&gt;/fp:precise&lt;/code&gt;&lt;/a&gt; then.&lt;/p&gt;</description>
      
      <media:content url="https://repository-images.githubusercontent.com/11171548/a403c600-b5f0-11e9-8db8-2d5e6ec2ac98" medium="image" />
      
    </item>
    
    <item>
      <title>kvcache-ai/Mooncake</title>
      <link>https://github.com/kvcache-ai/Mooncake</link>
      <description>&lt;p&gt;Mooncake is the serving platform for Kimi, a leading LLM service provided by Moonshot AI.&lt;/p&gt;&lt;hr&gt;&lt;div align=&quot;center&quot;&gt; 
 &lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/mooncake-icon.png&quot; width=&quot;44%&quot; /&gt; 
 &lt;h2 align=&quot;center&quot;&gt; A KVCache-centric Disaggregated Architecture for LLM Serving &lt;/h2&gt; 
 &lt;a href=&quot;https://www.usenix.org/system/files/fast25-qin.pdf&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Paper&lt;/strong&gt;&lt;/a&gt; | 
 &lt;a href=&quot;https://www.usenix.org/system/files/fast25_slides-qin.pdf&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Slides&lt;/strong&gt;&lt;/a&gt; | 
 &lt;a href=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/FAST25-release/traces&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Traces&lt;/strong&gt;&lt;/a&gt; | 
 &lt;a href=&quot;https://arxiv.org/abs/2407.00079&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Technical Report&lt;/strong&gt;&lt;/a&gt; | 
 &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Blog&lt;/strong&gt;&lt;/a&gt; | 
 &lt;a href=&quot;https://join.slack.com/t/mooncake-project/shared_invite/zt-3qx4x35ea-zSSTqTHItHJs9SCoXLOSPA&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Slack&lt;/strong&gt;&lt;/a&gt; 
 &lt;br /&gt; 
 &lt;br /&gt; 
 &lt;p&gt;&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/docs-live-brightgreen&quot; alt=&quot;Docs&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://pypi.org/project/mooncake-transfer-engine&quot;&gt;&lt;img src=&quot;https://img.shields.io/pypi/v/mooncake-transfer-engine&quot; alt=&quot;PyPI&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://pypi.org/project/mooncake-transfer-engine&quot;&gt;&lt;img src=&quot;https://img.shields.io/pypi/pyversions/mooncake-transfer-engine&quot; alt=&quot;PyPI - Python Version&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://pypi.org/project/mooncake-transfer-engine&quot;&gt;&lt;img src=&quot;https://img.shields.io/static/v1?label=CUDA&amp;amp;message=%3C%3D12.9&amp;amp;color=76B900&quot; alt=&quot;CUDA &lt;=12.9&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://pypi.org/project/mooncake-transfer-engine-cuda13&quot;&gt;&lt;img src=&quot;https://img.shields.io/static/v1?label=CUDA&amp;amp;message=13.0%2F13.1&amp;amp;color=76B900&quot; alt=&quot;CUDA 13.0/13.1&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://pypi.org/project/mooncake-transfer-engine&quot;&gt;&lt;img src=&quot;https://img.shields.io/pypi/dm/mooncake-transfer-engine&quot; alt=&quot;PyPI - Downloads&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://deepwiki.com/kvcache-ai/Mooncake&quot;&gt;&lt;img src=&quot;https://deepwiki.com/badge.svg?sanitize=true&quot; alt=&quot;Ask DeepWiki&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/kvcache-ai/Mooncake/graphs/commit-activity&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/commit-activity/w/kvcache-ai/Mooncake&quot; alt=&quot;GitHub commit activity&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/kvcache-ai/Mooncake/raw/main/LICENSE-APACHE&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/license/kvcache-ai/mooncake.svg?sanitize=true&quot; alt=&quot;license&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;/div&gt; 
&lt;br /&gt; 
&lt;p&gt;Mooncake is the serving platform for &lt;a href=&quot;https://kimi.ai/&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/kimi.png&quot; alt=&quot;icon&quot; style=&quot;height: 16px; vertical-align: middle;&quot; /&gt; Kimi&lt;/a&gt;, a leading LLM service provided by &lt;a href=&quot;https://www.moonshot.cn/&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/moonshot.jpg&quot; alt=&quot;icon&quot; style=&quot;height: 16px; vertical-align: middle;&quot; /&gt; Moonshot AI&lt;/a&gt;. Now both the Transfer Engine and Mooncake Store are open-sourced! This repository also hosts its technical report and the open-sourced traces.&lt;/p&gt; 
&lt;h2 id=&quot;updates&quot;&gt;🔄 Updates&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;May 7, 2026&lt;/strong&gt;: 🚀 &lt;a href=&quot;https://vllm.ai/blog/mooncake-store&quot;&gt;vLLM officially features Mooncake Store&lt;/a&gt; — a deep dive into how Mooncake&#39;s distributed KVCache engine supercharges vLLM inference with high-throughput, memory-efficient, cross-instance KV cache sharing!&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Apr 29, 2026&lt;/strong&gt;: SGLang introduces &lt;a href=&quot;https://lmsys.org/blog/2026-04-29-p2p-update/&quot;&gt;RDMA-based P2P weight transfer for large-scale distributed RL&lt;/a&gt; using Mooncake TransferEngine, achieving 7x faster weight updates for the 1T-parameter Kimi-K2 model (53s → 7.2s) with zero-copy RDMA transfer across thousands of GPUs.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Mar 19, 2026&lt;/strong&gt;: &lt;a href=&quot;https://pytorch.org/blog/torchspec-speculative-decoding-training-at-scale&quot;&gt;TorchSpec: Speculative Decoding Training at Scale&lt;/a&gt; is &lt;a href=&quot;https://github.com/torchspec-project/TorchSpec&quot;&gt;open sourced&lt;/a&gt;, using Mooncake to decouple inference and training via efficient hidden states management.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Mar 5, 2026&lt;/strong&gt;: &lt;a href=&quot;https://github.com/ModelTC/LightX2V/pull/893&quot;&gt;LightX2V&lt;/a&gt; now supports disaggregated deployment based on Mooncake, enabling encoder/transformer service decoupling with Mooncake Transfer Engine for high-performance cross-device and cross-machine data transfer.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Feb 25, 2026&lt;/strong&gt;: &lt;a href=&quot;https://github.com/sgl-project/sglang&quot;&gt;SGLang&lt;/a&gt; merged &lt;a href=&quot;https://github.com/sgl-project/sglang/pull/16137&quot;&gt;Encoder Global Cache Manager&lt;/a&gt;, introducing a Mooncake-powered global multimodal embedding cache that enables cross-instance sharing of ViT embeddings to avoid redundant GPU computation.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Feb 24, 2026&lt;/strong&gt;: &lt;a href=&quot;https://docs.vllm.ai/projects/vllm-omni/en/latest/design/feature/disaggregated_inference/&quot;&gt;vLLM-Omni&lt;/a&gt; introduces disaggregated inference connectors with support for both &lt;code&gt;MooncakeStoreConnector&lt;/code&gt; and &lt;code&gt;MooncakeTransferEngineConnector&lt;/code&gt; for multi-node omni-modality pipelines.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Feb 12, 2026&lt;/strong&gt;: &lt;a href=&quot;https://pytorch.org/blog/mooncake-joins-pytorch-ecosystem/&quot;&gt;Mooncake Joins PyTorch Ecosystem&lt;/a&gt; We are thrilled to announce that Mooncake has officially joined the PyTorch Ecosystem!&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Jan 28, 2026&lt;/strong&gt;: &lt;a href=&quot;https://github.com/taco-project/FlexKV&quot;&gt;FlexKV&lt;/a&gt;, a distributed KV store and cache system from Tencent and NVIDIA in collaboration with the community, now supports &lt;a href=&quot;https://github.com/taco-project/FlexKV/raw/main/docs/dist_reuse/README_en.md&quot;&gt;distributed KVCache reuse&lt;/a&gt; with the Mooncake Transfer Engine.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Dec 27, 2025&lt;/strong&gt;: Collaboration with &lt;a href=&quot;https://github.com/alibaba/ROLL&quot;&gt;ROLL&lt;/a&gt;! Check out the paper &lt;a href=&quot;https://arxiv.org/abs/2512.22560&quot;&gt;here&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Dec 23, 2025&lt;/strong&gt;: SGLang introduces &lt;a href=&quot;https://lmsys.org/blog/2026-01-12-epd/&quot;&gt;Encode-Prefill-Decode (EPD) Disaggregation&lt;/a&gt; with Mooncake as a transfer backend. This integration allows decoupling compute-intensive multimodal encoders (e.g., Vision Transformers) from language model nodes, utilizing Mooncake&#39;s RDMA engine for zero-copy transfer of large multimodal embeddings.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Dec 19, 2025&lt;/strong&gt;: Mooncake Transfer Engine has been &lt;a href=&quot;https://github.com/NVIDIA/TensorRT-LLM/tree/main/cpp/tensorrt_llm/executor/cache_transmission/mooncake_utils&quot;&gt;integrated into TensorRT LLM&lt;/a&gt; for KVCache transfer in PD-disaggregated inference.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Dec 19, 2025&lt;/strong&gt;: Mooncake Transfer Engine has been directly integrated into vLLM v1 as a &lt;a href=&quot;https://docs.vllm.ai/en/latest/features/mooncake_connector_usage/&quot;&gt;KV Connector&lt;/a&gt; in PD-disaggregated setups.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Nov 07, 2025&lt;/strong&gt;: &lt;a href=&quot;https://github.com/sgl-project/rbg/raw/main/keps/74-mooncake-integration/README.md&quot;&gt;RBG + SGLang HiCache + Mooncake&lt;/a&gt;, a role-based out-of-the-box solution for cloud native deployment, which is elastic, scalable, and high-performance.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Sept 18, 2025&lt;/strong&gt;: Mooncake Store empowers vLLM Ascend by serving as &lt;a href=&quot;https://docs.vllm.ai/projects/ascend/zh-cn/main/user_guide/feature_guide/kv_pool.html&quot;&gt;the distributed KV cache pool backend&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Sept 10, 2025&lt;/strong&gt;: SGLang officially supports Mooncake Store as a &lt;a href=&quot;https://lmsys.org/blog/2025-09-10-sglang-hicache/&quot;&gt;hierarchical KV caching storage backend&lt;/a&gt;. The integration extends RadixAttention with multi-tier KV cache storage across device, host, and remote storage layers.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Sept 10, 2025&lt;/strong&gt;: The official &amp;amp; high-performance version of Mooncake P2P Store is open-sourced as &lt;a href=&quot;https://github.com/MoonshotAI/checkpoint-engine/&quot;&gt;checkpoint-engine&lt;/a&gt;. It has been successfully applied in K1.5 and K2 production training, updating Kimi-K2 model (1T parameters) across thousands of GPUs in ~20s.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Aug 23, 2025&lt;/strong&gt;: &lt;a href=&quot;https://github.com/jd-opensource/xllm&quot;&gt;xLLM&lt;/a&gt; high-performance inference engine builds hybrid KV cache management based on Mooncake, supporting global KV cache management with intelligent offloading and prefetching.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Aug 18, 2025&lt;/strong&gt;: vLLM-Ascend &lt;a href=&quot;https://docs.vllm.ai/projects/ascend/en/latest/developer_guide/feature_guide/disaggregated_prefill.html&quot;&gt;integrates Mooncake Transfer Engine&lt;/a&gt; for KV cache register and disaggregate prefill, enabling efficient distributed inference on Ascend NPUs.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Jul 20, 2025&lt;/strong&gt;: Mooncake powers &lt;a href=&quot;https://lmsys.org/blog/2025-07-20-k2-large-scale-ep/&quot;&gt;the deployment of Kimi K2&lt;/a&gt; on 128 H200 GPUs with PD disaggregation and large-scale expert parallelism, achieving 224k tokens/sec prefill throughput and 288k tokens/sec decode throughput.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Jun 20, 2025&lt;/strong&gt;: Mooncake becomes a PD disaggregation &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/lmdeploy-integration-v0.9.html&quot;&gt;backend&lt;/a&gt; for LMDeploy.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;May 9, 2025&lt;/strong&gt;: NIXL officially supports Mooncake Transfer Engine as &lt;a href=&quot;https://github.com/ai-dynamo/nixl/raw/main/src/plugins/mooncake/README.md&quot;&gt;a backend plugin&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;May 8, 2025&lt;/strong&gt;: &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/lmcache-integration.html&quot;&gt;Mooncake x LMCache&lt;/a&gt; unite to pioneer KVCache-centric LLM serving system.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;May 5, 2025&lt;/strong&gt;: Supported by Mooncake Team, SGLang release &lt;a href=&quot;https://lmsys.org/blog/2025-05-05-large-scale-ep/&quot; target=&quot;_blank&quot;&gt;guidance&lt;/a&gt; to deploy DeepSeek with PD Disaggregation on 96 H100 GPUs.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Apr 22, 2025&lt;/strong&gt;: LMCache officially supports Mooncake Store as a &lt;a href=&quot;https://blog.lmcache.ai/2025-04-22-tencent/&quot; target=&quot;_blank&quot;&gt;remote connector&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Apr 10, 2025&lt;/strong&gt;: SGLang officially supports Mooncake Transfer Engine for disaggregated prefilling and KV cache transfer.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Mar 7, 2025&lt;/strong&gt;: We open-sourced the Mooncake Store, a distributed KVCache based on Transfer Engine. vLLM&#39;s xPyD disaggregated prefilling &amp;amp; decoding based on Mooncake Store will be released soon.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Feb 25, 2025&lt;/strong&gt;: Mooncake receives the &lt;strong&gt;Best Paper Award&lt;/strong&gt; at &lt;strong&gt;FAST 2025&lt;/strong&gt;!&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Feb 21, 2025&lt;/strong&gt;: The updated &lt;a href=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/FAST25-release/traces&quot; target=&quot;_blank&quot;&gt;traces&lt;/a&gt; used in our FAST&#39;25 paper have been released.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Dec 16, 2024&lt;/strong&gt;: vLLM officially supports Mooncake Transfer Engine for disaggregated prefilling and KV cache transfer.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Nov 28, 2024&lt;/strong&gt;: We open-sourced the Transfer Engine, the central component of Mooncake. We also provide two demonstrations of Transfer Engine: a P2P Store and vLLM integration.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;July 9, 2024&lt;/strong&gt;: We open-sourced the trace as a &lt;a href=&quot;https://github.com/kvcache-ai/Mooncake/raw/main/FAST25-release/arxiv-trace/mooncake_trace.jsonl&quot; target=&quot;_blank&quot;&gt;JSONL file&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;June 27, 2024&lt;/strong&gt;: We present a series of Chinese blogs with more discussions on &lt;a href=&quot;https://zhuanlan.zhihu.com/p/705754254&quot;&gt;zhihu 1&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/705910725&quot;&gt;2&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/706204757&quot;&gt;3&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/707997501&quot;&gt;4&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/9461861451&quot;&gt;5&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/1939988652114580803&quot;&gt;6&lt;/a&gt;, &lt;a href=&quot;https://zhuanlan.zhihu.com/p/1959366095443064318&quot;&gt;7&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;June 26, 2024&lt;/strong&gt;: Initial technical report release.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2 id=&quot;overview&quot;&gt;🎉 Overview&lt;/h2&gt; 
&lt;p&gt;Mooncake features a KVCache-centric disaggregated architecture that separates the prefill and decoding clusters. It also leverages the underutilized CPU, DRAM, and SSD resources of the GPU cluster to implement a disaggregated KVCache pool.&lt;/p&gt; 
&lt;p&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/architecture.png&quot; alt=&quot;architecture&quot; /&gt;&lt;/p&gt; 
&lt;p&gt;The core of Mooncake is its KVCache-centric scheduler, which balances maximizing overall effective throughput while meeting latency-related Service Level Objectives (SLOs). Unlike traditional studies that assume all requests will be processed, Mooncake faces challenges in highly overloaded scenarios. To mitigate these, we developed a prediction-based early rejection policy. Experiments show that Mooncake excels in long-context scenarios. Compared to the baseline method, Mooncake can achieve up to a 525% increase in throughput in certain simulated scenarios while adhering to SLOs. Under real workloads, Mooncake’s innovative architecture enables &lt;a href=&quot;https://kimi.ai/&quot;&gt;Kimi&lt;/a&gt; to handle 75% more requests.&lt;/p&gt; 
&lt;h2 id=&quot;components&quot;&gt;🧩 Components&lt;/h2&gt; 
&lt;!-- ![components](image/components.png) --&gt; 
&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/components.png&quot; width=&quot;74%&quot; /&gt; 
&lt;p&gt;&lt;strong&gt;Mooncake Core Component: Transfer Engine (TE)&lt;/strong&gt; The core of Mooncake is the Transfer Engine (TE), which provides a unified interface for batched data transfer across various storage devices and network links. Supporting multiple protocols including TCP, RDMA, CXL/shared-memory, and NVMe over Fabric (NVMe-of), TE is designed to enable fast and reliable data transfer for AI workloads. Compared to Gloo (used by Distributed PyTorch) and traditional TCP, TE achieves significantly lower I/O latency, making it a superior solution for efficient data transmission.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;P2P Store and Mooncake Store&lt;/strong&gt; Both P2P Store and Mooncake Store are built on the Transfer Engine and provide key/value caching for different scenarios. P2P Store focuses on sharing temporary objects (e.g., checkpoint files) across nodes in a cluster, preventing bandwidth saturation on a single machine. Mooncake Store, on the other hand, supports distributed pooled KVCache, specifically designed for XpYd disaggregation to enhance resource utilization and system performance.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Mooncake Integration with Leading LLM Inference Systems&lt;/strong&gt; Mooncake has been seamlessly integrated with several popular large language model (LLM) inference systems. Through collaboration with the vLLM and SGLang teams, Mooncake now officially supports prefill-decode disaggregation. By leveraging the high-efficiency communication capabilities of RDMA devices, Mooncake significantly improves inference efficiency in prefill-decode disaggregation scenarios, providing robust technical support for large-scale distributed inference tasks. In addition, Mooncake has been successfully integrated with SGLang&#39;s Hierarchical KV Caching, vLLM&#39;s prefill serving, and LMCache, augmenting KV cache management capabilities across large-scale inference scenarios.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Elastic Expert Parallelism Support&lt;/strong&gt; Mooncake adds elasticity and fault tolerance support for MoE model inference, enabling inference systems to remain responsive and recoverable in the event of GPU failures or changes in resource configuration. This functionality includes automatic faulty rank detection and can work with the EPLB module to dynamically route tokens to healthy ranks during inference.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Tensor-Centric Ecosystem&lt;/strong&gt; Mooncake establishes a full-stack, Tensor-oriented AI infrastructure where Tensors serve as the fundamental data carrier. The ecosystem spans from the Transfer Engine, which accelerates Tensor data movement across heterogeneous storage (DRAM/VRAM/NVMe), to the P2P Store and Mooncake Store for distributed management of Tensor objects (e.g., Checkpoints and KVCache), up to the Mooncake Backend enabling Tensor-based elastic distributed computing. This architecture is designed to maximize Tensor processing efficiency for large-scale model inference and training.&lt;/p&gt; 
&lt;h2 id=&quot;supported-hardware&quot;&gt;🖥️ Supported Hardware&lt;/h2&gt; 
&lt;p&gt;Mooncake supports heterogeneous accelerators, NICs, and specialized transport paths. The summary below focuses on runtime and transport coverage that is already exposed through build options, documented protocols, or dedicated examples in this repository.&lt;/p&gt; 
&lt;div align=&quot;center&quot;&gt; 
 &lt;table&gt; 
  &lt;tbody&gt;
   &lt;tr&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/partners/huawei_logo.png&quot; alt=&quot;Huawei&quot; height=&quot;26&quot; /&gt;&lt;br /&gt;&lt;sub&gt;Huawei&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.cambricon.com/favicon.ico&quot; alt=&quot;Cambricon&quot; height=&quot;24&quot; /&gt;&lt;br /&gt;&lt;sub&gt;Cambricon&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/partners/moore_thread_logo.jpg&quot; alt=&quot;Moore Threads&quot; height=&quot;26&quot; /&gt;&lt;br /&gt;&lt;sub&gt;Moore Threads&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.metax-tech.com/favicon.ico&quot; alt=&quot;MetaX&quot; height=&quot;24&quot; /&gt;&lt;br /&gt;&lt;sub&gt;MetaX&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://www.t-head.cn/favicon.ico&quot; alt=&quot;T-Head&quot; height=&quot;24&quot; /&gt;&lt;br /&gt;&lt;sub&gt;T-Head&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/partners/nvidia_logo.png&quot; alt=&quot;NVIDIA&quot; height=&quot;26&quot; /&gt;&lt;br /&gt;&lt;sub&gt;NVIDIA&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/partners/amd_logo.png&quot; alt=&quot;AMD&quot; height=&quot;26&quot; /&gt;&lt;br /&gt;&lt;sub&gt;AMD&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/partners/aliyun_logo.png&quot; alt=&quot;Alibaba Cloud&quot; height=&quot;24&quot; /&gt;&lt;br /&gt;&lt;sub&gt;Alibaba Cloud&lt;/sub&gt;&lt;/td&gt; 
    &lt;td align=&quot;center&quot;&gt;&lt;img src=&quot;https://cdn.simpleicons.org/amazonwebservices/FF9900&quot; alt=&quot;AWS&quot; height=&quot;24&quot; /&gt;&lt;br /&gt;&lt;sub&gt;AWS&lt;/sub&gt;&lt;/td&gt; 
   &lt;/tr&gt; 
  &lt;/tbody&gt;
 &lt;/table&gt; 
&lt;/div&gt; 
&lt;h4&gt;Accelerator runtimes&lt;/h4&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Vendor / Platform&lt;/th&gt; 
   &lt;th&gt;Hardware / Runtime&lt;/th&gt; 
   &lt;th&gt;Current support in Mooncake&lt;/th&gt; 
   &lt;th&gt;How it is exposed&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Huawei Ascend&lt;/td&gt; 
   &lt;td&gt;Ascend NPUs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_ASCEND=ON&lt;/code&gt;, &lt;code&gt;-DUSE_ASCEND_DIRECT=ON&lt;/code&gt;, &lt;code&gt;-DUSE_UBSHMEM=ON&lt;/code&gt;, &lt;code&gt;-DUSE_ASCEND_HETEROGENEOUS=ON&lt;/code&gt;; covers HCCL transport, Ascend Direct transport, UBShmem transport, and heterogeneous Ascend-GPU transport&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Cambricon&lt;/td&gt; 
   &lt;td&gt;MLU + Neuware&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_MLU=ON&lt;/code&gt;; MLU memory detection, topology discovery, and registration reuse the standard &lt;code&gt;rdma&lt;/code&gt; data path&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Moore Threads&lt;/td&gt; 
   &lt;td&gt;MUSA GPUs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_MUSA=ON&lt;/code&gt;; accelerator-aware data transfer with MUSA runtime integration&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;MetaX (Muxi)&lt;/td&gt; 
   &lt;td&gt;MACA GPUs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_MACA=ON&lt;/code&gt;; source build support through the MACA SDK&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;T-Head&lt;/td&gt; 
   &lt;td&gt;PPU / Barex&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;T-Head PPU deployments are represented here through Barex-based transport support&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;NVIDIA&lt;/td&gt; 
   &lt;td&gt;CUDA GPUs / NVLink&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_CUDA=ON&lt;/code&gt;, &lt;code&gt;-DUSE_INTRA_NVLINK=ON&lt;/code&gt;, &lt;code&gt;-DUSE_MNNVL=ON&lt;/code&gt;; covers CUDA memory, GPUDirect RDMA, GPUDirect Storage, intra-node NVLink, and multi-node NVLink&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;AMD&lt;/td&gt; 
   &lt;td&gt;ROCm / HIP GPUs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_HIP=ON&lt;/code&gt;; HIP transport for AMD GPU communication&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h4&gt;Network and fabric support&lt;/h4&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Vendor / Fabric&lt;/th&gt; 
   &lt;th&gt;Hardware / Transport&lt;/th&gt; 
   &lt;th&gt;Current support in Mooncake&lt;/th&gt; 
   &lt;th&gt;How it is exposed&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Alibaba Cloud&lt;/td&gt; 
   &lt;td&gt;eRDMA NICs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;rdma&lt;/code&gt; data path with eRDMA devices such as &lt;code&gt;erdma_0&lt;/code&gt;; the build also enables &lt;code&gt;CONFIG_ERDMA&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Standard RDMA ecosystem&lt;/td&gt; 
   &lt;td&gt;InfiniBand / RoCE NICs&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Available through the standard &lt;code&gt;rdma&lt;/code&gt; protocol path with topology-aware NIC selection&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;AWS&lt;/td&gt; 
   &lt;td&gt;Elastic Fabric Adapter (EFA)&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;-DUSE_EFA=ON&lt;/code&gt;; EFA transport built on libfabric SRD&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Storage disaggregation&lt;/td&gt; 
   &lt;td&gt;NVMe-oF&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled with &lt;code&gt;-DUSE_NVMEOF=ON&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Memory pooling&lt;/td&gt; 
   &lt;td&gt;CXL&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled with &lt;code&gt;-DUSE_CXL=ON&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Baseline networking&lt;/td&gt; 
   &lt;td&gt;TCP/IP&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;tcp&lt;/code&gt; works in all environments&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h4&gt;Specialized transport paths&lt;/h4&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Transport path&lt;/th&gt; 
   &lt;th&gt;Current support in Mooncake&lt;/th&gt; 
   &lt;th&gt;How it is exposed&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ascend HCCL transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled by &lt;code&gt;-DUSE_ASCEND=ON&lt;/code&gt;; examples use &lt;code&gt;hccl&lt;/code&gt; for Ascend NPU data movement&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Ascend Direct transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled by &lt;code&gt;-DUSE_ASCEND_DIRECT=ON&lt;/code&gt;; dedicated Ascend Direct examples and docs are included&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;UBShmem transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled by &lt;code&gt;-DUSE_UBSHMEM=ON&lt;/code&gt;; Transfer Engine examples accept &lt;code&gt;--protocol=ubshmem&lt;/code&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Heterogeneous Ascend transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled by &lt;code&gt;-DUSE_ASCEND_HETEROGENEOUS=ON&lt;/code&gt;; used for Ascend-GPU heterogeneous transfer&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Barex transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Enabled by &lt;code&gt;-DUSE_BAREX=ON&lt;/code&gt;; documented as the &lt;code&gt;barex&lt;/code&gt; advanced transport&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Sunrise Transport&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Included here as an additional specialized transport path to reflect current hardware support positioning&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;T-Head PPU / Barex&lt;/td&gt; 
   &lt;td&gt;Supported&lt;/td&gt; 
   &lt;td&gt;Barex-based transport coverage is available for T-Head PPU deployments&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h2 id=&quot;show-cases&quot;&gt;🔥 Show Cases&lt;/h2&gt; 
&lt;h3&gt;Use Transfer Engine Standalone (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/design/transfer-engine/index.html&quot;&gt;Guide&lt;/a&gt;)&lt;/h3&gt; 
&lt;p&gt;Transfer Engine is a high-performance data transfer framework. Transfer Engine provides a unified interface to transfer data from DRAM, VRAM or NVMe, while the technical details related to hardware are hidden. Transfer Engine supports multiple communication protocols including TCP, RDMA (InfiniBand/RoCEv2/eRDMA/NVIDIA GPUDirect), AWS EFA, NVMe over Fabric (NVMe-of), NVLink, HIP, Barex, CXL, and Ascend-family transports. When built with the corresponding runtime, Transfer Engine can also detect and route accelerator memory on CUDA, MUSA, HIP, MACA, Cambricon MLU, and Ascend-enabled environments. For a complete list of supported protocols and configuration guide, see the &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/supported-protocols.html&quot;&gt;Supported Protocols Documentation&lt;/a&gt;.&lt;/p&gt; 
&lt;h4&gt;Highlights&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Efficient use of multiple RDMA NIC devices.&lt;/strong&gt; Transfer Engine supports the use of multiple RDMA NIC devices to achieve the &lt;em&gt;aggregation of transfer bandwidth&lt;/em&gt;.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Topology aware path selection.&lt;/strong&gt; Transfer Engine can &lt;em&gt;select optimal devices&lt;/em&gt; based on the location (NUMA affinity, etc.) of both source and destination.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;More robust against temporary network errors.&lt;/strong&gt; Once transmission fails, Transfer Engine will try to use alternative paths for data delivery automatically.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h4&gt;Performance&lt;/h4&gt; 
&lt;p&gt;With 40 GB of data (equivalent to the size of the KVCache generated by 128k tokens in the LLaMA3-70B model), Mooncake Transfer Engine delivers up to &lt;strong&gt;87 GB/s&lt;/strong&gt; and &lt;strong&gt;190 GB/s&lt;/strong&gt; of bandwidth in 4×200 Gbps and 8×400 Gbps RoCE networks respectively, which are about &lt;strong&gt;2.4x and 4.6x faster&lt;/strong&gt; than the TCP protocol.&lt;/p&gt; 
&lt;!-- ![transfer-engine-performance.png](image/transfer-engine-performance.png) --&gt; 
&lt;img src=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/image/transfer-engine-performance.png&quot; width=&quot;75%&quot; /&gt; 
&lt;h3&gt;P2P Store (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/design/p2p-store.html&quot;&gt;Guide&lt;/a&gt;)&lt;/h3&gt; 
&lt;p&gt;P2P Store is built on the Transfer Engine and supports sharing temporary objects between peer nodes in a cluster. P2P Store is ideal for scenarios like checkpoint transfer, where data needs to be rapidly and efficiently shared across a cluster. &lt;strong&gt;P2P Store has been used in the checkpoint transfer service of Moonshot AI.&lt;/strong&gt;&lt;/p&gt; 
&lt;h4&gt;Highlights&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Decentralized architecture.&lt;/strong&gt; P2P Store leverages a pure client-side architecture with global metadata managed by the etcd service.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Efficient data distribution.&lt;/strong&gt; Designed to enhance the efficiency of large-scale data distribution, P2P Store &lt;em&gt;avoids bandwidth saturation&lt;/em&gt; issues by allowing replicated nodes to share data directly. This reduces the CPU/RDMA NIC pressures of data providers (e.g., trainers).&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;!-- #### Performance
Thanks to the high performance of Transfer Engine, P2P Stores can also distribute objects with full utilization of *hardware incoming bandwidth* (e.g., A 25Gbps NIC was used in the following figure, and the throughput of get replica is about 3.1 GB/s). --&gt; 
&lt;!-- ![p2p-store.gif](image/p2p-store.gif) --&gt; 
&lt;h3&gt;Mooncake Store (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/design/mooncake-store.html&quot;&gt;Guide&lt;/a&gt;)&lt;/h3&gt; 
&lt;p&gt;Mooncake Store is a distributed KVCache storage engine specialized for LLM inference based on Transfer Engine. It is the central component of the KVCache-centric disaggregated architecture. The goal of Mooncake Store is to store the reusable KV caches across various locations in an inference cluster. Mooncake Store has been supported in &lt;a href=&quot;https://lmsys.org/blog/2025-09-10-sglang-hicache/&quot;&gt;SGLang&#39;s Hierarchical KV Caching&lt;/a&gt;, &lt;a href=&quot;https://docs.vllm.ai/en/latest/features/disagg_prefill.html&quot;&gt;vLLM&#39;s prefill serving&lt;/a&gt; and is now integrated with &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/lmcache-integration.html&quot;&gt;LMCache&lt;/a&gt; to provide enhanced KVCache management capabilities.&lt;/p&gt; 
&lt;h4&gt;Highlights&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Multi-replica support&lt;/strong&gt;: Mooncake Store supports storing multiple data replicas for the same object, effectively alleviating hotspots in access pressure.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;High bandwidth utilization&lt;/strong&gt;: Mooncake Store supports striping and parallel I/O transfer of large objects, fully utilizing multi-NIC aggregated bandwidth for high-speed data reads and writes.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;SGLang Integration (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/sglang-integration/hicache-integration-v1.html&quot;&gt;Guide&lt;/a&gt;)&lt;/h3&gt; 
&lt;p&gt;SGLang officially supports Mooncake Store as a &lt;a href=&quot;https://lmsys.org/blog/2025-09-10-sglang-hicache/&quot;&gt;HiCache storage backend&lt;/a&gt;. This integration enables scalable KV cache retention and high-performance access for large-scale LLM serving scenarios.&lt;/p&gt; 
&lt;h4&gt;Highlights&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Hierarchical KV Caching&lt;/strong&gt;: Mooncake Store serves as an external storage backend in SGLang&#39;s HiCache system, extending RadixAttention with multi-level KV cache storage across device, host, and remote storage layers.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Flexible Cache Management&lt;/strong&gt;: Supports multiple cache policies including write-through, write-through-selective, and write-back modes, with intelligent prefetching strategies for optimal performance.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Comprehensive Optimizations&lt;/strong&gt;: Features advanced data plane optimizations including page-first memory layout for improved I/O efficiency, zero-copy mechanisms for reduced memory overhead, GPU-assisted I/O kernels delivering fast CPU-GPU transfers, and layer-wise overlapping for concurrent KV cache loading while computation executes.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Elastic Expert Parallel&lt;/strong&gt;: Mooncake&#39;s collective communication backend and expert parallel kernels are integrated into SGLang to enable fault-tolerant expert parallel inference (&lt;a href=&quot;https://github.com/sgl-project/sglang/pull/11657&quot;&gt;sglang#11657&lt;/a&gt;).&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Significant Performance Gains&lt;/strong&gt;: The multi-turn benchmark demonstrates substantial performance improvements over the non-HiCache setting. See our &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/performance/sglang-hicache-benchmark-results-v1.html&quot;&gt;benchmark report&lt;/a&gt; for more details.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Community Feedback&lt;/strong&gt;: Effective KV caching significantly reduces TTFT by eliminating redundant and costly re-computation. Integrating SGLang HiCache with the Mooncake service enables scalable KV cache retention and high-performance access. In our evaluation, we tested the DeepSeek-R1-671B model under PD-disaggregated deployment using in-house online requests sampled from a general QA scenario. On average, cache hits achieved an 84% reduction in TTFT compared to full re-computation. – Ant Group&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;vLLM Integration (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/vllm-integration/vllm-integration-v0.2.html&quot;&gt;Guide v0.2&lt;/a&gt;)&lt;/h3&gt; 
&lt;p&gt;To optimize LLM inference, the vLLM community is working on supporting &lt;a href=&quot;https://github.com/vllm-project/vllm/pull/10502&quot;&gt;disaggregated prefilling (PR 10502)&lt;/a&gt;. This feature allows separating the &lt;strong&gt;prefill&lt;/strong&gt; phase from the &lt;strong&gt;decode&lt;/strong&gt; phase in different processes. The vLLM uses &lt;code&gt;nccl&lt;/code&gt; and &lt;code&gt;gloo&lt;/code&gt; as the transport layer by default, but currently it cannot efficiently decouple both phases in different machines.&lt;/p&gt; 
&lt;p&gt;We have implemented vLLM integration, which uses Transfer Engine as the network layer instead of &lt;code&gt;nccl&lt;/code&gt; and &lt;code&gt;gloo&lt;/code&gt;, to support &lt;strong&gt;inter-node KVCache transfer&lt;/strong&gt; &lt;a href=&quot;https://github.com/vllm-project/vllm/pull/10884&quot;&gt;(PR 10884)&lt;/a&gt;. Transfer Engine provides simpler interfaces and more efficient use of RDMA devices.&lt;/p&gt; 
&lt;p&gt;We will soon release the new vLLM integration based on Mooncake Store, which supports xPyD prefill/decode disaggregation.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Update[Dec 16, 2024]: Here is the latest vLLM Integration (&lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/examples/vllm-integration/vllm-integration-v0.2.html&quot;&gt;Guide v0.2&lt;/a&gt;) that is based on vLLM&#39;s main branch.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; 
&lt;h4&gt;Performance&lt;/h4&gt; 
&lt;p&gt;By supporting Topology Aware Path Selection and multi-card bandwidth aggregation, Mean TTFT of vLLM with Transfer Engine is up to 25% lower than traditional TCP-based transports. In the future, we will further improve TTFT through GPUDirect RDMA and zero-copy.&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Backend/Setting&lt;/th&gt; 
   &lt;th&gt;Output Token Throughput (tok/s)&lt;/th&gt; 
   &lt;th&gt;Total Token Throughput (tok/s)&lt;/th&gt; 
   &lt;th&gt;Mean TTFT (ms)&lt;/th&gt; 
   &lt;th&gt;Median TTFT (ms)&lt;/th&gt; 
   &lt;th&gt;P99 TTFT (ms)&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Transfer Engine (RDMA)&lt;/td&gt; 
   &lt;td&gt;12.06&lt;/td&gt; 
   &lt;td&gt;2042.74&lt;/td&gt; 
   &lt;td&gt;1056.76&lt;/td&gt; 
   &lt;td&gt;635.00&lt;/td&gt; 
   &lt;td&gt;4006.59&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;TCP&lt;/td&gt; 
   &lt;td&gt;12.05&lt;/td&gt; 
   &lt;td&gt;2041.13&lt;/td&gt; 
   &lt;td&gt;1414.05&lt;/td&gt; 
   &lt;td&gt;766.23&lt;/td&gt; 
   &lt;td&gt;6035.36&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;ul&gt; 
 &lt;li&gt;Click &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/performance/vllm-benchmark-results-v0.2.html&quot;&gt;here&lt;/a&gt; to access detailed benchmark results.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;&lt;strong&gt;More advanced features are coming soon, so stay tuned!&lt;/strong&gt;&lt;/p&gt; 
&lt;h2 id=&quot;quick-start&quot;&gt;🚀 Quick Start&lt;/h2&gt; 
&lt;h3&gt;Before using Mooncake&lt;/h3&gt; 
&lt;p&gt;Mooncake is designed and optimized for high-speed RDMA networks. Though Mooncake supports TCP-only data transfer, we &lt;strong&gt;strongly&lt;/strong&gt; recommend users to evaluate the functionality and performance of Mooncake with RDMA network support.&lt;/p&gt; 
&lt;p&gt;The following need to be installed before running any component of Mooncake:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;RDMA Driver &amp;amp; SDK, such as Mellanox OFED.&lt;/li&gt; 
 &lt;li&gt;Python 3.10, virtual environment is recommended.&lt;/li&gt; 
 &lt;li&gt;CUDA 12.1 and above, including NVIDIA GPUDirect Storage Support, if the package is built with &lt;code&gt;-DUSE_CUDA&lt;/code&gt; (disabled by default). &lt;em&gt;You may install them from &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;here&lt;/a&gt;&lt;/em&gt;.&lt;/li&gt; 
 &lt;li&gt;Cambricon Neuware, if the package is built with &lt;code&gt;-DUSE_MLU&lt;/code&gt;. By default Mooncake looks for Neuware under &lt;code&gt;NEUWARE_HOME&lt;/code&gt; or &lt;code&gt;/usr/local/neuware&lt;/code&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Use Python package&lt;/h3&gt; 
&lt;p&gt;The simplest way to use Mooncake Transfer Engine is using &lt;code&gt;pip&lt;/code&gt;:&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;For CUDA-enabled systems:&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;CUDA &amp;lt; 13.0&lt;/li&gt; 
&lt;/ul&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip install mooncake-transfer-engine
&lt;/code&gt;&lt;/pre&gt; 
&lt;ul&gt; 
 &lt;li&gt;CUDA &amp;gt;= 13.0&lt;/li&gt; 
&lt;/ul&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip install mooncake-transfer-engine-cuda13
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;For non-CUDA systems:&lt;/strong&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pip install mooncake-transfer-engine-non-cuda
&lt;/code&gt;&lt;/pre&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-important&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-report mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Important&lt;/p&gt;
 &lt;p&gt;&lt;/p&gt; 
 &lt;ul&gt; 
  &lt;li&gt;The CUDA version (&lt;code&gt;mooncake-transfer-engine&lt;/code&gt;) includes Mooncake-EP and GPU topology detection, requiring CUDA 12.1+.&lt;/li&gt; 
  &lt;li&gt;The non-CUDA version (&lt;code&gt;mooncake-transfer-engine-non-cuda&lt;/code&gt;) is for environments without CUDA dependencies.&lt;/li&gt; 
  &lt;li&gt;MLU support is currently available through source builds with &lt;code&gt;-DUSE_MLU=ON&lt;/code&gt;; there is no dedicated prebuilt MLU wheel yet.&lt;/li&gt; 
  &lt;li&gt;If users encounter problems such as missing &lt;code&gt;lib*.so&lt;/code&gt;, they should uninstall the package they installed and build the binaries manually.&lt;/li&gt; 
 &lt;/ul&gt; 
&lt;/div&gt; 
&lt;h3&gt;Use Docker image&lt;/h3&gt; 
&lt;p&gt;Mooncake supports Docker-based deployment, see &lt;a href=&quot;https://kvcache-ai.github.io/Mooncake/getting_started/build.html&quot;&gt;Build Guide&lt;/a&gt; in detail.&lt;/p&gt; 
&lt;p&gt;To produce an image that compiles Mooncake from source, builds the wheel via &lt;code&gt;scripts/build_wheel.sh&lt;/code&gt;, and installs that wheel inside the container, use &lt;code&gt;build-wheel.dockerfile&lt;/code&gt;:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;docker build -f docker/mooncake.Dockerfile \
  --build-arg PYTHON_VERSION=3.10 \
  --build-arg EP_TORCH_VERSIONS=&quot;2.9.1&quot; \
  -t mooncake:from-source .
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The resulting image already has a virtual environment at &lt;code&gt;/opt/venv&lt;/code&gt; with the freshly built wheel installed. Launch it with GPU/RDMA access as needed, for example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;python3 scripts/check_hicache_hugepage_requirements.py \
  --tp-size 4 \
  --hicache-size 64gb \
  --global-segment-size 8gb \
  --arena-pool-size 56gb \
  --available-hugetlb 512gb

sudo sysctl -w vm.nr_hugepages=262144
grep -E &#39;HugePages_Total|HugePages_Free|Hugepagesize&#39; /proc/meminfo

docker run --gpus all \
  --network host \
  --ipc=host \
  --ulimit memlock=-1 \
  --shm-size=128g \
  -e MC_STORE_USE_HUGEPAGE=1 \
  -e MC_STORE_HUGEPAGE_SIZE=2MB \
  -e MOONCAKE_GLOBAL_SEGMENT_SIZE=8gb \
  -e MC_MMAP_ARENA_POOL_SIZE=56gb \
  -it mooncake:from-source /bin/bash
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The &lt;code&gt;64gb&lt;/code&gt; / &lt;code&gt;56gb&lt;/code&gt; values above are tuned examples for large HiCache deployments, not allocator defaults. The arena is off by default. Setting &lt;code&gt;MC_MMAP_ARENA_POOL_SIZE=...&lt;/code&gt; explicitly both enables and sizes the arena; if you enable it via gflag instead, the default pool size is &lt;code&gt;8gb&lt;/code&gt;. On smaller hosts, start with &lt;code&gt;8gb&lt;/code&gt; or &lt;code&gt;16gb&lt;/code&gt; and size upward with the helper. Set &lt;code&gt;MC_DISABLE_MMAP_ARENA=1&lt;/code&gt; (also accepts &lt;code&gt;true&lt;/code&gt;, &lt;code&gt;yes&lt;/code&gt;, or &lt;code&gt;on&lt;/code&gt;) instead when you want the baseline direct-&lt;code&gt;mmap()&lt;/code&gt; path. Like the arena size itself, this must be set before the first Mooncake mmap-buffer allocation in the process. Arena bring-up is a one-shot lazy init, so after a failed first attempt you need to restart the process to retry with corrected env / hugepage settings. Without &lt;code&gt;MC_STORE_USE_HUGEPAGE=1&lt;/code&gt;, the arena may opportunistically try hugepages and then retry on regular pages if HugeTLB is unavailable. When &lt;code&gt;MC_STORE_USE_HUGEPAGE=1&lt;/code&gt; is present, Mooncake instead preserves the strict hugepage contract for both arena and direct-&lt;code&gt;mmap()&lt;/code&gt; host-buffer allocation instead of silently downgrading to regular pages.&lt;/p&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-info mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Note&lt;/p&gt;
 &lt;p&gt;Make sure you build the image from the repository root so that Git metadata and submodules are available inside the build context.&lt;/p&gt; 
&lt;/div&gt; 
&lt;h3&gt;Build and use binaries&lt;/h3&gt; 
&lt;p&gt;The following are additional dependencies for building Mooncake:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Build essentials, including gcc, g++ (9.4+) and cmake (3.16+).&lt;/li&gt; 
 &lt;li&gt;Go 1.20+, if you want to build with &lt;code&gt;-DWITH_P2P_STORE&lt;/code&gt;, &lt;code&gt;-DUSE_ETCD&lt;/code&gt; (enabled by default to use etcd as metadata servers), or &lt;code&gt;-DSTORE_USE_ETCD&lt;/code&gt; (use etcd for the failover of the store master).&lt;/li&gt; 
 &lt;li&gt;CUDA 12.1 and above, including NVIDIA GPUDirect Storage Support, if the package is built with &lt;code&gt;-DUSE_CUDA&lt;/code&gt;. &lt;em&gt;This is NOT included in the &lt;code&gt;dependencies.sh&lt;/code&gt; script. You may install them from &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;here&lt;/a&gt;&lt;/em&gt;.&lt;/li&gt; 
 &lt;li&gt;Cambricon Neuware, if you want to build with &lt;code&gt;-DUSE_MLU&lt;/code&gt;. &lt;em&gt;This is NOT included in the &lt;code&gt;dependencies.sh&lt;/code&gt; script.&lt;/em&gt; Mooncake resolves it from &lt;code&gt;NEUWARE_HOME&lt;/code&gt; or &lt;code&gt;/usr/local/neuware&lt;/code&gt; by default, and also supports overriding &lt;code&gt;MLU_INCLUDE_DIR&lt;/code&gt; / &lt;code&gt;MLU_LIB_DIR&lt;/code&gt; during CMake configure.&lt;/li&gt; 
 &lt;li&gt;[Optional] Rust Toolchain and libclang, if you want to build Transfer Engine Rust examples with &lt;code&gt;-DWITH_RUST_EXAMPLE=ON&lt;/code&gt; or Mooncake Store Rust bindings with &lt;code&gt;-DWITH_STORE_RUST=ON&lt;/code&gt;. &lt;em&gt;This is NOT included in the &lt;code&gt;dependencies.sh&lt;/code&gt; script.&lt;/em&gt;&lt;/li&gt; 
 &lt;li&gt;[Optional] &lt;code&gt;hiredis&lt;/code&gt;, if you want to build with &lt;code&gt;-DUSE_REDIS&lt;/code&gt; to use Redis instead of etcd as metadata servers.&lt;/li&gt; 
 &lt;li&gt;[Optional] &lt;code&gt;curl&lt;/code&gt;, if you want to build with &lt;code&gt;-DUSE_HTTP&lt;/code&gt; to use HTTP instead of etcd as metadata servers.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;The build and installation steps are as follows:&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt; &lt;p&gt;Retrieve source code from GitHub repo&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/kvcache-ai/Mooncake.git
cd Mooncake
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Install dependencies&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;bash dependencies.sh
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Compile Mooncake and examples&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;mkdir build
cd build
cmake ..
make -j
sudo make install # optional, make it ready to be used by vLLM/SGLang
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
&lt;/ol&gt; 
&lt;p&gt;For Cambricon MLU builds, configure CMake with &lt;code&gt;-DUSE_MLU=ON&lt;/code&gt;. For example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;mkdir build
cd build
cmake .. -DUSE_MLU=ON -DNEUWARE_ROOT=/usr/local/neuware
make -j
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2 id=&quot;milestones&quot;&gt; 🛣️ Incoming Milestones&lt;/h2&gt; 
&lt;ul class=&quot;task-list&quot;&gt; 
 &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;cbx_0&quot; checked=&quot;true&quot; disabled=&quot;true&quot; /&gt;&lt;label for=&quot;cbx_0&quot;&gt; First release of Mooncake and integrate with latest vLLM&lt;/label&gt;&lt;/li&gt; 
 &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;cbx_1&quot; disabled=&quot;true&quot; /&gt;&lt;label for=&quot;cbx_1&quot;&gt; Share KV caches across multiple serving engines&lt;/label&gt;&lt;/li&gt; 
 &lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;cbx_2&quot; disabled=&quot;true&quot; /&gt;&lt;label for=&quot;cbx_2&quot;&gt; User and developer documentation&lt;/label&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2 id=&quot;trace&quot;&gt;📦 Open Source Trace&lt;/h2&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
    &quot;timestamp&quot;: 27482,
    &quot;input_length&quot;: 6955,
    &quot;output_length&quot;: 52,
    &quot;hash_ids&quot;: [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 2353, 2354]
}
{
    &quot;timestamp&quot;: 30535,
    &quot;input_length&quot;: 6472,
    &quot;output_length&quot;: 26,
    &quot;hash_ids&quot;: [46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 2366]
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The above presents two samples from our trace dataset. The trace includes the timing of request arrivals, the number of input tokens, the number of output tokens, and the remapped block hash. To protect our customers&#39; privacy, we applied several mechanisms to remove user-related information while preserving the dataset&#39;s utility for simulated evaluation. More descriptions of the trace (e.g., up to 50% cache hit ratio) can be found in Section 4 of the technical report.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Update[Feb 21, 2025]: The updated &lt;a href=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/FAST25-release/traces&quot;&gt;traces&lt;/a&gt; used in our FAST&#39;25 paper have been released! Please refer to the paper&#39;s appendix (found &lt;a href=&quot;https://raw.githubusercontent.com/kvcache-ai/Mooncake/main/FAST25-release/Mooncake-FAST25.pdf&quot;&gt;here&lt;/a&gt;) for more details.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt; 
&lt;h2 id=&quot;citation&quot;&gt;📑 Citation&lt;/h2&gt; Please kindly cite our paper if you find the paper or the traces are useful: 
&lt;pre&gt;&lt;code class=&quot;language-bibtex&quot;&gt;@article{qin2025mooncake_tos,
  author    = {Qin Ruoyu and Li Zheming and He Weiran and Cui Jialei and Tang Heyi and Ren Feng and Ma Teng and Cai Shangming and Zhang Yineng and Zhang Mingxing and Wu Yongwei and Zheng Weimin and Xu Xinran},
  title     = {Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving},
  year      = {2025},
  publisher = {Association for Computing Machinery},
  address   = {New York, NY, USA},
  issn      = {1553-3077},
  url       = {https://doi.org/10.1145/3773772},
  doi       = {10.1145/3773772},
  journal   = {ACM Trans. Storage},
  month     = {nov},
  keywords  = {Machine learning system, LLM serving, KVCache},
}

@inproceedings{qin2025mooncake,
  author    = {Ruoyu Qin and Zheming Li and Weiran He and Jialei Cui and Feng Ren and Mingxing Zhang and Yongwei Wu and Weimin Zheng and Xinran Xu},
  title     = {Mooncake: Trading More Storage for Less Computation {\textemdash} A {KVCache-centric} Architecture for Serving {LLM} Chatbot},
  booktitle = {23rd USENIX Conference on File and Storage Technologies (FAST 25)},
  year      = {2025},
  isbn      = {978-1-939133-45-8},
  address   = {Santa Clara, CA},
  pages     = {155--170},
  url       = {https://www.usenix.org/conference/fast25/presentation/qin},
  publisher = {USENIX Association},
  month     = {feb},
}

@article{qin2024mooncake_arxiv,
  title  = {Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving},
  author = {Ruoyu Qin and Zheming Li and Weiran He and Mingxing Zhang and Yongwei Wu and Weimin Zheng and Xinran Xu},
  year   = {2024},
  url    = {https://arxiv.org/abs/2407.00079},
}
&lt;/code&gt;&lt;/pre&gt;</description>
      
      <media:content url="https://repository-images.githubusercontent.com/819733173/b643a629-a15b-4d3d-9693-d98caeed4a08" medium="image" />
      
    </item>
    
    <item>
      <title>NVIDIA/cuda-samples</title>
      <link>https://github.com/NVIDIA/cuda-samples</link>
      <description>&lt;p&gt;Samples for CUDA Developers which demonstrates features in CUDA Toolkit&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;CUDA Samples&lt;/h1&gt; 
&lt;p&gt;Samples for CUDA Developers which demonstrates features in CUDA Toolkit. This version supports &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;CUDA Toolkit 13.2&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Release Notes&lt;/h2&gt; 
&lt;p&gt;This section describes the release notes for the CUDA Samples on GitHub only.&lt;/p&gt; 
&lt;h3&gt;Change Log&lt;/h3&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/CHANGELOG.md&quot;&gt;Revision History&lt;/a&gt;&lt;/h3&gt; 
&lt;h2&gt;Getting Started&lt;/h2&gt; 
&lt;h3&gt;Prerequisites&lt;/h3&gt; 
&lt;p&gt;Download and install the &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;CUDA Toolkit&lt;/a&gt; for your corresponding platform. For system requirements and installation instructions of cuda toolkit, please refer to the &lt;a href=&quot;http://docs.nvidia.com/cuda/cuda-installation-guide-linux/&quot;&gt;Linux Installation Guide&lt;/a&gt;, and the &lt;a href=&quot;http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html&quot;&gt;Windows Installation Guide&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Getting the CUDA Samples&lt;/h3&gt; 
&lt;p&gt;Using git clone the repository of CUDA Samples using the command below.&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;git clone https://github.com/NVIDIA/cuda-samples.git
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Without using git the easiest way to use these samples is to download the zip file containing the current version by clicking the &quot;Download ZIP&quot; button on the repo page. You can then unzip the entire archive and use the samples.&lt;/p&gt; 
&lt;h2&gt;Building CUDA Samples&lt;/h2&gt; 
&lt;h3&gt;Building CUDA Samples&lt;/h3&gt; 
&lt;p&gt;The CUDA Samples are built using CMake. Follow the instructions below for building on Linux, Windows, and for cross-compilation to Tegra devices.&lt;/p&gt; 
&lt;h3&gt;Linux&lt;/h3&gt; 
&lt;p&gt;Ensure that CMake (version 3.20 or later) is installed. Install it using your package manager if necessary:&lt;/p&gt; 
&lt;p&gt;e.g. &lt;code&gt;sudo apt install cmake&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;Navigate to the root of the cloned repository and create a build directory:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;mkdir build &amp;amp;&amp;amp; cd build
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Configure the project with CMake:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake ..
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Build the samples:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;make -j$(nproc)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Run the samples from their respective directories in the build folder. You can also follow this process from and subdirectory of the samples repo, or from within any individual sample.&lt;/p&gt; 
&lt;h3&gt;Windows&lt;/h3&gt; 
&lt;p&gt;Language services for CMake are available in Visual Studio 2019 version 16.5 or later, and you can directly import the CUDA samples repository from either the root level or from any subdirectory or individual sample.&lt;/p&gt; 
&lt;p&gt;To build from the command line, open the &lt;code&gt;x64 Native Tools Command Prompt for VS&lt;/code&gt; provided with your Visual Studio installation.&lt;/p&gt; 
&lt;p&gt;Navigate to the root of the cloned repository and create a build directory:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;mkdir build &amp;amp;&amp;amp; cd build
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Configure the project with CMake - for example:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake .. -G &quot;Visual Studio 16 2019&quot; -A x64
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Open the generated solution file CUDA_Samples.sln in Visual Studio. Build the samples by selecting the desired configuration (e.g., Debug or Release) and pressing F7 (Build Solution).&lt;/p&gt; 
&lt;p&gt;Run the samples from the output directories specified in Visual Studio.&lt;/p&gt; 
&lt;h3&gt;Enabling On-GPU Debugging&lt;/h3&gt; 
&lt;p&gt;NVIDIA GPUs support on-GPU debugging through cuda-gdb. Enabling this may significantly affect application performance as certain compiler optimizations are disabled in this configuration, hence it&#39;s not on by default. Enablement of on-device debugging is controlled via the &lt;code&gt;-G&lt;/code&gt; switch to nvcc.&lt;/p&gt; 
&lt;p&gt;To enable cuda-gdb for samples builds, define the &lt;code&gt;ENABLE_CUDA_DEBUG&lt;/code&gt; flag on the CMake command line. For example:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake -DENABLE_CUDA_DEBUG=True ...
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Platform-Specific Samples&lt;/h3&gt; 
&lt;p&gt;Some CUDA samples are specific to certain platforms, and require passing flags into CMake to enable. In particular, we define the following platform-specific flags:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;BUILD_TEGRA&lt;/code&gt; - for Tegra-specific samples&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;To build these samples, set the variables either on the command line or through your CMake GUI. For example:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake -DBUILD_TEGRA=True ..
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Cross-Compilation for Tegra Platforms&lt;/h3&gt; 
&lt;p&gt;Install the NVIDIA toolchain and cross-compilation environment for Tegra devices as described in the Tegra Development Guide.&lt;/p&gt; 
&lt;p&gt;Ensure that CMake (version 3.20 or later) is installed.&lt;/p&gt; 
&lt;p&gt;Navigate to the root of the cloned repository and create a build directory:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;mkdir build &amp;amp;&amp;amp; cd build
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Configure the project with CMake, specifying the Tegra toolchain file. And you can use -DTARGET_FS to point to the target file system root path for necessary include and library files:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-linux.cmake -DTARGET_FS=/path/to/target/system/file/system
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Build the samples:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;make -j$(nproc)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Transfer the built binaries to the Tegra device and execute them there.&lt;/p&gt; 
&lt;h3&gt;Cross Building for Automotive Linux Platforms from the DriveOS Docker containers&lt;/h3&gt; 
&lt;p&gt;To build CUDA samples to the target platform from the DriveOS Docker containers, use the following instructions.&lt;/p&gt; 
&lt;p&gt;Mount the target Root Filesystem (RFS) in the container so that the CUDA cmake process has the correct paths to CUDA and other system libraries required to build the samples.&lt;/p&gt; 
&lt;p&gt;Create a temporary directory, &lt;code&gt;&amp;lt;temp&amp;gt;&lt;/code&gt; is any temporary directory of your choosing, for example, you can use &lt;code&gt;/drive/temp&lt;/code&gt;:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;$ mkdir /drive/&amp;lt;temp&amp;gt;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Mount the filesystem by running the following command:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;$ mount /drive/drive-linux/filesystem/targetfs-images/dev_nsr_desktop_ubuntu-24.04_thor_rfs.img /drive/temp
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Configure the project by running the following cmake command:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;$ mkdir build &amp;amp;&amp;amp; cd build
$ cmake .. -DBUILD_TEGRA=True \
  -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \
  -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-linux.cmake \
  -DTARGET_FS=/drive/temp \
  -DCMAKE_LIBRARY_PATH=/drive/temp/usr/local/cuda-13.1/thor/lib64/ \
  -DCMAKE_INCLUDE_PATH=/drive/temp/usr/local/cuda-13.1/thor/include/
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Please note that the following libraries are not pre-installed in the DriveOS dev-nsr target filesystem:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;libdrm-dev&lt;/li&gt; 
 &lt;li&gt;Vulkan&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;This causes the cmake command to throw errors related to the missing files, and as a result, the related samples will not build in later steps. This issue will be addressed in a future DriveOS release.&lt;/p&gt; 
&lt;p&gt;To build the samples with ignore the error mentioned above, you can use &lt;code&gt;--ignore-errors&lt;/code&gt;/&lt;code&gt;--keep-going&lt;/code&gt; or comment out the comment out the corresponding &lt;code&gt;add_subdirectory&lt;/code&gt; command in the CMakeLists.txt in the parent folder for the samples requiring Vulkan and libdrm_dev:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;$ make -j$(nproc) --ignore-errors # or --keep-going
&lt;/code&gt;&lt;/pre&gt; 
&lt;pre&gt;&lt;code&gt;# In cpp/5_Domain_Specific/CMakeList.txt
# add_subdirectory(simpleGL)
# add_subdirectory(simpleVulkan)
# add_subdirectory(simpleVulkanMMAP)

# In cpp/8_Platform_Specific/Tegra/CMakeList.txt
# add_subdirectory(simpleGLES_EGLOutput)
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;QNX&lt;/h3&gt; 
&lt;p&gt;Cross-compilation for QNX with CMake is supported in the CUDA 13.0 samples release and newer. An example build for the Tegra Thor QNX platform might look like this:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;$ mkdir build
$ cd build

QNX_HOST=/path/to/qnx/host \
QNX_TARGET=/path/to/qnx/target \
cmake .. \
-DBUILD_TEGRA=True \
-DCMAKE_CUDA_COMPILER=/usr/local/cuda-safe-13.0/bin/nvcc \
-DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/toolchain-aarch64-qnx.cmake \
-DCMAKE_LIBRARY_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/lib/stubs/ \
-DCMAKE_INCLUDE_PATH=/usr/local/cuda-safe-13.0/thor/targets/aarch64-qnx/include/
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Forward Compatibility&lt;/h3&gt; 
&lt;p&gt;To build samples with new CUDA Toolkit(CUDA 13.0 or later) and UMD(Version 580 or later) and old KMD(Version 550 or earlier)，you need to set the &lt;code&gt;CMAKE_PREFIX_PATH&lt;/code&gt; for using new driver library, the command might like this:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake -DCMAKE_PREFIX_PATH=/usr/local/cuda/lib64/stubs/ ..
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;CUDA Python samples&lt;/h2&gt; 
&lt;p&gt;The repository includes &lt;strong&gt;Python&lt;/strong&gt; examples under the &lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/python&quot;&gt;&lt;code&gt;python/&lt;/code&gt;&lt;/a&gt; directory. &lt;strong&gt;These samples are cuda.core–focused:&lt;/strong&gt; they use &lt;a href=&quot;https://nvidia.github.io/cuda-python/&quot;&gt;CUDA Python&lt;/a&gt;, with &lt;a href=&quot;https://nvidia.github.io/cuda-python/cuda-core/latest/&quot;&gt;&lt;code&gt;cuda.core&lt;/code&gt;&lt;/a&gt; for devices, programs, launches, and memory, alongside NumPy, CuPy, or framework interop where each sample notes.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Layout (same themes as the C++ samples):&lt;/strong&gt;&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Directory&lt;/th&gt; 
   &lt;th&gt;Contents&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;code&gt;python/1_GettingStarted/&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;Introductory scripts (e.g. &lt;code&gt;vectorAdd&lt;/code&gt;, &lt;code&gt;deviceQuery&lt;/code&gt;, &lt;code&gt;systemInfo&lt;/code&gt;, image blur with unified memory, NumPy vs CuPy).&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;code&gt;python/2_CoreConcepts/&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;Algorithms and techniques (e.g. reductions, histograms, FFT, stream overlap, &lt;code&gt;memoryResources&lt;/code&gt;, &lt;code&gt;cudaGraphs&lt;/code&gt;, &lt;code&gt;jitLtoLinking&lt;/code&gt;, &lt;code&gt;tmaTensorMap&lt;/code&gt;).&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;code&gt;python/3_FrameworkInterop/&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;Integration with PyTorch and TensorFlow.&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;code&gt;python/4_DistributedComputing/&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;Multi-GPU, peer-to-peer, and IPC patterns (&lt;code&gt;ipcMemoryPool&lt;/code&gt;).&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;code&gt;python/Utilities/&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;Shared helpers imported by some samples.&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;&lt;strong&gt;How to run:&lt;/strong&gt; The top-level CMake build does &lt;strong&gt;not&lt;/strong&gt; compile these samples. For each sample, use a Python 3.10+ environment with a matching &lt;a href=&quot;https://developer.nvidia.com/cuda-downloads&quot;&gt;CUDA Toolkit&lt;/a&gt; (the samples target CUDA 13.x and document exact package pins in &lt;code&gt;requirements.txt&lt;/code&gt;):&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd python/&amp;lt;category&amp;gt;/&amp;lt;sampleName&amp;gt;
pip install -r requirements.txt
python &amp;lt;sampleScript&amp;gt;.py
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Use each sample’s &lt;code&gt;README.md&lt;/code&gt; for prerequisites, CLI options, and expected output.&lt;/p&gt; 
&lt;h2&gt;Install Samples&lt;/h2&gt; 
&lt;h3&gt;Installation Path Structure&lt;/h3&gt; 
&lt;p&gt;The installation system automatically organizes samples into a structured directory layout based on:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Target Architecture&lt;/strong&gt;: ${CMAKE_SYSTEM_PROCESSOR}, e.g. &lt;code&gt;x64&lt;/code&gt;, &lt;code&gt;aarch64&lt;/code&gt;, &lt;code&gt;amd64&lt;/code&gt;, etc.&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Target OS&lt;/strong&gt;: &lt;code&gt;linux&lt;/code&gt;, &lt;code&gt;windows&lt;/code&gt;, &lt;code&gt;darwin&lt;/code&gt;, &lt;code&gt;qnx&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Build Type&lt;/strong&gt;: &lt;code&gt;release&lt;/code&gt;, &lt;code&gt;debug&lt;/code&gt;, etc.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;The default installation path is: &lt;code&gt;build/bin/${TARGET_ARCH}/${TARGET_OS}/${BUILD_TYPE}&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Linux x86_64 Release: &lt;code&gt;build/bin/x64/linux/release&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;Linux aarch64 Release: &lt;code&gt;build/bin/aarch64/linux/release&lt;/code&gt;&lt;/li&gt; 
 &lt;li&gt;Windows amd64 Release: &lt;code&gt;build/bin/amd64/windows/release&lt;/code&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Customizing Installation Paths&lt;/h3&gt; 
&lt;p&gt;You can customize the installation location using CMake variables during the configuration step:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;CMAKE_INSTALL_PREFIX&lt;/code&gt;: Changes the root installation directory (default: &lt;code&gt;build/bin&lt;/code&gt;)&lt;/p&gt; &lt;pre&gt;&lt;code&gt;cmake -DCMAKE_INSTALL_PREFIX=/custom/path ..
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;This will install to: &lt;code&gt;/custom/path/${TARGET_ARCH}/${TARGET_OS}/${BUILD_TYPE}&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;CUDA_SAMPLES_INSTALL_DIR&lt;/code&gt;: Specifies the exact final installation directory (overrides the structured path)&lt;/p&gt; &lt;pre&gt;&lt;code&gt;cmake -DCUDA_SAMPLES_INSTALL_DIR=/exact/install/path ..
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Install Samples on Linux&lt;/h3&gt; 
&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; You must first configure the project with CMake as described in the &lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/#linux&quot;&gt;Building CUDA Samples - Linux&lt;/a&gt; or [Building]section.&lt;/p&gt; 
&lt;p&gt;After configuring and building, install the samples:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cd build/
make install
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Install Samples on Windows&lt;/h3&gt; 
&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt; You must first configure the project with CMake as described in the &lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/#windows&quot;&gt;Building CUDA Samples - Windows&lt;/a&gt; section.&lt;/p&gt; 
&lt;h4&gt;Using Command Line&lt;/h4&gt; 
&lt;p&gt;After configuring with CMake, build and install from the &lt;code&gt;x64 Native Tools Command Prompt for VS&lt;/code&gt;:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-cmd&quot;&gt;cd build
cmake --build . --config Release
cmake --install . --config Release
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Replace &lt;code&gt;Release&lt;/code&gt; with &lt;code&gt;Debug&lt;/code&gt; if you want to install debug builds. For multi-configuration generators (like Visual Studio), the &lt;code&gt;--config&lt;/code&gt; flag determines which build type to install.&lt;/p&gt; 
&lt;h4&gt;Using Visual Studio IDE&lt;/h4&gt; 
&lt;p&gt;Alternatively, open the generated solution file &lt;code&gt;CUDA_Samples.sln&lt;/code&gt; in Visual Studio:&lt;/p&gt; 
&lt;ol&gt; 
 &lt;li&gt;Select the desired configuration (&lt;code&gt;Release&lt;/code&gt; or &lt;code&gt;Debug&lt;/code&gt;)&lt;/li&gt; 
 &lt;li&gt;Build the solution (F7 or Build &amp;gt; Build Solution)&lt;/li&gt; 
 &lt;li&gt;Right-click on the &lt;code&gt;INSTALL&lt;/code&gt; target under &lt;code&gt;CMakePredefinedTargets&lt;/code&gt; in Solution Explorer&lt;/li&gt; 
 &lt;li&gt;Select &quot;Build&quot;&lt;/li&gt; 
&lt;/ol&gt; 
&lt;h2&gt;Running All Samples as Tests&lt;/h2&gt; 
&lt;p&gt;It&#39;s important to note that the CUDA samples are &lt;em&gt;not&lt;/em&gt; intended as a validation suite for CUDA. They do not cover corner cases, they do not completely cover the runtime and driver APIs, are not intended for performance benchmarking, etc. That said, it can sometimes be useful to run all of the samples as a quick sanity check and we provide a script to do so, &lt;code&gt;run_tests.py&lt;/code&gt;.&lt;/p&gt; 
&lt;p&gt;This Python3 script finds all executables in a subdirectory you choose, matching application names with command line arguments specified in &lt;code&gt;test_args.json&lt;/code&gt;. It accepts the following command line arguments:&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Switch&lt;/th&gt; 
   &lt;th&gt;Purpose&lt;/th&gt; 
   &lt;th&gt;Example&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;--dir&lt;/td&gt; 
   &lt;td&gt;Specify the root directory to search for executables (recursively)&lt;/td&gt; 
   &lt;td&gt;--dir ./build/cpp&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;--config&lt;/td&gt; 
   &lt;td&gt;JSON configuration file for executable arguments&lt;/td&gt; 
   &lt;td&gt;--config test_args.json&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;--output&lt;/td&gt; 
   &lt;td&gt;Output directory for test results (stdout saved to .txt files - directory will be created if it doesn&#39;t exist)&lt;/td&gt; 
   &lt;td&gt;--output ./test&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;--args&lt;/td&gt; 
   &lt;td&gt;Global arguments to pass to all executables (not currently used)&lt;/td&gt; 
   &lt;td&gt;--args arg_1 arg_2 ...&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;--parallel&lt;/td&gt; 
   &lt;td&gt;Number of applications to execute in parallel.&lt;/td&gt; 
   &lt;td&gt;--parallel 8&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;Application configurations are loaded from &lt;code&gt;test_args.json&lt;/code&gt; and matched against executable names (discarding the &lt;code&gt;.exe&lt;/code&gt; extension on Windows).&lt;/p&gt; 
&lt;p&gt;The script returns 0 on success, or the first non-zero error code encountered during testing on failure. It will also print a condensed list of samples that failed, if any.&lt;/p&gt; 
&lt;p&gt;There are three primary modes of configuration:&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Skip&lt;/strong&gt;&lt;/p&gt; 
&lt;p&gt;An executable configured with &quot;skip&quot; will not be executed. These generally rely on having attached graphical displays and are not suited to this kind of automation.&lt;/p&gt; 
&lt;p&gt;Configuration example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;&quot;fluidsGL&quot;: {
    &quot;skip&quot;: true
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You will see:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;Skipping fluidsGL (marked as skip in config)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Single Run&lt;/strong&gt;&lt;/p&gt; 
&lt;p&gt;For executables to run one time only with arguments, specify each argument as a list entry. Each entry in the JSON file will be appended to the command line, separated by a space.&lt;/p&gt; 
&lt;p&gt;All applications execute from their current directory, so all paths are relative to the application&#39;s location.&lt;/p&gt; 
&lt;p&gt;Note that if an application needs no arguments, this entry is optional. An executable found without a matching entry in the JSON will just run as &lt;code&gt;./application&lt;/code&gt; from its current directory.&lt;/p&gt; 
&lt;p&gt;Configuration example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;&quot;ptxgen&quot;: {
    &quot;args&quot;: [
        &quot;test.ll&quot;,
        &quot;-arch=compute_75&quot;
    ]
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You will see:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;Running ptxgen
    Command: ./ptxgen test.ll -arch=compute_75
    Test completed with return code 0
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Multiple Runs&lt;/strong&gt;&lt;/p&gt; 
&lt;p&gt;For executables to run multiple times with different command line arguments, specify any number of sets of args within a &quot;runs&quot; list.&lt;/p&gt; 
&lt;p&gt;As with single runs, all applications execute from their current directory, so all paths are relative to the application&#39;s location.&lt;/p&gt; 
&lt;p&gt;Configuration example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;&quot;recursiveGaussian&quot;: {
    &quot;runs&quot;: [
        {
            &quot;args&quot;: [
                &quot;-sigma=10&quot;,
                &quot;-file=data/ref_10.ppm&quot;
            ]
        },
        {
            &quot;args&quot;: [
                &quot;-sigma=14&quot;,
                &quot;-file=data/ref_14.ppm&quot;
            ]
        },
        {
            &quot;args&quot;: [
                &quot;-sigma=18&quot;,
                &quot;-file=data/ref_18.ppm&quot;
            ]
        },
        {
            &quot;args&quot;: [
                &quot;-sigma=22&quot;,
                &quot;-file=data/ref_22.ppm&quot;
            ]
        }
    ]
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You will see:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;Running recursiveGaussian (run 1/4)
    Command: ./recursiveGaussian -sigma=10 -file=data/ref_10.ppm
    Test completed with return code 0
Running recursiveGaussian (run 2/4)
    Command: ./recursiveGaussian -sigma=14 -file=data/ref_14.ppm
    Test completed with return code 0
Running recursiveGaussian (run 3/4)
    Command: ./recursiveGaussian -sigma=18 -file=data/ref_18.ppm
    Test completed with return code 0
Running recursiveGaussian (run 4/4)
    Command: ./recursiveGaussian -sigma=22 -file=data/ref_22.ppm
    Test completed with return code 0
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Example Usage&lt;/h3&gt; 
&lt;p&gt;Here is an example set of commands to build and test all of the samples.&lt;/p&gt; 
&lt;p&gt;First, build:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;mkdir build
cd build
cmake ..
make -j$(nproc)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Now, return to the samples root directory and run the test script:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd ..
python3 run_tests.py --output ./test --dir ./build/cpp --config test_args.json
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If all applications run successfully, you will see something similar to this (the specific number of samples will depend on your build type and system configuration):&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;Test Summary:
Ran 199 test runs for 180 executables.
All test runs passed!
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If some samples fail, you will see something like this:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;Test Summary:
Ran 199 test runs for 180 executables.
Failed runs (2):
  bicubicTexture (run 1/5): Failed (code 1)
  Mandelbrot (run 1/2): Failed (code 1)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You can inspect the stdout logs in the output directory (generally &lt;code&gt;APM_&amp;lt;application_name&amp;gt;.txt&lt;/code&gt; or &lt;code&gt;APM_&amp;lt;application_name&amp;gt;.run&amp;lt;n&amp;gt;.txt&lt;/code&gt;) to help determine what may have gone wrong from the output logs. Please file issues against the samples repository if you believe a sample is failing incorrectly on your system.&lt;/p&gt; 
&lt;h2&gt;Samples list&lt;/h2&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/0_Introduction/README.md&quot;&gt;0. Introduction&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Basic CUDA samples for beginners that illustrate key concepts with using CUDA and CUDA runtime APIs.&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/1_Utilities/README.md&quot;&gt;1. Utilities&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Utility samples that demonstrate how to query device capabilities and measure GPU/CPU bandwidth.&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/2_Concepts_and_Techniques/README.md&quot;&gt;2. Concepts and Techniques&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that demonstrate CUDA related concepts and common problem solving techniques.&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/3_CUDA_Features/README.md&quot;&gt;3. CUDA Features&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that demonstrate CUDA Features (Cooperative Groups, CUDA Dynamic Parallelism, CUDA Graphs etc).&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/4_CUDA_Libraries/README.md&quot;&gt;4. CUDA Libraries&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that demonstrate how to use CUDA platform libraries (NPP, NVJPEG, NVGRAPH cuBLAS, cuFFT, cuSPARSE, cuSOLVER and cuRAND).&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/5_Domain_Specific/README.md&quot;&gt;5. Domain Specific&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that are specific to domain (Graphics, Finance, Image Processing).&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/6_Performance/README.md&quot;&gt;6. Performance&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that demonstrate performance optimization.&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/7_libNVVM/README.md&quot;&gt;7. libNVVM&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that demonstrate the use of libNVVVM and NVVM IR.&lt;/p&gt; 
&lt;h3&gt;&lt;a href=&quot;https://raw.githubusercontent.com/NVIDIA/cuda-samples/master/cpp/8_Platform_Specific/Tegra/README.md&quot;&gt;8. Platform Specific&lt;/a&gt;&lt;/h3&gt; 
&lt;p&gt;Samples that are specific to certain platforms (Tegra, cuDLA, NvMedia, NvSci, OpenGL ES).&lt;/p&gt; 
&lt;h2&gt;Dependencies&lt;/h2&gt; 
&lt;p&gt;Some CUDA Samples rely on third-party applications and/or libraries, or features provided by the CUDA Toolkit and Driver, to either build or execute. These dependencies are listed below.&lt;/p&gt; 
&lt;p&gt;If a sample has a third-party dependency that is available on the system, but is not installed, the sample will waive itself at build time.&lt;/p&gt; 
&lt;p&gt;Each sample&#39;s dependencies are listed in its README&#39;s Dependencies section.&lt;/p&gt; 
&lt;h3&gt;Third-Party Dependencies&lt;/h3&gt; 
&lt;p&gt;These third-party dependencies are required by some CUDA samples. If available, these dependencies are either installed on your system automatically, or are installable via your system&#39;s package manager (Linux) or a third-party website.&lt;/p&gt; 
&lt;h4&gt;FreeImage&lt;/h4&gt; 
&lt;p&gt;FreeImage is an open source imaging library. FreeImage can usually be installed on Linux using your distribution&#39;s package manager system. FreeImage can also be downloaded from the FreeImage website.&lt;/p&gt; 
&lt;p&gt;To set up FreeImage on a Windows system, extract the FreeImage DLL distribution into the folder &lt;code&gt;./Common/FreeImage/Dist/x64&lt;/code&gt; such that it contains the .h and .lib files. Copy the .dll file to the Release/ Debug/ execution folder or pass the FreeImage folder when cmake configuring with the &lt;code&gt;-DFreeImage_INCLUDE_DIR&lt;/code&gt; and &lt;code&gt;-DFreeImage_LIBRARY&lt;/code&gt; options.&lt;/p&gt; 
&lt;h4&gt;Message Passing Interface&lt;/h4&gt; 
&lt;p&gt;MPI (Message Passing Interface) is an API for communicating data between distributed processes. A MPI compiler can be installed using your Linux distribution&#39;s package manager system. It is also available on some online resources, such as &lt;a href=&quot;http://www.open-mpi.org/&quot;&gt;Open MPI&lt;/a&gt;. On Windows, to build and run MPI-CUDA applications one can install &lt;a href=&quot;https://msdn.microsoft.com/en-us/library/bb524831(v=vs.85).aspx&quot;&gt;MS-MPI SDK&lt;/a&gt;.&lt;/p&gt; 
&lt;h4&gt;Only 64-Bit&lt;/h4&gt; 
&lt;p&gt;Some samples can only be run on a 64-bit operating system.&lt;/p&gt; 
&lt;h4&gt;DirectX&lt;/h4&gt; 
&lt;p&gt;DirectX is a collection of APIs designed to allow development of multimedia applications on Microsoft platforms. For Microsoft platforms, NVIDIA&#39;s CUDA Driver supports DirectX. Several CUDA Samples for Windows demonstrates CUDA-DirectX Interoperability, for building such samples one needs to install Microsoft Visual Studio 2012 or higher which provides Microsoft Windows SDK for Windows 8.&lt;/p&gt; 
&lt;h4&gt;DirectX12&lt;/h4&gt; 
&lt;p&gt;DirectX 12 is a collection of advanced low-level programming APIs which can reduce driver overhead, designed to allow development of multimedia applications on Microsoft platforms starting with Windows 10 OS onwards. For Microsoft platforms, NVIDIA&#39;s CUDA Driver supports DirectX. Few CUDA Samples for Windows demonstrates CUDA-DirectX12 Interoperability, for building such samples one needs to install &lt;a href=&quot;https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk&quot;&gt;Windows 10 SDK or higher&lt;/a&gt;, with VS 2015 or VS 2017.&lt;/p&gt; 
&lt;h4&gt;OpenGL&lt;/h4&gt; 
&lt;p&gt;OpenGL is a graphics library used for 2D and 3D rendering. On systems which support OpenGL, NVIDIA&#39;s OpenGL implementation is provided with the CUDA Driver.&lt;/p&gt; 
&lt;h4&gt;OpenGL ES&lt;/h4&gt; 
&lt;p&gt;OpenGL ES is an embedded systems graphics library used for 2D and 3D rendering. On systems which support OpenGL ES, NVIDIA&#39;s OpenGL ES implementation is provided with the CUDA Driver.&lt;/p&gt; 
&lt;h4&gt;Freeglut&lt;/h4&gt; 
&lt;p&gt;Freeglut is an open-source software library that serves as a replacement for the original OpenGL Utility Toolkit (GLUT). Its primary purpose is to make it easier for developers to create and manage windows containing OpenGL contexts, as well as handle input from devices like the mouse, keyboard, and joystick, across a wide range of platforms. To set up Freeglut on a Windowson on ARM system, you need to download the source from &lt;a href=&quot;https://freeglut.sourceforge.net/&quot;&gt;Freeglut website&lt;/a&gt;, build freeglut on your system, and copy the freeglut.lib into the folder &lt;code&gt;./Common/lib/x64&lt;/code&gt; and copy the freeglut.dll file into the &lt;code&gt;./bin/win64/${BUILD_TYPE}&lt;/code&gt; execution folder.&lt;/p&gt; 
&lt;h4&gt;Vulkan&lt;/h4&gt; 
&lt;p&gt;Vulkan is a low-overhead, cross-platform 3D graphics and compute API. Vulkan targets high-performance realtime 3D graphics applications such as video games and interactive media across all platforms. On systems which support Vulkan, NVIDIA&#39;s Vulkan implementation is provided with the CUDA Driver. For building and running Vulkan applications one needs to install the &lt;a href=&quot;https://www.lunarg.com/vulkan-sdk/&quot;&gt;Vulkan SDK&lt;/a&gt;.&lt;/p&gt; 
&lt;h4&gt;GLEW&lt;/h4&gt; 
&lt;p&gt;GLEW (OpenGL Extension Wrangler Library) is a cross-platform, open-source C/C++ library designed to simplify the process of using modern OpenGL features and extensions. Its main function is to dynamically load OpenGL function pointers at runtime, allowing developers to access both core OpenGL functions and additional features provided by hardware vendors, known as extensions. To set up GLEW on a Windows on ARM system, you need to download the source from &lt;a href=&quot;https://glew.sourceforge.net/&quot;&gt;GLEW website&lt;/a&gt;, build GLEW on your system, and copy the glew32.lib into the folder &lt;code&gt;./Common/lib/x64&lt;/code&gt; and the glew32.dll into the &lt;code&gt;./bin/win64/${BUILD_TYPE}&lt;/code&gt; execution folder.&lt;/p&gt; 
&lt;h4&gt;GLFW&lt;/h4&gt; 
&lt;p&gt;GLFW is a lightweight, open-source library designed for managing OpenGL, OpenGL ES, and Vulkan contexts. It simplifies the process of creating and managing windows, handling user input (keyboard, mouse, and joystick), and working with multiple monitors in a cross-platform manner.&lt;/p&gt; 
&lt;p&gt;To set up GLFW on a Windows system, Download the pre-built binaries from &lt;a href=&quot;https://www.glfw.org/download.html&quot;&gt;GLFW website&lt;/a&gt; and extract the zip file into the folder, pass the GLFW include header folder as &lt;code&gt;-DGLFW_INCLUDE_DIR&lt;/code&gt; and lib folder as &lt;code&gt;-DGLFW_LIB_DIR&lt;/code&gt; for cmake configuring.&lt;/p&gt; 
&lt;h4&gt;OpenMP&lt;/h4&gt; 
&lt;p&gt;OpenMP is an API for multiprocessing programming. OpenMP can be installed using your Linux distribution&#39;s package manager system. It usually comes preinstalled with GCC. It can also be found at the &lt;a href=&quot;http://openmp.org/&quot;&gt;OpenMP website&lt;/a&gt;. For compilers such as clang, make sure OpenMP is enabled when building LLVM by including &lt;code&gt;openmp&lt;/code&gt; in &lt;code&gt;LLVM_ENABLE_PROJECTS&lt;/code&gt;. If you use clang (from an installed prefix or directly from an LLVM build tree) with OpenMP enabled, set CMAKE_CXX_COMPILER and CMAKE_CUDA_HOST_COMPILER to that clang++ and let CMake detect OpenMP; extra OpenMP_* CMake variables are usually not needed. When using clang++ directly from an LLVM build tree, you may need to copy the generated &lt;code&gt;omp.h&lt;/code&gt; into the &lt;code&gt;include/&lt;/code&gt; directory under the path reported by &lt;code&gt;clang++ --print-resource-dir&lt;/code&gt; before building the samples. When using an installed clang with OpenMP, if you see &lt;a href=&quot;http://libomp.so&quot;&gt;libomp.so&lt;/a&gt;: cannot open shared object file at runtime, add the directory that contains &lt;a href=&quot;http://libomp.so&quot;&gt;libomp.so&lt;/a&gt; to LD_LIBRARY_PATH (or configure it via ld.so.conf.d) so the dynamic linker can locate the OpenMP runtime.&lt;/p&gt; 
&lt;h4&gt;Screen&lt;/h4&gt; 
&lt;p&gt;Screen is a windowing system found on the QNX operating system. Screen is usually found as part of the root filesystem.&lt;/p&gt; 
&lt;h4&gt;X11&lt;/h4&gt; 
&lt;p&gt;X11 is a windowing system commonly found on *-nix style operating systems. X11 can be installed using your Linux distribution&#39;s package manager, and comes preinstalled on Mac OS X systems.&lt;/p&gt; 
&lt;h4&gt;EGL&lt;/h4&gt; 
&lt;p&gt;EGL is an interface between Khronos rendering APIs (such as OpenGL, OpenGL ES or OpenVG) and the underlying native platform windowing system.&lt;/p&gt; 
&lt;h4&gt;EGLOutput&lt;/h4&gt; 
&lt;p&gt;EGLOutput is a set of EGL extensions which allow EGL to render directly to the display.&lt;/p&gt; 
&lt;h4&gt;EGLSync&lt;/h4&gt; 
&lt;p&gt;EGLSync is a set of EGL extensions which provides sync objects that are synchronization primitive, representing events whose completion can be tested or waited upon.&lt;/p&gt; 
&lt;h4&gt;NVSCI&lt;/h4&gt; 
&lt;p&gt;NvSci is a set of communication interface libraries out of which CUDA interops with NvSciBuf and NvSciSync. NvSciBuf allows applications to allocate and exchange buffers in memory. NvSciSync allows applications to manage synchronization objects which coordinate when sequences of operations begin and end.&lt;/p&gt; 
&lt;h4&gt;NvMedia&lt;/h4&gt; 
&lt;p&gt;NvMedia provides powerful processing of multimedia data for true hardware acceleration across NVIDIA Tegra devices. Applications leverage the NvMedia Application Programming Interface (API) to process the image and video data.&lt;/p&gt; 
&lt;h3&gt;CUDA Features&lt;/h3&gt; 
&lt;p&gt;These CUDA features are needed by some CUDA samples. They are provided by either the CUDA Toolkit or CUDA Driver. Some features may not be available on your system.&lt;/p&gt; 
&lt;h4&gt;CUFFT Callback Routines&lt;/h4&gt; 
&lt;p&gt;CUFFT Callback Routines are user-supplied kernel routines that CUFFT will call when loading or storing data. These callback routines are only available on Linux x86_64 and ppc64le systems.&lt;/p&gt; 
&lt;h4&gt;CUDA Dynamic Parallellism&lt;/h4&gt; 
&lt;p&gt;CDP (CUDA Dynamic Parallellism) allows kernels to be launched from threads running on the GPU. CDP is only available on GPUs with SM architecture of 3.5 or above.&lt;/p&gt; 
&lt;h4&gt;Multi-block Cooperative Groups&lt;/h4&gt; 
&lt;p&gt;Multi Block Cooperative Groups(MBCG) extends Cooperative Groups and the CUDA programming model to express inter-thread-block synchronization. MBCG is available on GPUs with Pascal and higher architecture.&lt;/p&gt; 
&lt;h4&gt;Multi-Device Cooperative Groups&lt;/h4&gt; 
&lt;p&gt;Multi Device Cooperative Groups extends Cooperative Groups and the CUDA programming model enabling thread blocks executing on multiple GPUs to cooperate and synchronize as they execute. This feature is available on GPUs with Pascal and higher architecture.&lt;/p&gt; 
&lt;h4&gt;CUBLAS&lt;/h4&gt; 
&lt;p&gt;CUBLAS (CUDA Basic Linear Algebra Subroutines) is a GPU-accelerated version of the BLAS library.&lt;/p&gt; 
&lt;h4&gt;CUDA Interprocess Communication&lt;/h4&gt; 
&lt;p&gt;IPC (Interprocess Communication) allows processes to share device pointers.&lt;/p&gt; 
&lt;h4&gt;CUFFT&lt;/h4&gt; 
&lt;p&gt;CUFFT (CUDA Fast Fourier Transform) is a GPU-accelerated FFT library.&lt;/p&gt; 
&lt;h4&gt;CURAND&lt;/h4&gt; 
&lt;p&gt;CURAND (CUDA Random Number Generation) is a GPU-accelerated RNG library.&lt;/p&gt; 
&lt;h4&gt;CUSPARSE&lt;/h4&gt; 
&lt;p&gt;CUSPARSE (CUDA Sparse Matrix) provides linear algebra subroutines used for sparse matrix calculations.&lt;/p&gt; 
&lt;h4&gt;CUSOLVER&lt;/h4&gt; 
&lt;p&gt;CUSOLVER library is a high-level package based on the CUBLAS and CUSPARSE libraries. It combines three separate libraries under a single umbrella, each of which can be used independently or in concert with other toolkit libraries. The intent ofCUSOLVER is to provide useful LAPACK-like features, such as common matrix factorization and triangular solve routines for dense matrices, a sparse least-squares solver and an eigenvalue solver. In addition cuSolver provides a new refactorization library useful for solving sequences of matrices with a shared sparsity pattern.&lt;/p&gt; 
&lt;h4&gt;NPP&lt;/h4&gt; 
&lt;p&gt;NPP (NVIDIA Performance Primitives) provides GPU-accelerated image, video, and signal processing functions.&lt;/p&gt; 
&lt;h4&gt;NVGRAPH&lt;/h4&gt; 
&lt;p&gt;NVGRAPH is a GPU-accelerated graph analytics library.&lt;/p&gt; 
&lt;h4&gt;NVJPEG&lt;/h4&gt; 
&lt;p&gt;NVJPEG library provides high-performance, GPU accelerated JPEG decoding functionality for image formats commonly used in deep learning and hyperscale multimedia applications.&lt;/p&gt; 
&lt;h4&gt;NVRTC&lt;/h4&gt; 
&lt;p&gt;NVRTC (CUDA RunTime Compilation) is a runtime compilation library for CUDA C++.&lt;/p&gt; 
&lt;h4&gt;NVJITLINK&lt;/h4&gt; 
&lt;p&gt;NVJITLINK is a CUDA runtime library that links multiple GPU device code objects at runtime and enables just‑in‑time link‑time optimization (JIT LTO). It can take device code from tools such as NVCC and NVRTC, link and optimize it on the fly, and produce the final GPU binary.For more details, see: &lt;a href=&quot;https://docs.nvidia.com/cuda/nvjitlink/index.html&quot;&gt;https://docs.nvidia.com/cuda/nvjitlink/index.html&lt;/a&gt;&lt;/p&gt; 
&lt;h4&gt;Stream Priorities&lt;/h4&gt; 
&lt;p&gt;Stream Priorities allows the creation of streams with specified priorities. Stream Priorities is only available on GPUs with SM architecture of 3.5 or above.&lt;/p&gt; 
&lt;h4&gt;Unified Virtual Memory&lt;/h4&gt; 
&lt;p&gt;UVM (Unified Virtual Memory) enables memory that can be accessed by both the CPU and GPU without explicit copying between the two. UVM is only available on Linux and Windows systems.&lt;/p&gt; 
&lt;h4&gt;16-bit Floating Point&lt;/h4&gt; 
&lt;p&gt;FP16 is a 16-bit floating-point format. One bit is used for the sign, five bits for the exponent, and ten bits for the mantissa.&lt;/p&gt; 
&lt;h4&gt;C++11 CUDA&lt;/h4&gt; 
&lt;p&gt;NVCC support of &lt;a href=&quot;https://en.wikipedia.org/wiki/C++11&quot;&gt;C++11 features&lt;/a&gt;.&lt;/p&gt; 
&lt;h4&gt;CMake&lt;/h4&gt; 
&lt;p&gt;The libNVVM samples are built using &lt;a href=&quot;https://cmake.org/&quot;&gt;CMake&lt;/a&gt; 3.10 or later.&lt;/p&gt; 
&lt;h2&gt;Contributors Guide&lt;/h2&gt; 
&lt;p&gt;We welcome your input on issues and suggestions for samples. At this time we are not accepting contributions from the public, check back here as we evolve our contribution model.&lt;/p&gt; 
&lt;p&gt;We use Google C++ Style Guide for all the sources &lt;a href=&quot;https://google.github.io/styleguide/cppguide.html&quot;&gt;https://google.github.io/styleguide/cppguide.html&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Frequently Asked Questions&lt;/h2&gt; 
&lt;p&gt;Answers to frequently asked questions about CUDA can be found at &lt;a href=&quot;http://developer.nvidia.com/cuda-faq&quot;&gt;http://developer.nvidia.com/cuda-faq&lt;/a&gt; and in the &lt;a href=&quot;http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html&quot;&gt;CUDA Toolkit Release Notes&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;References&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://docs.nvidia.com/cuda/cuda-programming-guide/index.html&quot;&gt;CUDA Programming Guide&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://developer.nvidia.com/blog/?tags=accelerated-computing&quot;&gt;Accelerated Computing Blog&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Attributions&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Teapot image is obtained from &lt;a href=&quot;https://en.wikipedia.org/wiki/File:Original_Utah_Teapot.jpg&quot;&gt;Wikimedia&lt;/a&gt; and is licensed under the Creative Commons &lt;a href=&quot;https://creativecommons.org/licenses/by-sa/2.0/deed.en&quot;&gt;Attribution-Share Alike 2.0&lt;/a&gt; Generic license. The image is modified for samples use cases.&lt;/li&gt; 
&lt;/ul&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/aacd554c76ab4f5cd3eccc0dade602193f722b6042db7695ce91938a9f7b406b/NVIDIA/cuda-samples" medium="image" />
      
    </item>
    
    <item>
      <title>PX4/PX4-Autopilot</title>
      <link>https://github.com/PX4/PX4-Autopilot</link>
      <description>&lt;p&gt;PX4 Autopilot Software&lt;/p&gt;&lt;hr&gt;&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://px4.io&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/site/px4_logo.svg?sanitize=true&quot; alt=&quot;PX4 Autopilot&quot; width=&quot;240&quot; /&gt; &lt;/a&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;em&gt;The autopilot stack the industry builds on.&lt;/em&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://github.com/PX4/PX4-Autopilot/releases&quot;&gt;&lt;img src=&quot;https://img.shields.io/github/release/PX4/PX4-Autopilot.svg?sanitize=true&quot; alt=&quot;Release&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://zenodo.org/badge/latestdoi/22634/PX4/PX4-Autopilot&quot;&gt;&lt;img src=&quot;https://zenodo.org/badge/22634/PX4/PX4-Autopilot.svg?sanitize=true&quot; alt=&quot;DOI&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://discord.gg/dronecode&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/1022170275984457759?label=discord&amp;amp;logo=discord&amp;amp;logoColor=white&amp;amp;color=5865F2&quot; alt=&quot;Discord&quot; /&gt;&lt;/a&gt; &lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://www.bestpractices.dev/projects/6520&quot;&gt;&lt;img src=&quot;https://www.bestpractices.dev/projects/6520/badge&quot; alt=&quot;OpenSSF Best Practices&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://insights.linuxfoundation.org/project/px4&quot;&gt;&lt;img src=&quot;https://insights.linuxfoundation.org/api/badge/health-score?project=px4&quot; alt=&quot;LFX Health Score&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://insights.linuxfoundation.org/project/px4&quot;&gt;&lt;img src=&quot;https://insights.linuxfoundation.org/api/badge/contributors?project=px4&quot; alt=&quot;LFX Contributors&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://insights.linuxfoundation.org/project/px4&quot;&gt;&lt;img src=&quot;https://insights.linuxfoundation.org/api/badge/active-contributors?project=px4&quot; alt=&quot;LFX Active Contributors&quot; /&gt;&lt;/a&gt; &lt;/p&gt; 
&lt;hr /&gt; 
&lt;h2&gt;About&lt;/h2&gt; 
&lt;p&gt;PX4 is an open-source autopilot stack for drones and unmanned vehicles. It supports multirotors, fixed-wing, VTOL, rovers, and many more experimental platforms from racing quads to industrial survey aircraft. It runs on &lt;a href=&quot;https://nuttx.apache.org/&quot;&gt;NuttX&lt;/a&gt;, Linux, and macOS. Licensed under &lt;a href=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/LICENSE&quot;&gt;BSD 3-Clause&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Why PX4&lt;/h2&gt; 
&lt;p&gt;&lt;strong&gt;Modular architecture.&lt;/strong&gt; PX4 is built around &lt;a href=&quot;https://docs.px4.io/main/en/middleware/uorb.html&quot;&gt;uORB&lt;/a&gt;, a &lt;a href=&quot;https://docs.px4.io/main/en/middleware/uxrce_dds.html&quot;&gt;DDS&lt;/a&gt;-compatible publish/subscribe middleware. Modules are fully parallelized and thread safe. You can build custom configurations and trim what you don&#39;t need.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Wide hardware support.&lt;/strong&gt; PX4 runs on a wide range of &lt;a href=&quot;https://docs.px4.io/main/en/flight_controller/&quot;&gt;autopilot boards&lt;/a&gt; and supports an extensive set of sensors, telemetry radios, and actuators through the &lt;a href=&quot;https://pixhawk.org/&quot;&gt;Pixhawk&lt;/a&gt; ecosystem.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Developer friendly.&lt;/strong&gt; First-class support for &lt;a href=&quot;https://mavlink.io/&quot;&gt;MAVLink&lt;/a&gt; and &lt;a href=&quot;https://docs.px4.io/main/en/ros2/&quot;&gt;DDS / ROS 2&lt;/a&gt; integration. Comprehensive &lt;a href=&quot;https://docs.px4.io/main/en/simulation/&quot;&gt;SITL simulation&lt;/a&gt;, hardware-in-the-loop testing, and &lt;a href=&quot;https://docs.px4.io/main/en/log/flight_log_analysis.html&quot;&gt;log analysis&lt;/a&gt; tools. An active developer community on &lt;a href=&quot;https://discord.gg/dronecode&quot;&gt;Discord&lt;/a&gt; and the &lt;a href=&quot;https://docs.px4.io/main/en/contribute/&quot;&gt;weekly dev call&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Vendor neutral governance.&lt;/strong&gt; PX4 is hosted under the &lt;a href=&quot;https://www.dronecode.org/&quot;&gt;Dronecode Foundation&lt;/a&gt;, part of the Linux Foundation. Business-friendly BSD-3 license. No single vendor controls the roadmap.&lt;/p&gt; 
&lt;h2&gt;Supported Vehicles&lt;/h2&gt; 
&lt;table&gt; 
 &lt;tbody&gt;
  &lt;tr&gt; 
   &lt;td align=&quot;center&quot;&gt; &lt;a href=&quot;https://docs.px4.io/main/en/frames_multicopter/&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/airframes/types/QuadRotorX.svg?sanitize=true&quot; width=&quot;50&quot; alt=&quot;Multicopter&quot; /&gt;&lt;br /&gt; &lt;sub&gt;Multicopter&lt;/sub&gt; &lt;/a&gt; &lt;/td&gt; 
   &lt;td align=&quot;center&quot;&gt; &lt;a href=&quot;https://docs.px4.io/main/en/frames_plane/&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/airframes/types/Plane.svg?sanitize=true&quot; width=&quot;50&quot; alt=&quot;Fixed Wing&quot; /&gt;&lt;br /&gt; &lt;sub&gt;Fixed Wing&lt;/sub&gt; &lt;/a&gt; &lt;/td&gt; 
   &lt;td align=&quot;center&quot;&gt; &lt;a href=&quot;https://docs.px4.io/main/en/frames_vtol/&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/airframes/types/VTOLPlane.svg?sanitize=true&quot; width=&quot;50&quot; alt=&quot;VTOL&quot; /&gt;&lt;br /&gt; &lt;sub&gt;VTOL&lt;/sub&gt; &lt;/a&gt; &lt;/td&gt; 
   &lt;td align=&quot;center&quot;&gt; &lt;a href=&quot;https://docs.px4.io/main/en/frames_rover/&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/airframes/types/Rover.svg?sanitize=true&quot; width=&quot;50&quot; alt=&quot;Rover&quot; /&gt;&lt;br /&gt; &lt;sub&gt;Rover&lt;/sub&gt; &lt;/a&gt; &lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt;
&lt;/table&gt; 
&lt;p&gt;&lt;sub&gt;…and many more: helicopters, autogyros, airships, submarines, boats, and other experimental platforms. These frames have basic support but are not part of the regular flight-test program. See the &lt;a href=&quot;https://docs.px4.io/main/en/airframes/airframe_reference.html&quot;&gt;full airframe reference&lt;/a&gt;.&lt;/sub&gt;&lt;/p&gt; 
&lt;h2&gt;Try PX4&lt;/h2&gt; 
&lt;p&gt;Run PX4 in simulation with a single command. No build tools, no dependencies beyond Docker:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;docker run --rm -it -p 14550:14550/udp px4io/px4-sitl:latest
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Open &lt;a href=&quot;https://qgroundcontrol.com&quot;&gt;QGroundControl&lt;/a&gt; and fly. See &lt;a href=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/dev_setup/px4_simulation_quickstart.md&quot;&gt;PX4 Simulation Quickstart&lt;/a&gt; for more options.&lt;/p&gt; 
&lt;h2&gt;Build from Source&lt;/h2&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/PX4/PX4-Autopilot.git --recursive
cd PX4-Autopilot
make px4_sitl
&lt;/code&gt;&lt;/pre&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-note&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-info mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Note&lt;/p&gt;
 &lt;p&gt;See the &lt;a href=&quot;https://docs.px4.io/main/en/development/development.html&quot;&gt;Development Guide&lt;/a&gt; for toolchain setup and build options.&lt;/p&gt; 
&lt;/div&gt; 
&lt;h2&gt;Documentation &amp;amp; Resources&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Resource&lt;/th&gt; 
   &lt;th&gt;Description&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/&quot;&gt;User Guide&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Build, configure, and fly with PX4&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/development/development.html&quot;&gt;Developer Guide&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Modify the flight stack, add peripherals, port to new hardware&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/airframes/airframe_reference.html&quot;&gt;Airframe Reference&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Full list of supported frames&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/flight_controller/&quot;&gt;Autopilot Hardware&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;Compatible flight controllers&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/releases/&quot;&gt;Release Notes&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;What&#39;s new in each release&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;&lt;a href=&quot;https://docs.px4.io/main/en/contribute/&quot;&gt;Contribution Guide&lt;/a&gt;&lt;/td&gt; 
   &lt;td&gt;How to contribute to PX4&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h2&gt;Community&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;strong&gt;Weekly Dev Call&lt;/strong&gt; — open to all developers (&lt;a href=&quot;https://www.dronecode.org/calendar/&quot;&gt;Dronecode calendar&lt;/a&gt;)&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Discord&lt;/strong&gt; — &lt;a href=&quot;https://discord.gg/dronecode&quot;&gt;Join the Dronecode server&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Discussion Forum&lt;/strong&gt; — &lt;a href=&quot;https://discuss.px4.io/&quot;&gt;PX4 Discuss&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Maintainers&lt;/strong&gt; — see &lt;a href=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/MAINTAINERS.md&quot;&gt;&lt;code&gt;MAINTAINERS.md&lt;/code&gt;&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;strong&gt;Contributor Stats&lt;/strong&gt; — &lt;a href=&quot;https://insights.lfx.linuxfoundation.org/foundation/dronecode&quot;&gt;LFX Insights&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Contributing&lt;/h2&gt; 
&lt;p&gt;We welcome contributions of all kinds — bug reports, documentation, new features, and code reviews. Please read the &lt;a href=&quot;https://docs.px4.io/main/en/contribute/&quot;&gt;Contribution Guide&lt;/a&gt; to get started.&lt;/p&gt; 
&lt;h2&gt;Citation&lt;/h2&gt; 
&lt;p&gt;If you use PX4 in academic work, please cite it. BibTeX:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bibtex&quot;&gt;@software{px4_autopilot,
  author    = {Meier, Lorenz and {The PX4 Contributors}},
  title     = {{PX4 Autopilot}},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.595432},
  url       = {https://px4.io}
}
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The DOI above is a Zenodo concept DOI that always resolves to the latest release. For a version-pinned citation, see the &lt;a href=&quot;https://doi.org/10.5281/zenodo.595432&quot;&gt;Zenodo record&lt;/a&gt; or our &lt;a href=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/CITATION.cff&quot;&gt;&lt;code&gt;CITATION.cff&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Governance&lt;/h2&gt; 
&lt;p&gt;The PX4 Autopilot project is hosted by the &lt;a href=&quot;https://www.dronecode.org/&quot;&gt;Dronecode Foundation&lt;/a&gt;, a &lt;a href=&quot;https://www.linuxfoundation.org/&quot;&gt;Linux Foundation&lt;/a&gt; Collaborative Project. Dronecode holds all PX4 trademarks and serves as the project&#39;s legal guardian, ensuring vendor-neutral stewardship — no single company owns the name or controls the roadmap. The source code is licensed under the &lt;a href=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/LICENSE&quot;&gt;BSD 3-Clause&lt;/a&gt; license, so you are free to use, modify, and distribute it in your own projects.&lt;/p&gt; 
&lt;p align=&quot;center&quot;&gt; &lt;a href=&quot;https://www.dronecode.org/&quot;&gt; &lt;img src=&quot;https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/docs/assets/site/dronecode_logo.svg?sanitize=true&quot; alt=&quot;Dronecode Logo&quot; width=&quot;180&quot; /&gt; &lt;/a&gt; &lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/3005bfb0376be02e1f32e21d655b9fa2b47bcc43eab0fea5d2f7f014c51ac50e/PX4/PX4-Autopilot" medium="image" />
      
    </item>
    
    <item>
      <title>monero-project/monero</title>
      <link>https://github.com/monero-project/monero</link>
      <description>&lt;p&gt;Monero: the secure, private, untraceable cryptocurrency&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;Monero&lt;/h1&gt; 
&lt;p&gt;Copyright (c) 2014-2024, The Monero Project Portions Copyright (c) 2012-2013 The Cryptonote developers.&lt;/p&gt; 
&lt;h2&gt;Table of Contents&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#development-resources&quot;&gt;Development resources&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#vulnerability-response&quot;&gt;Vulnerability response&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#research&quot;&gt;Research&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#announcements&quot;&gt;Announcements&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#translations&quot;&gt;Translations&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#coverage&quot;&gt;Coverage&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#introduction&quot;&gt;Introduction&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#about-this-project&quot;&gt;About this project&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#supporting-the-project&quot;&gt;Supporting the project&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#license&quot;&gt;License&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#contributing&quot;&gt;Contributing&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#scheduled-softwarenetwork-upgrades&quot;&gt;Scheduled software upgrades&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#release-staging-schedule-and-protocol&quot;&gt;Release staging schedule and protocol&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#compiling-monero-from-source&quot;&gt;Compiling Monero from source&lt;/a&gt; 
  &lt;ul&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#dependencies&quot;&gt;Dependencies&lt;/a&gt;&lt;/li&gt; 
   &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#guix-builds&quot;&gt;Guix builds&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#Internationalization&quot;&gt;Internationalization&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#using-tor&quot;&gt;Using Tor&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#Pruning&quot;&gt;Pruning&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#Debugging&quot;&gt;Debugging&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/#known-issues&quot;&gt;Known issues&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Development resources&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Web: &lt;a href=&quot;https://getmonero.org&quot;&gt;getmonero.org&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Mail: &lt;a href=&quot;mailto:dev@getmonero.org&quot;&gt;dev@getmonero.org&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;GitHub: &lt;a href=&quot;https://github.com/monero-project/monero&quot;&gt;https://github.com/monero-project/monero&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;IRC: &lt;a href=&quot;https://web.libera.chat/#monero-dev&quot;&gt;#monero-dev on Libera&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;It is HIGHLY recommended that you join the #monero-dev IRC channel if you are developing software that uses Monero. Due to the nature of this open source software project, joining this channel and idling is the best way to stay updated on best practices and new developments in the Monero ecosystem. All you need to do is join the IRC channel and idle to stay updated with the latest in Monero development. If you do not, you risk wasting resources on developing integrations that are not compatible with the Monero network. The Monero core team and community continuously make efforts to communicate updates, developments, and documentation via other platforms – but for the best information, you need to talk to other Monero developers, and they are on IRC. #monero-dev is about Monero development, not getting help about using Monero, or help about development of other software, including yours, unless it also pertains to Monero code itself. For these cases, checkout #monero.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Vulnerability response&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;Our &lt;a href=&quot;https://github.com/monero-project/meta/raw/master/VULNERABILITY_RESPONSE_PROCESS.md&quot;&gt;Vulnerability Response Process&lt;/a&gt; encourages responsible disclosure&lt;/li&gt; 
 &lt;li&gt;We are also available via &lt;a href=&quot;https://hackerone.com/monero&quot;&gt;HackerOne&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Research&lt;/h2&gt; 
&lt;p&gt;The &lt;a href=&quot;https://src.getmonero.org/resources/research-lab/&quot;&gt;Monero Research Lab&lt;/a&gt; is an open forum where the community coordinates research into Monero cryptography, protocols, fungibility, analysis, and more. We welcome collaboration and contributions from outside researchers! Because not all Lab work and publications are distributed as traditional preprints or articles, they may be easy to miss if you are conducting literature reviews for your own Monero research. You are encouraged to get in touch with the Monero research community if you have questions, wish to collaborate, or would like guidance to help avoid unnecessarily duplicating earlier or known work.&lt;/p&gt; 
&lt;p&gt;The Monero research community is available on IRC in &lt;a href=&quot;https://web.libera.chat/#monero-research-lab&quot;&gt;#monero-research-lab on Libera&lt;/a&gt;, which is also accessible via Matrix.&lt;/p&gt; 
&lt;h2&gt;Announcements&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;You can subscribe to an &lt;a href=&quot;https://lists.getmonero.org&quot;&gt;announcement listserv&lt;/a&gt; to get critical announcements from the Monero core team. The announcement list can be very helpful for knowing when software updates are needed.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Translations&lt;/h2&gt; 
&lt;p&gt;The CLI wallet is available in different languages. If you want to help translate it, see our self-hosted localization platform, Weblate, on &lt;a href=&quot;https://translate.getmonero.org/projects/monero/cli-wallet/&quot;&gt;translate.getmonero.org&lt;/a&gt;. Every translation &lt;em&gt;must&lt;/em&gt; be uploaded on the platform, pull requests directly editing the code in this repository will be closed. If you need help with Weblate, you can find a guide with screenshots &lt;a href=&quot;https://github.com/monero-ecosystem/monero-translations/raw/master/weblate.md&quot;&gt;here&lt;/a&gt;. &amp;nbsp;&lt;/p&gt; 
&lt;p&gt;If you need help/support/info about translations, contact the localization workgroup. You can find the complete list of contacts on the repository of the workgroup: &lt;a href=&quot;https://github.com/monero-ecosystem/monero-translations#contacts&quot;&gt;monero-translations&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Coverage&lt;/h2&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Type&lt;/th&gt; 
   &lt;th&gt;Status&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Coverity&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://scan.coverity.com/projects/9657/&quot;&gt;&lt;img src=&quot;https://scan.coverity.com/projects/9657/badge.svg?sanitize=true&quot; alt=&quot;Coverity Status&quot; /&gt;&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;OSS Fuzz&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&amp;amp;can=1&amp;amp;q=proj:monero&quot;&gt;&lt;img src=&quot;https://oss-fuzz-build-logs.storage.googleapis.com/badges/monero.svg?sanitize=true&quot; alt=&quot;Fuzzing Status&quot; /&gt;&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Coveralls&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://coveralls.io/github/monero-project/monero?branch=master&quot;&gt;&lt;img src=&quot;https://coveralls.io/repos/github/monero-project/monero/badge.svg?branch=master&quot; alt=&quot;Coveralls Status&quot; /&gt;&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;License&lt;/td&gt; 
   &lt;td&gt;&lt;a href=&quot;https://opensource.org/licenses/BSD-3-Clause&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/license-BSD3-blue.svg?sanitize=true&quot; alt=&quot;License&quot; /&gt;&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;h2&gt;Introduction&lt;/h2&gt; 
&lt;p&gt;Monero is a private, secure, untraceable, decentralised digital currency. You are your bank, you control your funds, and nobody can trace your transfers unless you allow them to do so.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Privacy:&lt;/strong&gt; Monero uses a cryptographically sound system to allow you to send and receive funds without your transactions being easily revealed on the blockchain (the ledger of transactions that everyone has). This ensures that your purchases, receipts, and all transfers remain private by default.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Security:&lt;/strong&gt; Using the power of a distributed peer-to-peer consensus network, every transaction on the network is cryptographically secured. Individual wallets have a 25-word mnemonic seed that is only displayed once and can be written down to backup the wallet. Wallet files should be encrypted with a strong passphrase to ensure they are useless if ever stolen.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Untraceability:&lt;/strong&gt; By taking advantage of ring signatures, a special property of a certain type of cryptography, Monero is able to ensure that transactions are not only untraceable but have an optional measure of ambiguity that ensures that transactions cannot easily be tied back to an individual user or computer.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Decentralization:&lt;/strong&gt; The utility of Monero depends on its decentralised peer-to-peer consensus network - anyone should be able to run the monero software, validate the integrity of the blockchain, and participate in all aspects of the monero network using consumer-grade commodity hardware. Decentralization of the monero network is maintained by software development that minimizes the costs of running the monero software and inhibits the proliferation of specialized, non-commodity hardware.&lt;/p&gt; 
&lt;h2&gt;About this project&lt;/h2&gt; 
&lt;p&gt;This is the core implementation of Monero. It is open source and completely free to use without restrictions, except for those specified in the license agreement below. There are no restrictions on anyone creating an alternative implementation of Monero that uses the protocol and network in a compatible manner.&lt;/p&gt; 
&lt;p&gt;As with many development projects, the repository on GitHub is considered to be the &quot;staging&quot; area for the latest changes. Before changes are merged into that branch on the main repository, they are tested by individual developers in their own branches, submitted as a pull request, and then subsequently tested by contributors who focus on testing and code reviews. That having been said, the repository should be carefully considered before using it in a production environment, unless there is a patch in the repository for a particular show-stopping issue you are experiencing. It is generally a better idea to use a tagged release for stability.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Anyone is welcome to contribute to Monero&#39;s codebase!&lt;/strong&gt; If you have a fix or code change, feel free to submit it as a pull request directly to the &quot;master&quot; branch. In cases where the change is relatively small or does not affect other parts of the codebase, it may be merged in immediately by any one of the collaborators. On the other hand, if the change is particularly large or complex, it is expected that it will be discussed at length either well in advance of the pull request being submitted, or even directly on the pull request.&lt;/p&gt; 
&lt;h2&gt;Supporting the project&lt;/h2&gt; 
&lt;p&gt;Monero is a 100% community-sponsored endeavor. If you want to join our efforts, the easiest thing you can do is support the project financially. Both Monero and Bitcoin donations can be made to &lt;strong&gt;&lt;a href=&quot;http://donate.getmonero.org&quot;&gt;donate.getmonero.org&lt;/a&gt;&lt;/strong&gt; if using a client that supports the &lt;a href=&quot;https://openalias.org&quot;&gt;OpenAlias&lt;/a&gt; standard. Alternatively, you can send XMR to the Monero donation address via the &lt;code&gt;donate&lt;/code&gt; command (type &lt;code&gt;help&lt;/code&gt; in the command-line wallet for details).&lt;/p&gt; 
&lt;p&gt;The Monero donation address is:&lt;br /&gt; &lt;code&gt;888tNkZrPN6JsEgekjMnABU4TBzc2Dt29EPAvkRxbANsAnjyPbb3iQ1YBRk1UXcdRsiKc9dhwMVgN5S9cQUiyoogDavup3H&lt;/code&gt;&lt;br /&gt; Viewkey:&lt;br /&gt; &lt;code&gt;f359631075708155cc3d92a32b75a7d02a5dcf27756707b47a2b31b21c389501&lt;/code&gt;&lt;br /&gt; Base address for restoring with address and viewkey: &lt;code&gt;44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;The Bitcoin donation address is:&lt;br /&gt; &lt;code&gt;1KTexdemPdxSBcG55heUuTjDRYqbC5ZL8H&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;Core development funding and/or some supporting services are also graciously provided by &lt;a href=&quot;https://www.getmonero.org/community/sponsorships/&quot;&gt;sponsors&lt;/a&gt;:&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://tarilabs.com/&quot;&gt;&lt;img width=&quot;150&quot; src=&quot;https://www.getmonero.org/img/sponsors/tarilabs.png&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://symas.com/&quot;&gt;&lt;img width=&quot;150&quot; src=&quot;https://www.getmonero.org/img/sponsors/symas.png&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.macstadium.com/&quot;&gt;&lt;img width=&quot;150&quot; src=&quot;https://www.getmonero.org/img/sponsors/macstadium.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;There are also several mining pools that kindly donate a portion of their fees, &lt;a href=&quot;https://bitcointalk.org/index.php?topic=583449.0&quot;&gt;a list of them can be found on our Bitcointalk post&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;p&gt;See &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/LICENSE&quot;&gt;LICENSE&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Contributing&lt;/h2&gt; 
&lt;p&gt;If you want to help out, see &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/docs/CONTRIBUTING.md&quot;&gt;CONTRIBUTING&lt;/a&gt; for a set of guidelines.&lt;/p&gt; 
&lt;h2&gt;Scheduled software/network upgrades&lt;/h2&gt; 
&lt;p&gt;Monero uses a scheduled software/network upgrade (hard fork) mechanism to implement new features into the Monero software and network. This means that users of Monero (end users and service providers) should run current versions and upgrade their software when new releases are available. Software upgrades occur when new features are developed and implemented in the codebase. Network upgrades occur in tandem with software upgrades that modify the consensus rules of the Monero network. The required software for network upgrades will be available prior to the scheduled network upgrade date. Please check the repository prior to this date for the proper Monero software version. Below is the historical schedule and the projected schedule for the next upgrade.&lt;/p&gt; 
&lt;p&gt;Dates are provided in the format YYYY-MM-DD. The &quot;Minimum&quot; is the software version that follows the new consensus rules. The &quot;Recommended&quot; version may include bug fixes and other new features that do not affect the consensus rules.&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Software upgrade block height&lt;/th&gt; 
   &lt;th&gt;Date&lt;/th&gt; 
   &lt;th&gt;Fork version&lt;/th&gt; 
   &lt;th&gt;Minimum Monero version&lt;/th&gt; 
   &lt;th&gt;Recommended Monero version&lt;/th&gt; 
   &lt;th&gt;Details&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1009827&lt;/td&gt; 
   &lt;td&gt;2016-03-22&lt;/td&gt; 
   &lt;td&gt;v2&lt;/td&gt; 
   &lt;td&gt;v0.9.4&lt;/td&gt; 
   &lt;td&gt;v0.9.4&lt;/td&gt; 
   &lt;td&gt;Allow only &amp;gt;= ringsize 3, blocktime = 120 seconds, fee-free blocksize 60 kb&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1141317&lt;/td&gt; 
   &lt;td&gt;2016-09-21&lt;/td&gt; 
   &lt;td&gt;v3&lt;/td&gt; 
   &lt;td&gt;v0.9.4&lt;/td&gt; 
   &lt;td&gt;v0.10.0&lt;/td&gt; 
   &lt;td&gt;Splits coinbase into denominations&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1220516&lt;/td&gt; 
   &lt;td&gt;2017-01-05&lt;/td&gt; 
   &lt;td&gt;v4&lt;/td&gt; 
   &lt;td&gt;v0.10.1&lt;/td&gt; 
   &lt;td&gt;v0.10.2.1&lt;/td&gt; 
   &lt;td&gt;Allow normal and RingCT transactions&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1288616&lt;/td&gt; 
   &lt;td&gt;2017-04-15&lt;/td&gt; 
   &lt;td&gt;v5&lt;/td&gt; 
   &lt;td&gt;v0.10.3.0&lt;/td&gt; 
   &lt;td&gt;v0.10.3.1&lt;/td&gt; 
   &lt;td&gt;Adjusted minimum blocksize and fee algorithm&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1400000&lt;/td&gt; 
   &lt;td&gt;2017-09-16&lt;/td&gt; 
   &lt;td&gt;v6&lt;/td&gt; 
   &lt;td&gt;v0.11.0.0&lt;/td&gt; 
   &lt;td&gt;v0.11.0.0&lt;/td&gt; 
   &lt;td&gt;Allow only RingCT transactions, allow only &amp;gt;= ringsize 5&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1546000&lt;/td&gt; 
   &lt;td&gt;2018-04-06&lt;/td&gt; 
   &lt;td&gt;v7&lt;/td&gt; 
   &lt;td&gt;v0.12.0.0&lt;/td&gt; 
   &lt;td&gt;v0.12.3.0&lt;/td&gt; 
   &lt;td&gt;Cryptonight variant 1, ringsize &amp;gt;= 7, sorted inputs&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1685555&lt;/td&gt; 
   &lt;td&gt;2018-10-18&lt;/td&gt; 
   &lt;td&gt;v8&lt;/td&gt; 
   &lt;td&gt;v0.13.0.0&lt;/td&gt; 
   &lt;td&gt;v0.13.0.4&lt;/td&gt; 
   &lt;td&gt;max transaction size at half the penalty free block size, bulletproofs enabled, cryptonight variant 2, fixed ringsize &lt;a href=&quot;https://youtu.be/KOO5S4vxi0o&quot;&gt;11&lt;/a&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1686275&lt;/td&gt; 
   &lt;td&gt;2018-10-19&lt;/td&gt; 
   &lt;td&gt;v9&lt;/td&gt; 
   &lt;td&gt;v0.13.0.0&lt;/td&gt; 
   &lt;td&gt;v0.13.0.4&lt;/td&gt; 
   &lt;td&gt;bulletproofs required&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1788000&lt;/td&gt; 
   &lt;td&gt;2019-03-09&lt;/td&gt; 
   &lt;td&gt;v10&lt;/td&gt; 
   &lt;td&gt;v0.14.0.0&lt;/td&gt; 
   &lt;td&gt;v0.14.1.2&lt;/td&gt; 
   &lt;td&gt;New PoW based on Cryptonight-R, new block weight algorithm, slightly more efficient RingCT format&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1788720&lt;/td&gt; 
   &lt;td&gt;2019-03-10&lt;/td&gt; 
   &lt;td&gt;v11&lt;/td&gt; 
   &lt;td&gt;v0.14.0.0&lt;/td&gt; 
   &lt;td&gt;v0.14.1.2&lt;/td&gt; 
   &lt;td&gt;forbid old RingCT transaction format&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;1978433&lt;/td&gt; 
   &lt;td&gt;2019-11-30&lt;/td&gt; 
   &lt;td&gt;v12&lt;/td&gt; 
   &lt;td&gt;v0.15.0.0&lt;/td&gt; 
   &lt;td&gt;v0.16.0.0&lt;/td&gt; 
   &lt;td&gt;New PoW based on RandomX, only allow &amp;gt;= 2 outputs, change to the block median used to calculate penalty, v1 coinbases are forbidden, rct sigs in coinbase forbidden, 10 block lock time for incoming outputs&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;2210000&lt;/td&gt; 
   &lt;td&gt;2020-10-17&lt;/td&gt; 
   &lt;td&gt;v13&lt;/td&gt; 
   &lt;td&gt;v0.17.0.0&lt;/td&gt; 
   &lt;td&gt;v0.17.3.2&lt;/td&gt; 
   &lt;td&gt;New CLSAG transaction format&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;2210720&lt;/td&gt; 
   &lt;td&gt;2020-10-18&lt;/td&gt; 
   &lt;td&gt;v14&lt;/td&gt; 
   &lt;td&gt;v0.17.1.1&lt;/td&gt; 
   &lt;td&gt;v0.17.3.2&lt;/td&gt; 
   &lt;td&gt;forbid old MLSAG transaction format&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;2688888&lt;/td&gt; 
   &lt;td&gt;2022-08-13&lt;/td&gt; 
   &lt;td&gt;v15&lt;/td&gt; 
   &lt;td&gt;v0.18.0.0&lt;/td&gt; 
   &lt;td&gt;v0.18.5.0&lt;/td&gt; 
   &lt;td&gt;ringsize = 16, bulletproofs+, view tags, adjusted dynamic block weight algorithm&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;2689608&lt;/td&gt; 
   &lt;td&gt;2022-08-14&lt;/td&gt; 
   &lt;td&gt;v16&lt;/td&gt; 
   &lt;td&gt;v0.18.0.0&lt;/td&gt; 
   &lt;td&gt;v0.18.5.0&lt;/td&gt; 
   &lt;td&gt;forbid old v14 transaction format&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;XXXXXXX&lt;/td&gt; 
   &lt;td&gt;XXX-XX-XX&lt;/td&gt; 
   &lt;td&gt;XXX&lt;/td&gt; 
   &lt;td&gt;vX.XX.X.X&lt;/td&gt; 
   &lt;td&gt;vX.XX.X.X&lt;/td&gt; 
   &lt;td&gt;XXX&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;X&#39;s indicate that these details have not been determined as of commit date.&lt;/p&gt; 
&lt;p&gt;* indicates estimate as of commit date&lt;/p&gt; 
&lt;h2&gt;Release staging schedule and protocol&lt;/h2&gt; 
&lt;p&gt;Approximately three months prior to a scheduled software upgrade, a branch from master will be created with the new release version tag. Pull requests that address bugs should then be made to both master and the new release branch. Pull requests that require extensive review and testing (generally, optimizations and new features) should &lt;em&gt;not&lt;/em&gt; be made to the release branch.&lt;/p&gt; 
&lt;h2&gt;Compiling Monero from source&lt;/h2&gt; 
&lt;h3&gt;Dependencies&lt;/h3&gt; 
&lt;p&gt;The following table summarizes the tools and libraries required to build. A few of the libraries are also included in this repository (marked as &quot;Vendored&quot;). By default, the build uses the library installed on the system and ignores the vendored sources. However, if no library is found installed on the system, then the vendored source will be built and used. The vendored sources are also used for statically-linked builds because distribution packages often include only shared library binaries (&lt;code&gt;.so&lt;/code&gt;) but not static library archives (&lt;code&gt;.a&lt;/code&gt;).&lt;/p&gt; 
&lt;table&gt; 
 &lt;thead&gt; 
  &lt;tr&gt; 
   &lt;th&gt;Dep&lt;/th&gt; 
   &lt;th&gt;Min. version&lt;/th&gt; 
   &lt;th&gt;Vendored&lt;/th&gt; 
   &lt;th&gt;Debian/Ubuntu pkg&lt;/th&gt; 
   &lt;th&gt;Arch pkg&lt;/th&gt; 
   &lt;th&gt;Void pkg&lt;/th&gt; 
   &lt;th&gt;Fedora pkg&lt;/th&gt; 
   &lt;th&gt;Optional&lt;/th&gt; 
   &lt;th&gt;Purpose&lt;/th&gt; 
  &lt;/tr&gt; 
 &lt;/thead&gt; 
 &lt;tbody&gt; 
  &lt;tr&gt; 
   &lt;td&gt;GCC&lt;/td&gt; 
   &lt;td&gt;7&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;build-essential&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;base-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;base-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;gcc&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;CMake&lt;/td&gt; 
   &lt;td&gt;3.10&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;cmake&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;cmake&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;cmake&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;cmake&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;pkg-config&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;pkg-config&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;base-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;base-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;pkgconf&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Boost&lt;/td&gt; 
   &lt;td&gt;1.66&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libboost-all-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;boost&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;boost-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;boost-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;C++ libraries&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;OpenSSL&lt;/td&gt; 
   &lt;td&gt;basically any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libssl-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;openssl&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;openssl-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;openssl-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;sha256 sum&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libzmq&lt;/td&gt; 
   &lt;td&gt;4.2.0&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libzmq3-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;zeromq&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;zeromq-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;zeromq-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;ZeroMQ library&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libunbound&lt;/td&gt; 
   &lt;td&gt;1.4.16&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libunbound-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;unbound&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;unbound-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;unbound-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;DNS resolver&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libsodium&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libsodium-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libsodium&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libsodium-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libsodium-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;cryptography&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libunwind&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libunwind8-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libunwind&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libunwind-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libunwind-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Stack traces&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;liblzma&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;liblzma-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;xz&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;liblzma-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;xz-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;For libunwind&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libreadline&lt;/td&gt; 
   &lt;td&gt;6.3.0&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libreadline6-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;readline&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;readline-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;readline-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Input editing&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;expat&lt;/td&gt; 
   &lt;td&gt;1.1&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libexpat1-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;expat&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;expat-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;expat-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;XML parsing&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;GTest&lt;/td&gt; 
   &lt;td&gt;1.5&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libgtest-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;gtest&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;gtest-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;gtest-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Test suite&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;ccache&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;ccache&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;ccache&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;ccache&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;ccache&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Compil. cache&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Doxygen&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;doxygen&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;doxygen&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;doxygen&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;doxygen&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Documentation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;Graphviz&lt;/td&gt; 
   &lt;td&gt;any&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;graphviz&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;graphviz&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;graphviz&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;graphviz&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Documentation&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;lrelease&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;qttools5-dev-tools&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;qt5-tools&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;qt5-tools&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;qt5-linguist&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Translations&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libhidapi&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libhidapi-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;hidapi&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;hidapi-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;hidapi-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Hardware wallet&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libusb&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libusb-1.0-0-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libusb&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libusb-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libusbx-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Hardware wallet&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libprotobuf&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libprotobuf-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Hardware wallet&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;protoc&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf-compiler&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;protobuf-compiler&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Hardware wallet&lt;/td&gt; 
  &lt;/tr&gt; 
  &lt;tr&gt; 
   &lt;td&gt;libudev&lt;/td&gt; 
   &lt;td&gt;?&lt;/td&gt; 
   &lt;td&gt;NO&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;libudev-dev&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;systemd&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;eudev-libudev-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;code&gt;systemd-devel&lt;/code&gt;&lt;/td&gt; 
   &lt;td&gt;YES&lt;/td&gt; 
   &lt;td&gt;Hardware wallet&lt;/td&gt; 
  &lt;/tr&gt; 
 &lt;/tbody&gt; 
&lt;/table&gt; 
&lt;p&gt;Install all dependencies at once on Debian/Ubuntu:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt install build-essential cmake pkg-config libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libexpat1-dev qttools5-dev-tools libhidapi-dev libusb-1.0-0-dev libprotobuf-dev protobuf-compiler libudev-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev python3 ccache doxygen graphviz git curl autoconf libtool gperf
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Install all dependencies at once on Arch:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;sudo pacman -Syu --needed base-devel cmake boost boost-libs openssl zeromq unbound libsodium libunwind xz readline expat python3 ccache doxygen graphviz qt5-tools hidapi libusb protobuf systemd
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Install all dependencies at once on Fedora:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;sudo dnf install gcc gcc-c++ cmake pkgconf boost-devel openssl-devel zeromq-devel unbound-devel libsodium-devel libunwind-devel xz-devel readline-devel expat-devel ccache doxygen graphviz qt5-linguist hidapi-devel libusbx-devel protobuf-devel protobuf-compiler systemd-devel
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Install all dependencies at once on openSUSE:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;sudo zypper ref &amp;amp;&amp;amp; sudo zypper in cppzmq-devel libboost_chrono-devel libboost_date_time-devel libboost_filesystem-devel libboost_locale-devel libboost_program_options-devel libboost_regex-devel libboost_serialization-devel libboost_system-devel libboost_thread-devel libexpat-devel libsodium-devel libunwind-devel unbound-devel cmake doxygen ccache fdupes gcc-c++ libevent-devel libopenssl-devel pkgconf-pkg-config readline-devel xz-devel libqt5-qttools-devel patterns-devel-C-C++-devel_C_C++
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Install all dependencies at once on macOS with the provided Brewfile:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;brew update &amp;amp;&amp;amp; brew bundle --file=contrib/brew/Brewfile
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;FreeBSD 12.1 one-liner required to build dependencies:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pkg install git gmake cmake pkgconf boost-libs libzmq4 libsodium unbound
&lt;/code&gt;&lt;/pre&gt; 
&lt;h3&gt;Cloning the repository&lt;/h3&gt; 
&lt;p&gt;Clone recursively to pull-in needed submodule(s):&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;git clone --recursive https://github.com/monero-project/monero
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If you already have a repo cloned, initialize and update:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cd monero &amp;amp;&amp;amp; git submodule init &amp;amp;&amp;amp; git submodule update
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: If there are submodule differences between branches, you may need to use &lt;code&gt;git submodule sync &amp;amp;&amp;amp; git submodule update&lt;/code&gt; after changing branches to build successfully.&lt;/p&gt; 
&lt;h3&gt;Build instructions&lt;/h3&gt; 
&lt;p&gt;Monero uses the CMake build system and a top-level &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/Makefile&quot;&gt;Makefile&lt;/a&gt; that invokes cmake commands as needed.&lt;/p&gt; 
&lt;h4&gt;On Linux and macOS&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;Install the dependencies&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Change to the root of the source code directory, change to the most recent release branch, and build:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd monero
git checkout release-v0.18
make
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;em&gt;Optional&lt;/em&gt;: If your machine has several cores and enough memory, enable parallel build by running &lt;code&gt;make -j&amp;lt;number of threads&amp;gt;&lt;/code&gt; instead of &lt;code&gt;make&lt;/code&gt;. For this to be worthwhile, the machine should have one core and about 2GB of RAM available per thread.&lt;/p&gt; &lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: The instructions above will compile the most stable release of the Monero software. If you would like to use and test the most recent software, use &lt;code&gt;git checkout master&lt;/code&gt;. The master branch may contain updates that are both unstable and incompatible with release software, though testing is always encouraged.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;The resulting executables can be found in &lt;code&gt;build/release/bin&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Add &lt;code&gt;PATH=&quot;$PATH:$HOME/monero/build/release/bin&quot;&lt;/code&gt; to &lt;code&gt;.profile&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Run Monero with &lt;code&gt;monerod --detach&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: build and run the test suite to verify the binaries:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;make release-test
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;em&gt;NOTE&lt;/em&gt;: &lt;code&gt;core_tests&lt;/code&gt; test may take a few hours to complete.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: to build binaries suitable for debugging:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;make debug
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: build documentation in &lt;code&gt;doc/html&lt;/code&gt; (omit &lt;code&gt;HAVE_DOT=YES&lt;/code&gt; if &lt;code&gt;graphviz&lt;/code&gt; is not installed):&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;HAVE_DOT=YES doxygen Doxyfile
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: use ccache not to rebuild translation units, that haven&#39;t really changed. Monero&#39;s CMakeLists.txt file automatically handles it&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo apt install ccache
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h4&gt;On the Raspberry Pi&lt;/h4&gt; 
&lt;p&gt;Tested on a Raspberry Pi 5B with a clean installation of Raspberry Pi OS (64-bit) with Debian 12 from &lt;a href=&quot;https://www.raspberrypi.com/software/operating-systems/&quot;&gt;https://www.raspberrypi.com/software/operating-systems/&lt;/a&gt;.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;&lt;code&gt;apt-get update &amp;amp;&amp;amp; apt-get upgrade&lt;/code&gt; to install the latest software&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Install the dependencies for Monero from the &#39;Debian&#39; column in the table above.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: increase the system swap size:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo /etc/init.d/dphys-swapfile stop  
sudo nano /etc/dphys-swapfile  
CONF_SWAPSIZE=2048
sudo /etc/init.d/dphys-swapfile start
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;If using an external hard disk without an external power supply, ensure it gets enough power to avoid hardware issues when syncing, by adding the line &quot;max_usb_current=1&quot; to /boot/config.txt&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Clone Monero and checkout the most recent release version:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone --recursive https://github.com/monero-project/monero.git
cd monero
git checkout v0.18.4.1
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Build:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;USE_SINGLE_BUILDDIR=1 make release
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Wait a few hours&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;The resulting executables can be found in &lt;code&gt;build/release/bin&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Add &lt;code&gt;export PATH=&quot;$PATH:$HOME/monero/build/release/bin&quot;&lt;/code&gt; to &lt;code&gt;$HOME/.profile&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Run &lt;code&gt;source $HOME/.profile&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Run Monero with &lt;code&gt;monerod --detach&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;You may wish to reduce the size of the swap file after the build has finished, and delete the boost directory from your home directory&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h4&gt;On Windows:&lt;/h4&gt; 
&lt;p&gt;Binaries for Windows can be built on Windows using the MinGW toolchain within &lt;a href=&quot;https://www.msys2.org&quot;&gt;MSYS2 environment&lt;/a&gt;. The MSYS2 environment emulates a POSIX system. The toolchain runs within the environment and &lt;em&gt;cross-compiles&lt;/em&gt; binaries that can run outside of the environment as a regular Windows application.&lt;/p&gt; 
&lt;p&gt;&lt;strong&gt;Preparing the build environment&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;Download and install the &lt;a href=&quot;https://www.msys2.org&quot;&gt;MSYS2 installer&lt;/a&gt;. Installing MSYS2 requires 64-bit Windows 10 or newer.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Open the MSYS shell via the &lt;code&gt;MSYS2 MSYS&lt;/code&gt; shortcut&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Update packages using pacman:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pacman -Syu
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Install dependencies:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-unbound
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Open the MingW shell via &lt;code&gt;MSYS2 MINGW64&lt;/code&gt; shortcut.&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;&lt;strong&gt;Cloning&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;To git clone, run:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone --recursive https://github.com/monero-project/monero.git
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;&lt;strong&gt;Building&lt;/strong&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;Change to the cloned directory, run:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;If you would like a specific &lt;a href=&quot;https://github.com/monero-project/monero/tags&quot;&gt;version/tag&lt;/a&gt;, do a git checkout for that version. eg. &#39;v0.18.4.1&#39;. If you don&#39;t care about the version and just want binaries from master, skip this step:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git checkout v0.18.4.1
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;To build Monero, run:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;make release-static -j $(nproc)
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The resulting executables can be found in &lt;code&gt;build/release/bin&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: to build Windows binaries suitable for debugging, run:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;make debug -j $(nproc)
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;The resulting executables can be found in &lt;code&gt;build/debug/bin&lt;/code&gt;&lt;/p&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;On FreeBSD:&lt;/h3&gt; 
&lt;p&gt;The project can be built from scratch by following instructions for Linux above(but use &lt;code&gt;gmake&lt;/code&gt; instead of &lt;code&gt;make&lt;/code&gt;). If you are running Monero in a jail, you need to add &lt;code&gt;sysvsem=&quot;new&quot;&lt;/code&gt; to your jail configuration, otherwise lmdb will throw the error message: &lt;code&gt;Failed to open lmdb environment: Function not implemented&lt;/code&gt;.&lt;/p&gt; 
&lt;p&gt;Monero is also available as a port or package as &lt;code&gt;monero-cli&lt;/code&gt;.&lt;/p&gt; 
&lt;h3&gt;On OpenBSD:&lt;/h3&gt; 
&lt;p&gt;You will need to add a few packages to your system. &lt;code&gt;pkg_add cmake gmake zeromq libiconv boost libunbound&lt;/code&gt;.&lt;/p&gt; 
&lt;p&gt;The &lt;code&gt;doxygen&lt;/code&gt; and &lt;code&gt;graphviz&lt;/code&gt; packages are optional and require the xbase set. Running the test suite also requires &lt;code&gt;py3-requests&lt;/code&gt; package.&lt;/p&gt; 
&lt;p&gt;Build monero: &lt;code&gt;gmake&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;Note: you may encounter the following error when compiling the latest version of Monero as a normal user:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;LLVM ERROR: out of memory
c++: error: unable to execute command: Abort trap (core dumped)
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Then you need to increase the data ulimit size to 2GB and try again: &lt;code&gt;ulimit -d 2000000&lt;/code&gt;&lt;/p&gt; 
&lt;h3&gt;On NetBSD:&lt;/h3&gt; 
&lt;p&gt;Check that the dependencies are present: &lt;code&gt;pkg_info -c libexecinfo boost-headers boost-libs protobuf readline libusb1 zeromq git-base pkgconf gmake cmake | more&lt;/code&gt;, and install any that are reported missing, using &lt;code&gt;pkg_add&lt;/code&gt; or from your pkgsrc tree. Readline is optional but worth having.&lt;/p&gt; 
&lt;p&gt;Third-party dependencies are usually under &lt;code&gt;/usr/pkg/&lt;/code&gt;, but if you have a custom setup, adjust the &quot;/usr/pkg&quot; (below) accordingly.&lt;/p&gt; 
&lt;p&gt;Clone the monero repository recursively and checkout the most recent release as described above. Then build monero: &lt;code&gt;gmake BOOST_ROOT=/usr/pkg LDFLAGS=&quot;-Wl,-R/usr/pkg/lib&quot; release&lt;/code&gt;. The resulting executables can be found in &lt;code&gt;build/NetBSD/[Release version]/Release/bin/&lt;/code&gt;.&lt;/p&gt; 
&lt;h3&gt;On Solaris:&lt;/h3&gt; 
&lt;p&gt;The default Solaris linker can&#39;t be used, you have to install GNU ld, then run cmake manually with the path to your copy of GNU ld:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;mkdir -p build/release
cd build/release
cmake -DCMAKE_LINKER=/path/to/ld -D CMAKE_BUILD_TYPE=Release ../..
cd ../..
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Then you can run make as usual.&lt;/p&gt; 
&lt;h3&gt;Cross Compiling&lt;/h3&gt; 
&lt;p&gt;You can also cross-compile static binaries on Linux for Windows and macOS with the &lt;code&gt;depends&lt;/code&gt; system.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=x86_64-linux-gnu&lt;/code&gt; for 64-bit linux binaries.&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=x86_64-w64-mingw32&lt;/code&gt; for 64-bit windows binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;g++-mingw-w64-x86-64&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;You also need to run:&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;update-alternatives --set x86_64-w64-mingw32-g++ $(which x86_64-w64-mingw32-g++-posix) &amp;amp;&amp;amp; \
update-alternatives --set x86_64-w64-mingw32-gcc $(which x86_64-w64-mingw32-gcc-posix)
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=x86_64-apple-darwin&lt;/code&gt; for Intel macOS binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;clang-18 lld-18&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=arm64-apple-darwin&lt;/code&gt; for Apple Silicon macOS binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;clang-18 lld-18&lt;/code&gt;&lt;/li&gt; 
   &lt;li&gt;You also need to run:&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;export PATH=&quot;/usr/lib/llvm-18/bin/:$PATH&quot;
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=i686-linux-gnu&lt;/code&gt; for 32-bit linux binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;g++-multilib bc&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=i686-w64-mingw32&lt;/code&gt; for 32-bit windows binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;python3 g++-mingw-w64-i686&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=arm-linux-gnueabihf&lt;/code&gt; for armv7 binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;g++-arm-linux-gnueabihf&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=aarch64-linux-gnu&lt;/code&gt; for armv8 binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;g++-aarch64-linux-gnu&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=riscv64-linux-gnu&lt;/code&gt; for RISC V 64 bit binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;g++-riscv64-linux-gnu&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=x86_64-unknown-freebsd&lt;/code&gt; for freebsd binaries. 
  &lt;ul&gt; 
   &lt;li&gt;Requires: &lt;code&gt;clang-8&lt;/code&gt;&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=arm-linux-android&lt;/code&gt; for 32bit android binaries&lt;/li&gt; 
 &lt;li&gt;&lt;code&gt;make depends target=aarch64-linux-android&lt;/code&gt; for 64bit android binaries&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;The required packages are the names for each toolchain on apt. Depending on your distro, they may have different names. The &lt;code&gt;depends&lt;/code&gt; system has been tested on Ubuntu 18.04 and 20.04.&lt;/p&gt; 
&lt;p&gt;Using &lt;code&gt;depends&lt;/code&gt; might also be easier to compile Monero on Windows than using MSYS. Activate Windows Subsystem for Linux (WSL) with a distro (for example Ubuntu), install the apt build-essentials and follow the &lt;code&gt;depends&lt;/code&gt; steps as depicted above.&lt;/p&gt; 
&lt;p&gt;The produced binaries still link libc dynamically. If the binary is compiled on a current distribution, it might not run on an older distribution with an older installation of libc.&lt;/p&gt; 
&lt;h3&gt;Trezor hardware wallet support&lt;/h3&gt; 
&lt;p&gt;If you have an issue with building Monero with Trezor support, you can disable it by setting &lt;code&gt;USE_DEVICE_TREZOR=OFF&lt;/code&gt;, e.g.,&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;USE_DEVICE_TREZOR=OFF make release
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;For more information, please check out Trezor &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/src/device_trezor/README.md&quot;&gt;src/device_trezor/README.md&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Guix builds&lt;/h3&gt; 
&lt;p&gt;See &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/contrib/guix/README.md&quot;&gt;contrib/guix/README.md&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Installing Monero from a package&lt;/h2&gt; 
&lt;p&gt;&lt;strong&gt;DISCLAIMER: These packages are not part of this repository or maintained by this project&#39;s contributors, and as such, do not go through the same review process to ensure their trustworthiness and security.&lt;/strong&gt;&lt;/p&gt; 
&lt;p&gt;Packages are available for&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;Debian 12 (Bookworm) or later&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo apt install monero
&lt;/code&gt;&lt;/pre&gt; &lt;p&gt;More info and versions in the &lt;a href=&quot;https://tracker.debian.org/pkg/monero&quot;&gt;Debian package tracker&lt;/a&gt;.&lt;/p&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Arch Linux:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo pacman -S monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;NixOS:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nix-shell -p monero-cli
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Guix:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;guix package -i monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Gentoo &lt;a href=&quot;https://github.com/gentoo-monero/gentoo-monero&quot;&gt;Monero overlay&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;emerge --noreplace eselect-repository
eselect repository enable monero
emaint sync -r monero
echo &#39;*/*::monero ~amd64&#39; &amp;gt;&amp;gt; /etc/portage/package.accept_keywords
emerge net-p2p/monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Alpine Linux:&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;apk add monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;macOS &lt;a href=&quot;https://brew.sh/&quot;&gt;(homebrew)&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;brew install monero
&lt;/code&gt;&lt;/pre&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Docker&lt;/p&gt; &lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Build using all available cores
docker build -t monero .

# or build using a specific number of cores (reduce RAM requirement)
docker build --build-arg NPROC=1 -t monero .

# either run in foreground
docker run -it -v /monero/chain:/home/monero/.bitmonero -v /monero/wallet:/wallet -p 18080:18080 monero

# or in background
docker run -it -d -v /monero/chain:/home/monero/.bitmonero -v /monero/wallet:/wallet -p 18080:18080 monero
&lt;/code&gt;&lt;/pre&gt; 
  &lt;ul&gt; 
   &lt;li&gt;The build needs 3 GB space.&lt;/li&gt; 
   &lt;li&gt;Wait one hour or more&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Packaging for your favorite distribution would be a welcome contribution!&lt;/p&gt; 
&lt;h2&gt;Running monerod&lt;/h2&gt; 
&lt;p&gt;The build places the binary in &lt;code&gt;bin/&lt;/code&gt; sub-directory within the build directory from which cmake was invoked (repository root by default). To run in the foreground:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;./bin/monerod
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;To list all available options, run &lt;code&gt;./bin/monerod --help&lt;/code&gt;. Options can be specified either on the command line or in a configuration file passed by the &lt;code&gt;--config-file&lt;/code&gt; argument. To specify an option in the configuration file, add a line with the syntax &lt;code&gt;argumentname=value&lt;/code&gt;, where &lt;code&gt;argumentname&lt;/code&gt; is the name of the argument without the leading dashes, for example, &lt;code&gt;log-level=1&lt;/code&gt;.&lt;/p&gt; 
&lt;p&gt;To run in background:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;./bin/monerod --log-file monerod.log --detach
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;To run as a systemd service, copy &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/utils/systemd/monerod.service&quot;&gt;monerod.service&lt;/a&gt; to &lt;code&gt;/etc/systemd/system/&lt;/code&gt; and &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/utils/conf/monerod.conf&quot;&gt;monerod.conf&lt;/a&gt; to &lt;code&gt;/etc/&lt;/code&gt;. The &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/utils/systemd/monerod.service&quot;&gt;example service&lt;/a&gt; assumes that the user &lt;code&gt;monero&lt;/code&gt; exists and its home is the data directory specified in the &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/utils/conf/monerod.conf&quot;&gt;example config&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;If you&#39;re on Mac, you may need to add the &lt;code&gt;--max-concurrency 1&lt;/code&gt; option to monero-wallet-cli, and possibly monerod, if you get crashes refreshing.&lt;/p&gt; 
&lt;h2&gt;Internationalization&lt;/h2&gt; 
&lt;p&gt;See &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/docs/README.i18n.md&quot;&gt;README.i18n.md&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Using Tor&lt;/h2&gt; 
&lt;blockquote&gt; 
 &lt;p&gt;There is a new, still experimental, &lt;a href=&quot;https://raw.githubusercontent.com/monero-project/monero/master/docs/ANONYMITY_NETWORKS.md&quot;&gt;integration with Tor&lt;/a&gt;. The feature allows connecting over IPv4 and Tor simultaneously - IPv4 is used for relaying blocks and relaying transactions received by peers whereas Tor is used solely for relaying transactions received over local RPC. This provides privacy and better protection against surrounding node (sybil) attacks.&lt;/p&gt; 
&lt;/blockquote&gt; 
&lt;p&gt;While Monero isn&#39;t made to integrate with Tor, it can be used wrapped with torsocks, by setting the following configuration parameters and environment variables:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;code&gt;--p2p-bind-ip 127.0.0.1&lt;/code&gt; on the command line or &lt;code&gt;p2p-bind-ip=127.0.0.1&lt;/code&gt; in monerod.conf to disable listening for connections on external interfaces.&lt;/li&gt; 
 &lt;li&gt;If you use the wallet with a Tor daemon via the loopback IP (eg, 127.0.0.1:9050), then use &lt;code&gt;--untrusted-daemon&lt;/code&gt; unless it is your own hidden service.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Example command line to start monerod through Tor:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;monerod --proxy 127.0.0.1:9050 --p2p-bind-ip 127.0.0.1
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;A helper script is in contrib/tor/monero-over-tor.sh. It assumes Tor is installed already, and runs Tor and Monero with the right configuration.&lt;/p&gt; 
&lt;h3&gt;Using Tor on Tails&lt;/h3&gt; 
&lt;p&gt;TAILS ships with a very restrictive set of firewall rules. Therefore, you need to add a rule to allow this connection too, in addition to telling torsocks to allow inbound connections. Full example:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo iptables -I OUTPUT 2 -p tcp -d 127.0.0.1 -m tcp --dport 18081 -j ACCEPT
DNS_PUBLIC=tcp torsocks ./monerod --p2p-bind-ip 127.0.0.1 --rpc-bind-ip 127.0.0.1 \
    --data-dir /home/amnesia/Persistent/your/directory/to/the/blockchain
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Pruning&lt;/h2&gt; 
&lt;p&gt;As of April 2022, the full Monero blockchain file is about 130 GB. One can store a pruned blockchain, which is about 45 GB. A pruned blockchain can only serve part of the historical chain data to other peers, but is otherwise identical in functionality to the full blockchain. To use a pruned blockchain, it is best to start the initial sync with &lt;code&gt;--prune-blockchain&lt;/code&gt;. However, it is also possible to prune an existing blockchain using the &lt;code&gt;monero-blockchain-prune&lt;/code&gt; tool or using the &lt;code&gt;--prune-blockchain&lt;/code&gt; &lt;code&gt;monerod&lt;/code&gt; option with an existing chain. If an existing chain exists, pruning will temporarily require disk space to store both the full and pruned blockchains.&lt;/p&gt; 
&lt;p&gt;For more detailed information see the &lt;a href=&quot;https://www.getmonero.org/resources/moneropedia/pruning.html&quot;&gt;&#39;Pruning&#39; entry in the Moneropedia&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Debugging&lt;/h2&gt; 
&lt;p&gt;This section contains general instructions for debugging failed installs or problems encountered with Monero. First, ensure you are running the latest version built from the GitHub repo.&lt;/p&gt; 
&lt;h3&gt;Obtaining stack traces and core dumps on Unix systems&lt;/h3&gt; 
&lt;p&gt;We generally use the tool &lt;code&gt;gdb&lt;/code&gt; (GNU debugger) to provide stack trace functionality, and &lt;code&gt;ulimit&lt;/code&gt; to provide core dumps in builds which crash or segfault.&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;To use &lt;code&gt;gdb&lt;/code&gt; in order to obtain a stack trace for a build that has stalled:&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Run the build.&lt;/p&gt; 
&lt;p&gt;Once it stalls, enter the following command:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;gdb /path/to/monerod `pidof monerod`
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Type &lt;code&gt;thread apply all bt&lt;/code&gt; within gdb in order to obtain the stack trace&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;If however the core dumps or segfaults:&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Enter &lt;code&gt;ulimit -c unlimited&lt;/code&gt; on the command line to enable unlimited filesizes for core dumps&lt;/p&gt; 
&lt;p&gt;Enter &lt;code&gt;echo core | sudo tee /proc/sys/kernel/core_pattern&lt;/code&gt; to stop cores from being hijacked by other tools&lt;/p&gt; 
&lt;p&gt;Run the build.&lt;/p&gt; 
&lt;p&gt;When it terminates with an output along the lines of &quot;Segmentation fault (core dumped)&quot;, there should be a core dump file in the same directory as monerod. It may be named just &lt;code&gt;core&lt;/code&gt;, or &lt;code&gt;core.xxxx&lt;/code&gt; with numbers appended.&lt;/p&gt; 
&lt;p&gt;You can now analyse this core dump with &lt;code&gt;gdb&lt;/code&gt; as follows:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;gdb /path/to/monerod /path/to/dumpfile`
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Print the stack trace with &lt;code&gt;bt&lt;/code&gt;&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;If a program crashed and cores are managed by systemd, the following can also get a stack trace for that crash:&lt;/li&gt; 
&lt;/ul&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;coredumpctl -1 gdb
&lt;/code&gt;&lt;/pre&gt; 
&lt;h4&gt;To run Monero within gdb:&lt;/h4&gt; 
&lt;p&gt;Type &lt;code&gt;gdb /path/to/monerod&lt;/code&gt;&lt;/p&gt; 
&lt;p&gt;Pass command-line options with &lt;code&gt;--args&lt;/code&gt; followed by the relevant arguments&lt;/p&gt; 
&lt;p&gt;Type &lt;code&gt;run&lt;/code&gt; to run monerod&lt;/p&gt; 
&lt;h3&gt;Analysing memory corruption&lt;/h3&gt; 
&lt;p&gt;There are two tools available:&lt;/p&gt; 
&lt;h4&gt;ASAN&lt;/h4&gt; 
&lt;p&gt;Configure Monero with the -D SANITIZE=ON cmake flag, eg:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd build/debug &amp;amp;&amp;amp; cmake -D SANITIZE=ON -D CMAKE_BUILD_TYPE=Debug ../..
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;You can then run the monero tools normally. Performance will typically halve.&lt;/p&gt; 
&lt;h4&gt;valgrind&lt;/h4&gt; 
&lt;p&gt;Install valgrind and run as &lt;code&gt;valgrind /path/to/monerod&lt;/code&gt;. It will be very slow.&lt;/p&gt; 
&lt;h3&gt;LMDB&lt;/h3&gt; 
&lt;p&gt;Instructions for debugging suspected blockchain corruption as per @HYC&lt;/p&gt; 
&lt;p&gt;There is an &lt;code&gt;mdb_stat&lt;/code&gt; command in the LMDB source that can print statistics about the database but it&#39;s not routinely built. This can be built with the following command:&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd ~/monero/external/db_drivers/liblmdb &amp;amp;&amp;amp; make
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;The output of &lt;code&gt;mdb_stat -ea &amp;lt;path to blockchain dir&amp;gt;&lt;/code&gt; will indicate inconsistencies in the blocks, block_heights and block_info table.&lt;/p&gt; 
&lt;p&gt;The output of &lt;code&gt;mdb_dump -s blocks &amp;lt;path to blockchain dir&amp;gt;&lt;/code&gt; and &lt;code&gt;mdb_dump -s block_info &amp;lt;path to blockchain dir&amp;gt;&lt;/code&gt; is useful for indicating whether blocks and block_info contain the same keys.&lt;/p&gt; 
&lt;p&gt;These records are dumped as hex data, where the first line is the key and the second line is the data.&lt;/p&gt; 
&lt;h1&gt;Known Issues&lt;/h1&gt; 
&lt;h2&gt;Protocols&lt;/h2&gt; 
&lt;h3&gt;Socket-based&lt;/h3&gt; 
&lt;p&gt;Because of the nature of the socket-based protocols that drive monero, certain protocol weaknesses are somewhat unavoidable at this time. While these weaknesses can theoretically be fully mitigated, the effort required (the means) may not justify the ends. As such, please consider taking the following precautions if you are a monero node operator:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;Run &lt;code&gt;monerod&lt;/code&gt; on a &quot;secured&quot; machine. If operational security is not your forte, at a very minimum, have a dedicated a computer running &lt;code&gt;monerod&lt;/code&gt; and &lt;strong&gt;do not&lt;/strong&gt; browse the web, use email clients, or use any other potentially harmful apps on your &lt;code&gt;monerod&lt;/code&gt; machine. &lt;strong&gt;Do not click links or load URL/MUA content on the same machine&lt;/strong&gt;. Doing so may potentially exploit weaknesses in commands which accept &quot;localhost&quot; and &quot;127.0.0.1&quot;.&lt;/li&gt; 
 &lt;li&gt;If you plan on hosting a public &quot;remote&quot; node, start &lt;code&gt;monerod&lt;/code&gt; with &lt;code&gt;--restricted-rpc&lt;/code&gt;. This is a must.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Blockchain-based&lt;/h3&gt; 
&lt;p&gt;Certain blockchain &quot;features&quot; can be considered &quot;bugs&quot; if misused correctly. Consequently, please consider the following:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;When receiving monero, be aware that it may be locked for an arbitrary time if the sender elected to, preventing you from spending that monero until the lock time expires. You may want to hold off acting upon such a transaction until the unlock time lapses. To get a sense of that time, you can consider the remaining blocktime until unlock as seen in the &lt;code&gt;show_transfers&lt;/code&gt; command.&lt;/li&gt; 
&lt;/ul&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/1fe0db547664e2dfcda9dba69222d17fe42d7dcef074522ab399ab9d91c904ac/monero-project/monero" medium="image" />
      
    </item>
    
    <item>
      <title>Alexays/Waybar</title>
      <link>https://github.com/Alexays/Waybar</link>
      <description>&lt;p&gt;Highly customizable Wayland bar for Sway and Wlroots based compositors. ✌️ 🎉&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;Waybar &lt;a href=&quot;https://raw.githubusercontent.com/Alexays/Waybar/master/LICENSE&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/License-MIT-yellow.svg?sanitize=true&quot; alt=&quot;Licence&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://paypal.me/ARouillard&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Donate-Paypal-2244dd.svg?sanitize=true&quot; alt=&quot;Paypal Donate&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;img src=&quot;https://raw.githubusercontent.com/alexays/waybar/master/preview-2.png&quot; alt=&quot;Waybar&quot; /&gt;&lt;/h1&gt; 
&lt;blockquote&gt; 
 &lt;p&gt;Highly customizable Wayland bar for Sway and Wlroots based compositors.&lt;br /&gt; Available in &lt;a href=&quot;https://github.com/Alexays/Waybar/wiki/Installation&quot;&gt;all major distributions&lt;/a&gt;&lt;br /&gt; &lt;em&gt;Waybar &lt;a href=&quot;https://github.com/Alexays/Waybar/wiki/Examples&quot;&gt;examples&lt;/a&gt;&lt;/em&gt;&lt;/p&gt; 
&lt;/blockquote&gt; 
&lt;h4&gt;Current features&lt;/h4&gt; 
&lt;ul&gt; 
 &lt;li&gt;Sway (Workspaces, Binding mode, Focused window name)&lt;/li&gt; 
 &lt;li&gt;River (Mapping mode, Tags, Focused window name)&lt;/li&gt; 
 &lt;li&gt;Hyprland (Window Icons, Workspaces, Focused window name)&lt;/li&gt; 
 &lt;li&gt;Niri (Workspaces, Focused window name, Language)&lt;/li&gt; 
 &lt;li&gt;DWL (Tags, Focused window name) &lt;a href=&quot;https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/ipc&quot;&gt;requires dwl ipc patch&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Tray &lt;a href=&quot;https://github.com/Alexays/Waybar/issues/21&quot;&gt;#21&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Local time&lt;/li&gt; 
 &lt;li&gt;Battery&lt;/li&gt; 
 &lt;li&gt;UPower&lt;/li&gt; 
 &lt;li&gt;Power profiles daemon&lt;/li&gt; 
 &lt;li&gt;Network&lt;/li&gt; 
 &lt;li&gt;Bluetooth&lt;/li&gt; 
 &lt;li&gt;Pulseaudio&lt;/li&gt; 
 &lt;li&gt;Privacy Info&lt;/li&gt; 
 &lt;li&gt;Wireplumber&lt;/li&gt; 
 &lt;li&gt;Disk&lt;/li&gt; 
 &lt;li&gt;Memory&lt;/li&gt; 
 &lt;li&gt;Cpu load average&lt;/li&gt; 
 &lt;li&gt;Temperature&lt;/li&gt; 
 &lt;li&gt;MPD&lt;/li&gt; 
 &lt;li&gt;Custom scripts&lt;/li&gt; 
 &lt;li&gt;Custom image&lt;/li&gt; 
 &lt;li&gt;Multiple output configuration&lt;/li&gt; 
 &lt;li&gt;And many more customizations&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h4&gt;Configuration and Styling&lt;/h4&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/Alexays/Waybar/wiki&quot;&gt;See the wiki for more details&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;Installation&lt;/h3&gt; 
&lt;p&gt;Waybar is available from a number of Linux distributions:&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://repology.org/project/waybar/versions&quot;&gt;&lt;img src=&quot;https://repology.org/badge/vertical-allrepos/waybar.svg?columns=3&amp;amp;header=Waybar%20Downstream%20Packaging&quot; alt=&quot;Packaging status&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;An Ubuntu PPA with more recent versions is available &lt;a href=&quot;https://launchpad.net/~nschloe/+archive/ubuntu/waybar&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; 
&lt;h4&gt;Building from source&lt;/h4&gt; 
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;$ git clone https://github.com/Alexays/Waybar
$ cd Waybar
$ meson setup build
$ ninja -C build
$ ./build/waybar
# If you want to install it
$ ninja -C build install
$ waybar
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Dependencies&lt;/strong&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;gtkmm3
jsoncpp
libsigc++
fmt
wayland
chrono-date
spdlog
libgtk-3-dev [gtk-layer-shell]
gobject-introspection [gtk-layer-shell]
libgirepository1.0-dev [gtk-layer-shell]
libpulse [Pulseaudio module]
libnl [Network module]
libappindicator-gtk3 [Tray module]
libdbusmenu-gtk3 [Tray module]
libmpdclient [MPD module]
libsndio [sndio module]
libevdev [KeyboardState module]
xkbregistry
upower [UPower battery module]
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;&lt;strong&gt;Build dependencies&lt;/strong&gt;&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;cmake
meson
scdoc
wayland-protocols
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;On Ubuntu, you can install all the relevant dependencies using this command (tested with 19.10 and 20.04):&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;sudo apt install \
  clang-tidy \
  gobject-introspection \
  libdbusmenu-gtk3-dev \
  libevdev-dev \
  libfmt-dev \
  libgirepository1.0-dev \
  libgtk-3-dev \
  libgtkmm-3.0-dev \
  libinput-dev \
  libjsoncpp-dev \
  libmpdclient-dev \
  libnl-3-dev \
  libnl-genl-3-dev \
  libpulse-dev \
  libsigc++-2.0-dev \
  libspdlog-dev \
  libwayland-dev \
  scdoc \
  upower \
  libxkbregistry-dev
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;On Arch, you can use this command:&lt;/p&gt; 
&lt;pre&gt;&lt;code&gt;pacman -S --asdeps \
  gtkmm3 \
  jsoncpp \
  libsigc++ \
  fmt \
  wayland \
  chrono-date \
  spdlog \
  gtk3 \
  gobject-introspection \
  libgirepository \
  libpulse \
  libnl \
  libappindicator-gtk3 \
  libdbusmenu-gtk3 \
  libmpdclient \
  sndio \
  libevdev \
  libxkbcommon \
  upower \
  meson \
  cmake \
  scdoc \
  wayland-protocols \
  glib2-devel
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;Contributions welcome!&lt;br /&gt; Have fun 😃&lt;br /&gt; The style guidelines are &lt;a href=&quot;https://google.github.io/styleguide/cppguide.html&quot;&gt;Google&#39;s&lt;/a&gt;&lt;/p&gt; 
&lt;div class=&quot;markdown-alert markdown-alert-caution&quot;&gt;
 &lt;p class=&quot;markdown-alert-title&quot;&gt;
  &lt;svg class=&quot;octicon octicon-stop mr-2&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
   &lt;path d=&quot;M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;
  &lt;/svg&gt;Caution&lt;/p&gt;
 &lt;p&gt;Distributions of Waybar are only released on the &lt;a href=&quot;https://github.com/Alexays/Waybar&quot;&gt;official GitHub page&lt;/a&gt;.&lt;br /&gt; Waybar does &lt;strong&gt;not&lt;/strong&gt; have an official website. Do not trust any sites that claim to be official.&lt;/p&gt; 
&lt;/div&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;p&gt;Waybar is licensed under the MIT license. &lt;a href=&quot;https://github.com/Alexays/Waybar/raw/master/LICENSE&quot;&gt;See LICENSE for more information&lt;/a&gt;.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/28ec57f9751c9b39f50fdf6ad0d1aa4240a0914abc5c8932fd55ddb80f76574b/Alexays/Waybar" medium="image" />
      
    </item>
    
    <item>
      <title>envoyproxy/envoy</title>
      <link>https://github.com/envoyproxy/envoy</link>
      <description>&lt;p&gt;Cloud-native high-performance edge/middle/service proxy&lt;/p&gt;&lt;hr&gt;&lt;p&gt;&lt;img src=&quot;https://github.com/envoyproxy/artwork/raw/main/PNG/Envoy_Logo_Final_PANTONE.png&quot; alt=&quot;Envoy Logo&quot; /&gt;&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://www.envoyproxy.io/&quot;&gt;Cloud-native high-performance edge/middle/service proxy&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Envoy is hosted by the &lt;a href=&quot;https://cncf.io&quot;&gt;Cloud Native Computing Foundation&lt;/a&gt; (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who&#39;s involved and how Envoy plays a role, read the CNCF &lt;a href=&quot;https://www.cncf.io/blog/2017/09/13/cncf-hosts-envoy/&quot;&gt;announcement&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://bestpractices.coreinfrastructure.org/projects/1266&quot;&gt;&lt;img src=&quot;https://bestpractices.coreinfrastructure.org/projects/1266/badge&quot; alt=&quot;CII Best Practices&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://securityscorecards.dev/viewer/?uri=github.com/envoyproxy/envoy&quot;&gt;&lt;img src=&quot;https://api.securityscorecards.dev/projects/github.com/envoyproxy/envoy/badge&quot; alt=&quot;OpenSSF Scorecard&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://clomonitor.io/projects/cncf/envoy&quot;&gt;&lt;img src=&quot;https://img.shields.io/endpoint?url=https://clomonitor.io/api/projects/cncf/envoy/badge&quot; alt=&quot;CLOMonitor&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Documentation&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.envoyproxy.io/&quot;&gt;Official documentation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.envoyproxy.io/docs/envoy/latest/faq/overview&quot;&gt;FAQ&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/envoyproxy/examples/&quot;&gt;Example documentation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://medium.com/@mattklein123/envoy-threading-model-a8d44b922310&quot;&gt;Blog&lt;/a&gt; about the threading model&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://medium.com/@mattklein123/envoy-hot-restart-1d16b14555b5&quot;&gt;Blog&lt;/a&gt; about hot restart&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://medium.com/@mattklein123/envoy-stats-b65c7f363342&quot;&gt;Blog&lt;/a&gt; about stats architecture&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://medium.com/@mattklein123/the-universal-data-plane-api-d15cec7a&quot;&gt;Blog&lt;/a&gt; about universal data plane API&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://medium.com/@mattklein123/lyfts-envoy-dashboards-5c91738816b1&quot;&gt;Blog&lt;/a&gt; on Lyft&#39;s Envoy dashboards&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Related&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/envoyproxy/data-plane-api&quot;&gt;data-plane-api&lt;/a&gt;: v2 API definitions as a standalone repository. This is a read-only mirror of &lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/api/&quot;&gt;api&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/envoyproxy/envoy-perf&quot;&gt;envoy-perf&lt;/a&gt;: Performance testing framework.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/envoyproxy/envoy-filter-example&quot;&gt;envoy-filter-example&lt;/a&gt;: Example of how to add new filters and link to the main repository.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Contact&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/envoy-announce&quot;&gt;envoy-announce&lt;/a&gt;: Low frequency mailing list where we will email announcements only.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/envoy-security-announce&quot;&gt;envoy-security-announce&lt;/a&gt;: Low frequency mailing list where we will email security related announcements only.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/envoy-users&quot;&gt;envoy-users&lt;/a&gt;: General user discussion.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/envoy-dev&quot;&gt;envoy-dev&lt;/a&gt;: Envoy developer discussion (APIs, feature design, etc.).&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://groups.google.com/forum/#!forum/envoy-maintainers&quot;&gt;envoy-maintainers&lt;/a&gt;: Use this list to reach all core Envoy maintainers.&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://twitter.com/EnvoyProxy/&quot;&gt;Twitter&lt;/a&gt;: Follow along on Twitter!&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://envoyproxy.slack.com/&quot;&gt;Slack&lt;/a&gt;: Slack, to get invited go &lt;a href=&quot;https://communityinviter.com/apps/envoyproxy/envoy&quot;&gt;here&lt;/a&gt;. 
  &lt;ul&gt; 
   &lt;li&gt;NOTE: Response to user questions is best effort on Slack. For a &quot;guaranteed&quot; response please email envoy-users@ per the guidance in the following linked thread.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;Please see &lt;a href=&quot;https://groups.google.com/forum/#!topic/envoy-announce/l9zjYsnS3TY&quot;&gt;this&lt;/a&gt; email thread for information on email list usage.&lt;/p&gt; 
&lt;h2&gt;Contributing&lt;/h2&gt; 
&lt;p&gt;Contributing to Envoy is fun and modern C++ is a lot less scary than you might think if you don&#39;t have prior experience. To get started:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/CONTRIBUTING.md&quot;&gt;Contributing guide&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/envoyproxy/envoy/issues?q=is%3Aopen+is%3Aissue+label%3Abeginner&quot;&gt;Beginner issues&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/ci#building-and-running-tests-as-a-developer&quot;&gt;Build/test quick start using docker&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/DEVELOPER.md&quot;&gt;Developer guide&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;Consider installing the Envoy &lt;a href=&quot;https://github.com/envoyproxy/envoy/raw/main/support/README.md&quot;&gt;development support toolchain&lt;/a&gt;, which helps automate parts of the development process, particularly those involving code review.&lt;/li&gt; 
 &lt;li&gt;Please make sure that you let us know if you are working on an issue so we don&#39;t duplicate work!&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;Community Meeting&lt;/h2&gt; 
&lt;p&gt;The Envoy team has a scheduled meeting time twice per month on Tuesday at 9am PT. The public Google calendar is &lt;a href=&quot;https://goo.gl/PkDijT&quot;&gt;here&lt;/a&gt;. The meeting will only be held if there are agenda items listed in the &lt;a href=&quot;https://goo.gl/5Cergb&quot;&gt;meeting minutes&lt;/a&gt;. Any member of the community should be able to propose agenda items by adding to the minutes. The maintainers will either confirm the additions to the agenda, or will cancel the meeting within 24 hours of the scheduled date if there is no confirmed agenda.&lt;/p&gt; 
&lt;h2&gt;Security&lt;/h2&gt; 
&lt;h3&gt;Security Audit&lt;/h3&gt; 
&lt;p&gt;There has been several third party engagements focused on Envoy security:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt;In 2018 Cure53 performed a security audit, &lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/docs/security/audit_cure53_2018.pdf&quot;&gt;full report&lt;/a&gt;.&lt;/li&gt; 
 &lt;li&gt;In 2021 Ada Logics performed an audit on our fuzzing infrastructure with recommendations for improvements, &lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/docs/security/audit_fuzzer_adalogics_2021.pdf&quot;&gt;full report&lt;/a&gt;.&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Reporting security vulnerabilities&lt;/h3&gt; 
&lt;p&gt;If you&#39;ve found a vulnerability or a potential vulnerability in Envoy, please &lt;a href=&quot;https://github.com/envoyproxy/envoy/security/advisories/new&quot;&gt;open a GitHub Security Advisory&lt;/a&gt;. This is the preferred reporting channel, as the reports can be triaged directly on GitHub.&lt;/p&gt; 
&lt;p&gt;Alternatively, you may email &lt;a href=&quot;mailto:envoy-security@googlegroups.com&quot;&gt;envoy-security@googlegroups.com&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;For further details please see our complete &lt;a href=&quot;https://raw.githubusercontent.com/envoyproxy/envoy/main/SECURITY.md&quot;&gt;security release process&lt;/a&gt;.&lt;/p&gt; 
&lt;h3&gt;OSS fuzzing&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&amp;amp;can=1&amp;amp;q=proj:envoy&quot;&gt;&lt;img src=&quot;https://oss-fuzz-build-logs.storage.googleapis.com/badges/envoy.svg?sanitize=true&quot; alt=&quot;Fuzzing Status&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;ppc64le builds&lt;/h3&gt; 
&lt;p&gt;Builds for the ppc64le architecture or using aws-lc are not covered by the envoy security policy. The ppc64le architecture is currently best-effort and not maintained by the Envoy maintainers.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://powerci.osuosl.org/job/build-envoy-static-master/&quot;&gt;&lt;img src=&quot;https://powerci.osuosl.org/buildStatus/icon?job=build-envoy-static-master&amp;amp;subject=ppc64le%20build&quot; alt=&quot;Jenkins&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h3&gt;Other builds&lt;/h3&gt; 
&lt;p&gt;&lt;a href=&quot;https://ibmz-ci.osuosl.org/job/Envoy_IBMZ_CI/&quot;&gt;&lt;img src=&quot;https://ibmz-ci.osuosl.org/buildStatus/icon?job=Envoy_IBMZ_CI&amp;amp;subject=s390x%20build&quot; alt=&quot;Jenkins&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Releases&lt;/h2&gt; 
&lt;p&gt;For further details please see our &lt;a href=&quot;https://github.com/envoyproxy/envoy/raw/main/RELEASES.md&quot;&gt;release process&lt;/a&gt;.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/175ed81aa036c6c2f3e134c004e063c89ea9da4e98c2b40ece1e87f0d5c1dcb2/envoyproxy/envoy" medium="image" />
      
    </item>
    
    <item>
      <title>NVIDIA/nccl</title>
      <link>https://github.com/NVIDIA/nccl</link>
      <description>&lt;p&gt;Optimized primitives for collective multi-GPU communication&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;NCCL&lt;/h1&gt; 
&lt;p&gt;Optimized primitives for inter-GPU communication.&lt;/p&gt; 
&lt;h2&gt;Introduction&lt;/h2&gt; 
&lt;p&gt;NCCL (pronounced &quot;Nickel&quot;) is a stand-alone library of standard communication routines for GPUs, implementing all-reduce, all-gather, reduce, broadcast, reduce-scatter, as well as any send/receive based communication pattern. It has been optimized to achieve high bandwidth on platforms using PCIe, NVLink, NVswitch, as well as networking using InfiniBand Verbs or TCP/IP sockets. NCCL supports an arbitrary number of GPUs installed in a single node or across multiple nodes, and can be used in either single- or multi-process (e.g., MPI) applications.&lt;/p&gt; 
&lt;p&gt;For more information on NCCL usage, please refer to the &lt;a href=&quot;https://docs.nvidia.com/deeplearning/sdk/nccl-developer-guide/index.html&quot;&gt;NCCL documentation&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Build&lt;/h2&gt; 
&lt;p&gt;Note: the official and tested builds of NCCL can be downloaded from: &lt;a href=&quot;https://developer.nvidia.com/nccl&quot;&gt;https://developer.nvidia.com/nccl&lt;/a&gt;. You can skip the following build steps if you choose to use the official builds.&lt;/p&gt; 
&lt;p&gt;To build the library :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ cd nccl
$ make -j src.build
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;If CUDA is not installed in the default /usr/local/cuda path, you can define the CUDA path with :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ make src.build CUDA_HOME=&amp;lt;path to cuda install&amp;gt;
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;NCCL will be compiled and installed in &lt;code&gt;build/&lt;/code&gt; unless &lt;code&gt;BUILDDIR&lt;/code&gt; is set.&lt;/p&gt; 
&lt;p&gt;By default, NCCL is compiled for all supported architectures. To accelerate the compilation and reduce the binary size, consider redefining &lt;code&gt;NVCC_GENCODE&lt;/code&gt; (defined in &lt;code&gt;makefiles/common.mk&lt;/code&gt;) to only include the architecture of the target platform :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ make -j src.build NVCC_GENCODE=&quot;-gencode=arch=compute_90,code=sm_90&quot;
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Install&lt;/h2&gt; 
&lt;p&gt;To install NCCL on the system, create a package then install it as root.&lt;/p&gt; 
&lt;p&gt;Debian/Ubuntu :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ # Install tools to create debian packages
$ sudo apt install build-essential devscripts debhelper fakeroot
$ # Build NCCL deb package
$ make pkg.debian.build
$ ls build/pkg/deb/
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;RedHat/CentOS :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ # Install tools to create rpm packages
$ sudo yum install rpm-build rpmdevtools
$ # Build NCCL rpm package
$ make pkg.redhat.build
$ ls build/pkg/rpm/
&lt;/code&gt;&lt;/pre&gt; 
&lt;p&gt;OS-agnostic tarball :&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ make pkg.txz.build
$ ls build/pkg/txz/
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Tests&lt;/h2&gt; 
&lt;p&gt;Tests for NCCL are maintained separately at &lt;a href=&quot;https://github.com/nvidia/nccl-tests&quot;&gt;https://github.com/nvidia/nccl-tests&lt;/a&gt;.&lt;/p&gt; 
&lt;pre&gt;&lt;code class=&quot;language-shell&quot;&gt;$ git clone https://github.com/NVIDIA/nccl-tests.git
$ cd nccl-tests
$ make
$ ./build/all_reduce_perf -b 8 -e 256M -f 2 -g &amp;lt;ngpus&amp;gt;
&lt;/code&gt;&lt;/pre&gt; 
&lt;h2&gt;Copyright&lt;/h2&gt; 
&lt;p&gt;All source code and accompanying documentation is copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.&lt;/p&gt;</description>
      
      <media:content url="https://opengraph.githubassets.com/4da8bd860142f059b8d6e4cd33d7a07a0919c3ea7af6623ebcdfaf204ef65554/NVIDIA/nccl" medium="image" />
      
    </item>
    
    <item>
      <title>azerothcore/azerothcore-wotlk</title>
      <link>https://github.com/azerothcore/azerothcore-wotlk</link>
      <description>&lt;p&gt;Complete Open Source and Modular solution for MMO&lt;/p&gt;&lt;hr&gt;&lt;h1&gt;&lt;img src=&quot;https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png&quot; alt=&quot;logo&quot; /&gt; AzerothCore&lt;/h1&gt; 
&lt;p&gt;&lt;a href=&quot;https://raw.githubusercontent.com/azerothcore/azerothcore-wotlk/master/CODE_OF_CONDUCT.md&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg?sanitize=true&quot; alt=&quot;Contributor Covenant&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk&quot;&gt;&lt;img src=&quot;https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/badge&quot; alt=&quot;CodeFactor&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://stackoverflow.com/questions/tagged/azerothcore?sort=newest&quot; title=&quot;Ask / browse questions here&quot;&gt;&lt;img src=&quot;http://img.shields.io/badge/stackoverflow-azerothcore-blue.svg?logo=stackoverflow&quot; alt=&quot;StackOverflow&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://discord.gg/gkt4y2x&quot; title=&quot;Our community hub on Discord&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/217589275766685707?logo=discord&amp;amp;logoColor=white&quot; alt=&quot;Discord&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.bountyhub.dev/bounties?repo=azerothcore&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Bounties-on%20BountyHub-yellow&quot; alt=&quot;Bounties on BountyHub&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Build Status&lt;/h2&gt; 
&lt;p&gt;&lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core-build-nopch.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core-build-nopch.yml/badge.svg?branch=master&quot; alt=&quot;nopch-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core-build-pch.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core-build-pch.yml/badge.svg?branch=master&quot; alt=&quot;pch-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core_modules_build.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/core_modules_build.yml/badge.svg?branch=master&quot; alt=&quot;core-modules-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/windows_build.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/windows_build.yml/badge.svg?branch=master&quot; alt=&quot;windows-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/macos_build.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/macos_build.yml/badge.svg?branch=master&quot; alt=&quot;macos-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/docker_build.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/docker_build.yml/badge.svg?branch=master&quot; alt=&quot;docker-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/tools_build.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/tools_build.yml/badge.svg?branch=master&quot; alt=&quot;tools-build&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/dashboard-ci.yml?query=branch%3Amaster&quot;&gt;&lt;img src=&quot;https://github.com/azerothcore/azerothcore-wotlk/actions/workflows/dashboard-ci.yml/badge.svg?branch=master&quot; alt=&quot;dashboard-ci&quot; /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;h2&gt;Introduction&lt;/h2&gt; 
&lt;p&gt;AzerothCore is an open-source game server application and framework designed for hosting massively multiplayer online role-playing games (MMORPGs). It is based on the popular MMORPG World of Warcraft (WoW) and seeks to recreate the gameplay experience of the original game from patch 3.3.5a.&lt;/p&gt; 
&lt;p&gt;The original code is based on MaNGOS, TrinityCore, and SunwellCore and has since then had extensive development to improve stability, in-game mechanics, and modularity to the game. AC has also grown into a community-driven project with a significant number of contributors and developers. It is written in C++ and provides a solid foundation for creating private servers that mimic the mechanics and behavior of the official WoW servers.&lt;/p&gt; 
&lt;h2&gt;Philosophy&lt;/h2&gt; 
&lt;p&gt;Our main goal is to create a playable game server, offering a fully working in-game experience.&lt;/p&gt; 
&lt;p&gt;Here are the main points we focus on:&lt;/p&gt; 
&lt;ul&gt; 
 &lt;li&gt; &lt;p&gt;Stability&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;We make sure all changes pass the CIs before being merged into the master branch.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Blizzlike content&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;We strive to make all in-game content to be blizzlike. Therefore we have a high standard for fixes being made.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Customization&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;It is easy to customize your experience using &lt;a href=&quot;https://raw.githubusercontent.com/azerothcore/azerothcore-wotlk/master/#modules&quot;&gt;modules&lt;/a&gt;.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
 &lt;li&gt; &lt;p&gt;Community driven&lt;/p&gt; 
  &lt;ul&gt; 
   &lt;li&gt;AzerothCore has an active community of developers, contributors, and users who collaborate, share knowledge, and provide support through forums, Discord channels, and other communication platforms.&lt;/li&gt; 
  &lt;/ul&gt; &lt;/li&gt; 
&lt;/ul&gt; 
&lt;h3&gt;Modules&lt;/h3&gt; 
&lt;p&gt;AzerothCore is designed to be highly modular, allowing developers to extend and customize the game to suit their preferences or create unique gameplay experiences. This flexibility enables the addition of custom features, content, and modifications.&lt;/p&gt; 
&lt;p&gt;We have a lot of modules already made by the community, many of which can be found in the &lt;a href=&quot;https://www.azerothcore.org/catalogue.html#/&quot;&gt;Module Catalogue&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Installation&lt;/h2&gt; 
&lt;p&gt;Detailed installation instructions are available &lt;a href=&quot;http://www.azerothcore.org/wiki/installation&quot;&gt;here&lt;/a&gt;.&lt;/p&gt; 
&lt;h2&gt;Contributing&lt;/h2&gt; 
&lt;p&gt;AzerothCore can also serve as a learning resource for aspiring developers who want to understand how WoW servers work, how MMORPGs are structured, how game server emulators are created, or to improve their C++ and SQL knowledge.&lt;/p&gt; 
&lt;p&gt;If you want to contribute to the project, you will find a lot of resources that will guide you in our &lt;a href=&quot;https://www.azerothcore.org/wiki/contribute&quot;&gt;wiki&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;We also recommend you read our &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/raw/master/.github/CODE_OF_CONDUCT.md&quot;&gt;Contributor Covenant Code of Conduct&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;Feel free to join our &lt;a href=&quot;https://discord.gg/gkt4y2x&quot;&gt;Discord server&lt;/a&gt;.&lt;/p&gt; 
&lt;p&gt;Click on the &quot;⭐ Star&quot; button to help us gain more visibility on Github!&lt;/p&gt; 
&lt;h2&gt;Authors &amp;amp; Contributors&lt;/h2&gt; 
&lt;p&gt;The project was born in 2016 based on SunwellCore. Unfortunately, SunwellCore was published without any git history, so on git there are no credits for all the contributors before 2016.&lt;/p&gt; 
&lt;p&gt;You can check the &lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/raw/master/AUTHORS&quot;&gt;authors&lt;/a&gt; file for more details.&lt;/p&gt; 
&lt;h2&gt;Important Links&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.azerothcore.org/pages/doxygen/index.html&quot;&gt;Doxygen documentation&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://www.azerothcore.org/&quot;&gt;Website&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://www.azerothcore.org/catalogue.html&quot; title=&quot;Modules, tools, and other stuff for AzerothCore&quot;&gt;AzerothCore catalogue&lt;/a&gt; (modules, tools, etc...)&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://discord.gg/gkt4y2x&quot;&gt;Our Discord server&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;http://www.azerothcore.org/wiki&quot; title=&quot;Easy to use and developed by AzerothCore founder&quot;&gt;Our wiki&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://github.com/azerothcore/azerothcore-wotlk/discussions/&quot;&gt;Our forum&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.facebook.com/AzerothCore/&quot;&gt;Our Facebook page&lt;/a&gt;&lt;/li&gt; 
 &lt;li&gt;&lt;a href=&quot;https://www.linkedin.com/company/azerothcore/&quot;&gt;Our LinkedIn page&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;h2&gt;License&lt;/h2&gt; 
&lt;ul&gt; 
 &lt;li&gt;The AzerothCore source code is released under the &lt;a href=&quot;https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html&quot;&gt;GNU GPL v2&lt;/a&gt;&lt;/li&gt; 
&lt;/ul&gt; 
&lt;p&gt;It&#39;s important to note that AzerothCore is not an official Blizzard Entertainment product, and it is not affiliated with or endorsed by World of Warcraft or Blizzard Entertainment. AzerothCore does not in any case sponsor nor support illegal public servers. If you use this project to run an illegal public server and not for testing and learning it is your own personal choice.&lt;/p&gt; 
&lt;h2&gt;Special thanks&lt;/h2&gt; 
&lt;p&gt;&lt;a href=&quot;https://www.jetbrains.com/?from=AzerothCore&quot;&gt;JetBrains&lt;/a&gt; is providing free &lt;a href=&quot;https://www.jetbrains.com/community/opensource/&quot;&gt;open-source licenses&lt;/a&gt; to the AzerothCore developers.&lt;/p&gt; 
&lt;p&gt;&lt;a href=&quot;https://jb.gg/OpenSourceSupport&quot;&gt;&lt;img src=&quot;https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg?sanitize=true&quot; alt=&quot;JetBrains logo.&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
      
      <media:content url="https://repository-images.githubusercontent.com/61980658/81cf1300-d8ea-11ea-8db0-4c26b9e798d6" medium="image" />
      
    </item>
    
  </channel>
</rss>
