Skip to content

Commit 366e1dd

Browse files
committed
Fix: remove difficulty
1 parent faa11e2 commit 366e1dd

File tree

67 files changed

+67
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+67
-67
lines changed

algorithms/ruby/0011-container-with-most-water.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 11. Container With Most Water
44
# https://leetcode.com/problems/container-with-most-water/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0016-3sum-closest.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 16. 3Sum Closest
44
# https://leetcode.com/problems/3sum-closest/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target.

algorithms/ruby/0033-search-in-rotated-sorted-array.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 33. Search in Rotated Sorted Array
44
# https://leetcode.com/problems/search-in-rotated-sorted-array
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
There is an integer array nums sorted in ascending order (with distinct values).

algorithms/ruby/0039-combination-sum.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 39. Combination Sum
44
# https://leetcode.com/problems/combination-sum
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.

algorithms/ruby/0046-permutations.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 46. Permutations
44
# https://leetcode.com/problems/permutations
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.

algorithms/ruby/0056-merge-intervals.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 56. Merge Intervals
44
# https://leetcode.com/problems/merge-intervals
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.

algorithms/ruby/0057-insert-interval.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 57. Insert Interval
44
# https://leetcode.com/problems/insert-interval
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end of the ith interval and intervals is sorted in ascending order by starti. You are also given an interval newInterval = [start, end] that represents the start and end of another interval.

algorithms/ruby/0071-simplify-path.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 71. Simplify Path
44
# https://leetcode.com/problems/simplify-path/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.

algorithms/ruby/0074-search-a-2d-matrix.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 74. Search a 2D Matrix
44
# https://leetcode.com/problems/search-a-2d-matrix
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
You are given an m x n integer matrix matrix with the following two properties:

algorithms/ruby/0076-minimum-window-substring.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 76. Minimum Window Substring
44
# https://leetcode.com/problems/minimum-window-substring/
5-
# Difficulty: Hard
5+
# Hard
66

77
=begin
88
Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is included in the window. If there is no such substring, return the empty string "".

algorithms/ruby/0100-same-tree.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 100. Same Tree
44
# https://leetcode.com/problems/same-tree/
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Given the roots of two binary trees p and q, write a function to check if they are the same or not.

algorithms/ruby/0108-convert-sorted-array-to-binary-search-tree.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 108. Convert Sorted Array to Binary Search Tree
44
# https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88

algorithms/ruby/0110-balanced-binary-tree.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 110. Balanced Binary Tree
44
# https://leetcode.com/problems/balanced-binary-tree/
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88

algorithms/ruby/0148-sort-list.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 148. Sort List
44
# https://leetcode.com/problems/sort-list
5-
# Difficulty: Medium
5+
# Medium
66

77
# Definition for singly-linked list.
88
# class ListNode

algorithms/ruby/0151-reverse-words-in-a-string.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 151. Reverse Words in a String
44
# https://leetcode.com/problems/reverse-words-in-a-string
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an input string s, reverse the order of the words.

algorithms/ruby/0152-maximum-product-subarray.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 152. Maximum Product Subarray
44
# https://leetcode.com/problems/maximum-product-subarray/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an integer array nums, find a subarray that has the largest product, and return the product.

algorithms/ruby/0155-min-stack.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 155. Min Stack
44
# https://leetcode.com/problems/min-stack/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.

algorithms/ruby/0173-binary-search-tree-iterato.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 173. Binary Search Tree Iterator
44
# https://leetcode.com/problems/binary-search-tree-iterator
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0198-house-robber.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 198. House Robber
44
# https://leetcode.com/problems/house-robber/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0199-binary-tree-right-side-view.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 199. Binary Tree Right Side View
44
# https://leetcode.com/problems/binary-tree-right-side-view/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

algorithms/ruby/0210-course-schedule-ii.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 210. Course Schedule II
44
# https://leetcode.com/problems/course-schedule-ii/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0227-basic-calculator-ii.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 227. Basic Calculator II
44
# https://leetcode.com/pcalculatelems/basic-calculator-ii
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given a string s which represents an expression, evaluate this expression and return its value.

algorithms/ruby/0230-kth-smallest-element-in-a-bst.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 230. Kth Smallest Element in a BST
44
# https://leetcode.com/problems/kth-smallest-element-in-a-bst
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0232-implement-queue-using-stacks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 232. Implement Queue using Stacks
44
# https://leetcode.com/problems/implement-queue-using-stacks/
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, and empty).

algorithms/ruby/0238-product-of-array-except-self.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 238. Product of Array Except Self
44
# https://leetcode.com/problems/product-of-array-except-self
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
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].

algorithms/ruby/0258-add-digits.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 258. Add Digits
44
# https://leetcode.com/problems/add-digits
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.

algorithms/ruby/0283-move-zeroes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 283. Move Zeroes
44
# https://leetcode.com/problems/move-zeroes
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.

algorithms/ruby/0319-bulb-switcher.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 319. Bulb Switcher
44
# https://leetcode.com/problems/bulb-switcher
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
There are n bulbs that are initially off. You first turn on all the bulbs, then you turn off every second bulb.

algorithms/ruby/0322-coin-change.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 322. Coin Change
44
# https://leetcode.com/problems/coin-change/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0328-odd-even-linked-list.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 328. Odd Even Linked List
44
# https://leetcode.com/problems/odd-even-linked-list
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.

algorithms/ruby/0334-increasing-triplet-subsequence.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 334. Increasing Triplet Subsequence
44
# https://leetcode.com/problems/increasing-triplet-subsequence
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices exists, return false.

algorithms/ruby/0345-reverse-vowels-of-a-string.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 345. Reverse Vowels of a String
44
# https://leetcode.com/problems/reverse-vowels-of-a-string
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Given a string s, reverse only all the vowels in the string and return it.

algorithms/ruby/0392-is-subsequence.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 392. Is Subsequence
44
# https://leetcode.com/problems/is-subsequence
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88

algorithms/ruby/0416-partition-equal-subset-sum.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 416. Partition Equal Subset Sum
44
# https://leetcode.com/problems/partition-equal-subset-sum/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given an integer array nums, return true if you can partition the array into two subsets such that the sum of the elements in both subsets is equal or false otherwise.

algorithms/ruby/0417-pacific-atlantic-water-flow.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 417. Pacific Atlantic Water Flow
44
# https://leetcode.com/problems/pacific-atlantic-water-flow
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0437-path-sum-iii.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 437. Path Sum III
44
# https://leetcode.com/problems/path-sum-iii/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given the root of a binary tree and an integer targetSum, return the number of paths where the sum of the values along the path equals targetSum.

algorithms/ruby/0516-longest-palindromic-subsequence.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 516. Longest Palindromic Subsequence
44
# https://leetcode.com/problems/longest-palindromic-subsequence/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88

algorithms/ruby/0543-diameter-of-binary-tree.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 543. Diameter of Binary Tree
44
# https://leetcode.com/problems/diameter-of-binary-tree/
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88
Given the root of a binary tree, return the length of the diameter of the tree.

algorithms/ruby/0547-number-of-provinces.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 547. Number of Provinces
44
# https://leetcode.com/problems/number-of-provinces
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly with city c, then city a is connected indirectly with city c.

algorithms/ruby/0605-can-place-flowers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 605. Can Place Flowers
44
# https://leetcode.com/problems/can-place-flowers
5-
# Difficulty: Easy
5+
# Easy
66

77
=begin
88

algorithms/ruby/0621-task-scheduler.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 621. Task Scheduler
44
# https://leetcode.com/problems/task-scheduler
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given a characters array tasks, representing the tasks a CPU needs to do, where each letter represents a different task. Tasks could be done in any order. Each task is done in one unit of time. For each unit of time, the CPU could complete either one task or just be idle.

algorithms/ruby/0662-maximum-width-of-binary-tree.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 662. Maximum Width of Binary Tree
44
# https://leetcode.com/problems/maximum-width-of-binary-tree/
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
Given the root of a binary tree, return the maximum width of the given tree.

algorithms/ruby/0735-asteroid-collision.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 735. Asteroid Collision
44
# https://leetcode.com/problems/asteroid-collision
5-
# Difficulty: Medium
5+
# Medium
66

77
=begin
88
We are given an array asteroids of integers representing asteroids in a row.

algorithms/ruby/0815-bus-routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 815. Bus Routes
44
# https://leetcode.com/problems/bus-routes/
5-
# Difficulty: Hard
5+
# Hard
66

77
=begin
88
You are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever.

0 commit comments

Comments
 (0)