docs: add sidebar labels and reorganize solution docs into category folders

This commit is contained in:
Prad Nukala
2026-08-20 13:47:49 -04:00
parent 7c05d998bc
commit a990d912d8
28 changed files with 28 additions and 0 deletions
@@ -2,6 +2,7 @@
title: '121. Best Time to Buy and Sell Stock' title: '121. Best Time to Buy and Sell Stock'
description: You are given an array prices where prices[i] is the price of a given stock on the i^th day description: You are given an array prices where prices[i] is the price of a given stock on the i^th day
sidebar: sidebar:
label: 'Best Time to Buy and Sell Stock'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '1365. How Many Numbers Are Smaller Than the Current Number' title: '1365. How Many Numbers Are Smaller Than the Current Number'
description: Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i] description: Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i]
sidebar: sidebar:
label: 'How Many Numbers Are Smaller Than the Current Number'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '1413. Minimum Value to Get Positive Step by Step Sum' title: '1413. Minimum Value to Get Positive Step by Step Sum'
description: Given an array of integers nums, you start with an initial positive value startValue description: Given an array of integers nums, you start with an initial positive value startValue
sidebar: sidebar:
label: 'Minimum Value to Get Positive Step by Step Sum'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '1426. Counting Elements' title: '1426. Counting Elements'
description: Given an integer array arr, count how many elements x there are, such that x + 1 is also in arr. If there are duplicates in arr, count them separately description: Given an integer array arr, count how many elements x there are, such that x + 1 is also in arr. If there are duplicates in arr, count them separately
sidebar: sidebar:
label: 'Counting Elements'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '1480. Running Sum of 1d Array' title: '1480. Running Sum of 1d Array'
description: Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]&hellip;nums[i]) description: Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]&hellip;nums[i])
sidebar: sidebar:
label: 'Running Sum of 1d Array'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '15. 3Sum' title: '15. 3Sum'
description: Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0 description: Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0
sidebar: sidebar:
label: '3Sum'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '1636. Sort Array by Increasing Frequency' title: '1636. Sort Array by Increasing Frequency'
description: Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple values have the same frequency, sort them in decreasing order description: Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple values have the same frequency, sort them in decreasing order
sidebar: sidebar:
label: 'Sort Array by Increasing Frequency'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '167. Two Sum II - Input Array Is Sorted' title: '167. Two Sum II - Input Array Is Sorted'
description: Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length description: Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two numbers be numbers[index1] and numbers[index2] where 1 <= index1 < index2 <= numbers.length
sidebar: sidebar:
label: 'Two Sum II - Input Array Is Sorted'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '189. Rotate Array' title: '189. Rotate Array'
description: Given an integer array nums, rotate the array to the right by k steps, where k is non-negative description: Given an integer array nums, rotate the array to the right by k steps, where k is non-negative
sidebar: sidebar:
label: 'Rotate Array'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '2090. K Radius Subarray Averages' title: '2090. K Radius Subarray Averages'
description: You are given a 0-indexed array nums of n integers, and an integer k description: You are given a 0-indexed array nums of n integers, and an integer k
sidebar: sidebar:
label: 'K Radius Subarray Averages'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '217. Contains Duplicate' title: '217. Contains Duplicate'
description: Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct description: Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct
sidebar: sidebar:
label: 'Contains Duplicate'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '238. Product of Array Except Self' title: '238. Product of Array Except Self'
description: Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i] description: Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]
sidebar: sidebar:
label: 'Product of Array Except Self'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '268. Missing Number' title: '268. Missing Number'
description: Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array description: Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array
sidebar: sidebar:
label: 'Missing Number'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '303. Range Sum Query - Immutable' title: '303. Range Sum Query - Immutable'
description: Given an integer array nums, handle multiple queries of the following type description: Given an integer array nums, handle multiple queries of the following type
sidebar: sidebar:
label: 'Range Sum Query - Immutable'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '33. Search in Rotated Sorted Array' title: '33. Search in Rotated Sorted Array'
description: There is an integer array nums sorted in ascending order (with distinct values) description: There is an integer array nums sorted in ascending order (with distinct values)
sidebar: sidebar:
label: 'Search in Rotated Sorted Array'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '347. Top K Frequent Elements' title: '347. Top K Frequent Elements'
description: Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order description: Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order
sidebar: sidebar:
label: 'Top K Frequent Elements'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '42. Trapping Rain Water' title: '42. Trapping Rain Water'
description: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining description: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining
sidebar: sidebar:
label: 'Trapping Rain Water'
badge: 'Hard' badge: 'Hard'
--- ---
@@ -2,6 +2,7 @@
title: '49. Group Anagrams' title: '49. Group Anagrams'
description: Given an array of strings strs, group the anagrams together. You can return the answer in any order description: Given an array of strings strs, group the anagrams together. You can return the answer in any order
sidebar: sidebar:
label: 'Group Anagrams'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '560. Subarray Sum Equals K' title: '560. Subarray Sum Equals K'
description: Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k description: Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k
sidebar: sidebar:
label: 'Subarray Sum Equals K'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '704. Binary Search' title: '704. Binary Search'
description: Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1 description: Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1
sidebar: sidebar:
label: 'Binary Search'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '875. Koko Eating Bananas' title: '875. Koko Eating Bananas'
description: Koko loves to eat bananas. There are n piles of bananas, the i^th pile has piles[i] bananas. The guards have gone and will come back in h hours description: Koko loves to eat bananas. There are n piles of bananas, the i^th pile has piles[i] bananas. The guards have gone and will come back in h hours
sidebar: sidebar:
label: 'Koko Eating Bananas'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '977. Squares of a Sorted Array' title: '977. Squares of a Sorted Array'
description: Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order description: Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order
sidebar: sidebar:
label: 'Squares of a Sorted Array'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '1832. Check if the Sentence Is Pangram' title: '1832. Check if the Sentence Is Pangram'
description: A pangram is a sentence where every letter of the English alphabet appears at least once description: A pangram is a sentence where every letter of the English alphabet appears at least once
sidebar: sidebar:
label: 'Check if the Sentence Is Pangram'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '242. Valid Anagram' title: '242. Valid Anagram'
description: Given two strings s and t, return true if t is an anagram of s, and false otherwise description: Given two strings s and t, return true if t is an anagram of s, and false otherwise
sidebar: sidebar:
label: 'Valid Anagram'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '387. First Unique Character in a String' title: '387. First Unique Character in a String'
description: Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1 description: Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1
sidebar: sidebar:
label: 'First Unique Character in a String'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '451. Sort Characters By Frequency' title: '451. Sort Characters By Frequency'
description: Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string description: Given a string s, sort it in decreasing order based on the frequency of the characters. The frequency of a character is the number of times it appears in the string
sidebar: sidebar:
label: 'Sort Characters By Frequency'
badge: 'Medium' badge: 'Medium'
--- ---
@@ -2,6 +2,7 @@
title: '125. Valid Palindrome' title: '125. Valid Palindrome'
description: A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers description: A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers
sidebar: sidebar:
label: 'Valid Palindrome'
badge: 'Easy' badge: 'Easy'
--- ---
@@ -2,6 +2,7 @@
title: '344. Reverse String' title: '344. Reverse String'
description: Write a function that reverses a string. The input string is given as an array of characters s description: Write a function that reverses a string. The input string is given as an array of characters s
sidebar: sidebar:
label: 'Reverse String'
badge: 'Easy' badge: 'Easy'
--- ---