Baselight

Leetcode Problem Dataset

Leetcode Dataset of 1,825 Problems

@kaggle.gzipchrist_leetcode_problem_dataset

Leetcode Dataset Lc
@kaggle.gzipchrist_leetcode_problem_dataset.leetcode_dataset_lc

  • 975.09 KB
  • 1825 rows
  • 19 columns
id

Id

title

Title

description

Description

is_premium

Is Premium

difficulty

Difficulty

solution_link

Solution Link

acceptance_rate

Acceptance Rate

frequency

Frequency

url

Url

discuss_count

Discuss Count

accepted

Accepted

submissions

Submissions

companies

Companies

related_topics

Related Topics

likes

Likes

dislikes

Dislikes

rating

Rating

asked_by_faang

Asked By Faang

similar_questions

Similar Questions

1Two SumGiven an array of integers `nums` and an integer `target`, return indices of the two numbers such that they add up to `target`. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nu…Easy/articles/two-sum46.7100https://leetcode.com/problems/two-sum9994.1M8.7MAmazon,Google,Apple,Adobe,Microsoft,Bloomberg,Facebook,Oracle,Uber,Expedia,Twitter,Nagarro,SAP,Yahoo,Cisco,Qualcomm,tcs,Goldman Sachs,Yandex,ServiceNowArray,Hash Table20217712971[3Sum, /problems/3sum/, Medium], [4Sum, /problems/4sum/, Medium], [Two Sum II - Input array is sorted, /problems/two-sum-ii-input-array-is-sorted/, Easy], [Two Sum III - Data structure design, /problems/two-sum-iii-data-structure-design/, Easy], [Subarray Sum Equals K, /problems/subarray-sum-equals-…
2Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except t…Medium/articles/add-two-numbers35.793.1https://leetcode.com/problems/add-two-numbers9991.9M5.2MBloomberg,Microsoft,Amazon,Google,Facebook,Apple,Adobe,Paypal,Coupang,Oracle,Uber,VMware,YahooLinked List,Math,Recursion113502704811[Multiply Strings, /problems/multiply-strings/, Medium], [Add Binary, /problems/add-binary/, Easy], [Sum of Two Integers, /problems/sum-of-two-integers/, Medium], [Add Strings, /problems/add-strings/, Easy], [Add Two Numbers II, /problems/add-two-numbers-ii/, Medium], [Add to Array-Form of Integer, …
3Longest Substring Without Repeating CharactersGiven a string `s`, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3:…Medium/articles/longest-substring-without-repeating-characters31.590.9https://leetcode.com/problems/longest-substring-without-repeating-characters9992.1M6.7MAmazon,Bloomberg,Microsoft,Facebook,Apple,Adobe,eBay,Goldman Sachs,Google,Alation,VMware,Oracle,ByteDance,Yahoo,Uber,SAP,Salesforce,Coupang,Splunk,SpotifyHash Table,Two Pointers,String,Sliding Window13810714951[Longest Substring with At Most Two Distinct Characters, /problems/longest-substring-with-at-most-two-distinct-characters/, Medium], [Longest Substring with At Most K Distinct Characters, /problems/longest-substring-with-at-most-k-distinct-characters/, Medium], [Subarrays with K Different Integers, …
4Median of Two Sorted ArraysGiven two sorted arrays `nums1` and `nums2` of size `m` and `n` respectively, return the median of the two sorted arrays. Example 1: Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged array = [1,2,3] and median is 2. Example 2: Input: nums1 = [1,2], nums2 = [3,4] Output: 2.500…Hard/articles/median-of-two-sorted-arrays31.486.2https://leetcode.com/problems/median-of-two-sorted-arrays999904.7K2.9MAmazon,Goldman Sachs,Facebook,Microsoft,Apple,Adobe,Google,Bloomberg,Zillow,Uber,Flipkart,PaypalArray,Binary Search,Divide and Conquer96651486871nan
5Longest Palindromic SubstringGiven a string `s`, return the longest palindromic substring in `s`. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Example 3: Input: s = "a" Output: "a" Example 4: Input: s = "ac" Output: "a" Constraints: `1 <= s.leng…Medium/articles/longest-palindromic-substring30.684.7https://leetcode.com/problems/longest-palindromic-substring9991.3M4.1MAmazon,Microsoft,Wayfair,Facebook,Adobe,eBay,Google,Oracle,Goldman Sachs,Yandex,QualcommString,Dynamic Programming10271670941[Shortest Palindrome, /problems/shortest-palindrome/, Hard], [Palindrome Permutation, /problems/palindrome-permutation/, Easy], [Palindrome Pairs, /problems/palindrome-pairs/, Hard], [Longest Palindromic Subsequence, /problems/longest-palindromic-subsequence/, Medium], [Palindromic Substrings, /prob…
6ZigZag ConversionThe string `"PAYPALISHIRING"` is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: `"PAHNAPLSIIGYIR"` Write the code that will take a string a…Medium/articles/zigzag-conversion38.244.3https://leetcode.com/problems/zigzag-conversion999558.8K1.5MMicrosoftString2270568629nan
7Reverse IntegerGiven a signed 32-bit integer `x`, return `x` with its digits reversed. If reversing `x` causes the value to go outside the signed 32-bit integer range `[-231, 231 - 1]`, then return `0`. Assume the environment does not allow you to store 64-bit integers (signed or unsigned). Example 1: Input: x …Easy/articles/reverse-integer25.980.9https://leetcode.com/problems/reverse-integer9991.5M5.7MAmazon,Google,Apple,Facebook,Bloomberg,American Express,Microsoft,Adobe,UberMath45486971391[String to Integer (atoi), /problems/string-to-integer-atoi/, Medium], [Reverse Bits, /problems/reverse-bits/, Easy]
8String to Integer (atoi)Implement the `myAtoi(string s)` function, which converts a string to a 32-bit signed integer (similar to C/C++'s `atoi` function). The algorithm for `myAtoi(string s)` is as follows: Read in and ignore any leading whitespace. Check if the next character (if not already at the end of the string) i…Medium/articles/string-to-integer15.756https://leetcode.com/problems/string-to-integer-atoi999716.1K4.6MFacebook,Amazon,Microsoft,Google,Goldman Sachs,Apple,Adobe,Bloomberg,IntelMath,String189479281[Reverse Integer, /problems/reverse-integer/, Easy], [Valid Number, /problems/valid-number/, Hard]
9Palindrome NumberGiven an integer `x`, return `true` if `x` is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, `121` is palindrome while `123` is not. Example 1: Input: x = 121 Output: true Example 2: Input: x = -121 Output: false Explanation: From left to …Easy/articles/palindrome-number5058.2https://leetcode.com/problems/palindrome-number9991.2M2.4MMicrosoft,Adobe,Bloomberg,Facebook,Google,YahooMath31991724651[Palindrome Linked List, /problems/palindrome-linked-list/, Easy]
10Regular Expression MatchingGiven an input string (`s`) and a pattern (`p`), implement regular expression matching with support for `'.'` and `'*'` where:` ` `'.'` Matches any single character.​​​​ `'*'` Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). Example 1…Hard/articles/regular-expression-matching27.475https://leetcode.com/problems/regular-expression-matching999526.6K1.9MFacebook,Amazon,Microsoft,Google,Adobe,Coursera,AppleString,Dynamic Programming,Backtracking5583841871[Wildcard Matching, /problems/wildcard-matching/, Hard]

CREATE TABLE leetcode_dataset_lc (
  "id" BIGINT,
  "title" VARCHAR,
  "description" VARCHAR,
  "is_premium" BIGINT,
  "difficulty" VARCHAR,
  "solution_link" VARCHAR,
  "acceptance_rate" DOUBLE,
  "frequency" DOUBLE,
  "url" VARCHAR,
  "discuss_count" BIGINT,
  "accepted" VARCHAR,
  "submissions" VARCHAR,
  "companies" VARCHAR,
  "related_topics" VARCHAR,
  "likes" BIGINT,
  "dislikes" BIGINT,
  "rating" BIGINT,
  "asked_by_faang" BIGINT,
  "similar_questions" VARCHAR
);

Share link

Anyone who has the link will be able to view this.