Tag LLVM
In this post, I will show how I write an...
Tag Hash Table
LeetCode 914. In a deck of cards, each card has...
LeetCode 916. You are given two string arrays words1 and...
LeetCode 966. Given a wordlist, we want to implement a...
LeetCode 987. Given the root of a binary tree, calculate...
LeetCode 953. In an alien language, surprisingly, they also use...
LeetCode 804. International Morse Code defines a standard encoding where...
LeetCode 929. Every valid email consists of a local name...
LeetCode 884. A sentence is a string of single-space separated...
LeetCode 982. Given an integer array nums, return the number...
LeetCode 981. Design a time-based key-value data structure that can...
LeetCode 811. A website domain “discuss.leetcode.com” consists of various subdomains....
LeetCode 992. Given an integer array nums and an integer...
LeetCode 865. Given the root of a binary tree, the...
LeetCode 820. A valid encoding of an array of words...
LeetCode 957. There are 8 prison cells in a row...
LeetCode 970. Given three integers x, y, and bound, return...
LeetCode 911. You are given two integer arrays persons and...
LeetCode 819. Given a string paragraph and a string array...
LeetCode 939. You are given an array of points in...
LeetCode 895. Design a stack-like data structure to push elements...
LeetCode 817. You are given the head of a linked...
LeetCode 873. Given a strictly increasing array arr of positive...
LeetCode 846. Alice has some number of cards and she...
LeetCode 893. You are given an array of strings of...
LeetCode 904. You are visiting a farm that has a...
LeetCode 997. In a town, there are n people labeled...
LeetCode 890. Given a list of strings words and a...
LeetCode 888. Alice and Bob have a different total number...
LeetCode 828. Let’s define a function countUniqueChars(s) that returns the...
LeetCode 889. Given two integer arrays, preorder and postorder where...
LeetCode 822. You are given n cards, with a positive...
LeetCode 815. You are given an array routes representing bus...
LeetCode 859. Given two strings s and goal, return true...
LeetCode 823. Given an array of unique integers, arr, where...
LeetCode 930. Given a binary array nums and an integer...
LeetCode 954. Given an integer array of even length arr,...
LeetCode 923. Given an integer array arr, and an integer...
LeetCode 692. Given an array of strings words and an...
LeetCode 621. Given a characters array tasks, representing the tasks...
LeetCode 645. You have a set of integers s, which...
LeetCode 767. Given a string s, rearrange the characters of...
LeetCode 710. You are given an integer n and an...
LeetCode 781. There is a forest with an unknown number...
LeetCode 763. You are given a string s. We want...
LeetCode 736. You are given a string expression representing a...
LeetCode 752. You have a lock in front of you...
LeetCode 653. Given the root of a Binary Search Tree...
LeetCode 659. You are given an integer array nums that...
LeetCode 632. You have k lists of sorted integers in...
LeetCode 748. Given a string licensePlate and an array of...
LeetCode 745. Design a special dictionary with some words that...
LeetCode 792. Given a string s and an array of...
LeetCode 726. Given a string formula representing a chemical formula,return...
LeetCode 609. Given a list paths of directory info, including...
LeetCode 677. Design a map that allows you to do...
LeetCode 676. Design a data structure that is initialized with...
LeetCode 652. Given the rootof a binary tree, return all...
LeetCode 690. You have a data structure of employee information,...
LeetCode 705. Design a HashSet without using any built-in hash...
LeetCode 706. Design a HashMap without using any built-in hash...
LeetCode 740. You are given an integer array nums. You...
LeetCode 697. Given a non-empty array of non-negative integers nums,...
LeetCode 791. You are given two strings order and s....
LeetCode 770. Given an expression such as expression = “e...
LeetCode 451. Given a string s, sort it in decreasing...
LeetCode 480. The median is the middle value in an...
LeetCode 423. Given a string s containing an out-of-order English...
LeetCode 519. There is an m x n binary grid...
LeetCode 567. Given two strings s1 and s2, return true...
LeetCode 447. You are given n points in the plane...
LeetCode 496. The next greater element of some element x...
LeetCode 508. Given the root of a binary tree, return...
LeetCode 433. A gene string can be represented by an...
LeetCode 599. Suppose Andy and Doris want to choose a...
LeetCode 522. Given an array of strings strs, return the...
LeetCode 424. You are given a string s and an...
LeetCode 409. Given a string s which consists of lowercase...
LeetCode 594. We define a harmonious array as an array...
LeetCode 460. Design and implement a data structure for a...
LeetCode 500. Given an array of strings words, return the...
LeetCode 532. Given an array of integers nums and an...
LeetCode 491. Given an integer array nums, return all the...
LeetCode 436. You are given an array of intervals, where...
LeetCode 448. Given an array nums of n integers where...
LeetCode 442. Given an integer array nums of length n...
LeetCode 438. Given two strings s and p, return an...
LeetCode 535. TinyURL is a URL shortening service where you...
LeetCode 575. Alice has n candies, where the i^th candy...
LeetCode 525. Given a binary array nums, return the maximum...
LeetCode 457. You are playing a game involving a circular...
LeetCode 554. There is a rectangular brick wall in front...
LeetCode 432. Design a data structure to store the strings...
LeetCode 242. Given two strings s and t, return true...
LeetCode 264. An ugly number is a positive integer whose...
LeetCode 347. Given an integer array nums and an integer...
LeetCode 290. Given a pattern and a string s, find...
LeetCode 383. Given two stings ransomNote and magazine, return true...
LeetCode 398. Given an integer array nums with possible duplicates,...
LeetCode 336. Given a list of unique words, return all...
LeetCode 268. Given an array nums containing n distinct numbers...
LeetCode 229. Given an integer array of size n, find...
LeetCode 395. Given a string s and an integer k,...
LeetCode 205. Given two strings s and t, determine if...
LeetCode 350. Given two integer arrays nums1 and nums2, return...
LeetCode 381. RandomizedCollection is a data structure that contains a...
LeetCode 202. Write an algorithm to determine if a number...
LeetCode 387. Given a string s, find the first non-repeating...
LeetCode 389. You are given two strings s and t....
LeetCode 355. Design a simplified version of Twitter where users...
LeetCode 217. Given an integer array nums, return true if...
LeetCode 219. Given an integer array nums and an integer...
LeetCode 299. You are playing the Bulls and Cows game...
LeetCode 187. The DNA sequence is composed of a series...
LeetCode 169. Given an array nums of size n, return...
LeetCode 160. Given the heads of two singly linked-lists headA...
LeetCode 166. Given two integers representing the numerator and denominator...
LeetCode 139. Given a string s and a dictionary of...
LeetCode 140. Given a string s and a dictionary of...
LeetCode 149. Given an array of points where points[i] =...
LeetCode 146. Design a data structure that follows the constraints...
LeetCode 141. Given head, the head of a linked list,...
LeetCode 142. Given the head of a linked list, return...
LeetCode 138. A linked list of length n is given...
LeetCode 133. Given a reference of a node in a...
LeetCode 127. Given two words, beginWord and endWord, and a...
LeetCode 126. Given two words, beginWord and endWord, and a...
LeetCode 128. Given an unsorted array of integers nums, return...
LeetCode 105. Given two integer arrays preorder and inorder where...
LeetCode 73. Given an m x n integer matrix matrix,...
LeetCode 36. Determine if a 9 x 9 Sudoku board...
LeetCode 30. You are given a string s and an...
LeetCode 12. Given an integer, convert it to a roman...
LeetCode 49. Given an array of strings strs, group the...
LeetCode 41. Given an unsorted integer array nums, return the...
LeetCode 13. Given a roman numeral, convert it to an...
LeetCode 17. Given a string containing digits from 2-9 inclusive,...
LeetCode 3. Given a string s, find the length of...
LeetCode 1748. You are given an integer array nums. The...
LeetCode 380. Implement a RandomizedSet class.
LeetCode 961. In a array A of size 2N, there...
LeetCode 349. Given two arrays, write a function to compute...
LeetCode 1213. Given three integer arrays arr1, arr2 and arr3...
LeetCode 771. You’re given strings jewels representing the types of...
LeetCode 1512. Given an array of integers nums. Return the...
LeetCode 1539. Given an array arr of positive integers sorted...
LeetCode 1224. Given an array nums of positive integers, return...
LeetCode 974. Given an array of integers nums and an...
LeetCode 454. Given four lists A, B, C, D of...
LeetCode 523. Given an array of non-negative integers nums and...
LeetCode 560. Given an array of integers nums and an...
LeetCode 1. Given an array of integers nums and an...
Tag Leetcode
LeetCode 101. Given the root of a binary tree, check...
LeetCode 104. Given the root of a binary tree, return...
LeetCode 105. Given two integer arrays preorder and inorder where...
LeetCode 106. Given two integer arrays inorder and postorder where...
LeetCode 103. Given the root of a binary tree, return...
LeetCode 102. Given the root of a binary tree, return...
LeetCode 107. Given the root of a binary tree, return...
LeetCode 98. Given the root of a binary tree, determine...
LeetCode 100. Given the roots of two binary trees p...
LeetCode 99. You are given the root of a binary...
LeetCode 97. Given strings s1, s2, and s3, find whether...
LeetCode 79. Given an m x n grid of characters...
LeetCode 96. Given an integer n, return the number of...
LeetCode 95. Given an integer n, return all the structurally...
LeetCode 78. Given an integer array nums of unique elements,...
LeetCode 90. Given an integer array nums that may contain...
LeetCode 81. There is an integer array nums sorted in...
LeetCode 87. Given two strings s1 and s2 of the...
LeetCode 93. Given a string s containing only digits, return...
LeetCode 83. Given the head of a sorted linked list,...
LeetCode 82. Given the head of a sorted linked list,...
LeetCode 80. Given an integer array nums sorted in non-decreasing...
LeetCode 86. Given the head of a linked list and...
LeetCode 88. You are given two integer arrays nums1 and...
LeetCode 85. Given a rows x cols binary matrix filled...
LeetCode 84. Given an array of integers heights representing the...
LeetCode 89. Given an integer n, return any valid n-bit...
LeetCode 91. Given a string s containing only digits, return...
LeetCode 94. Given an m x n grid of characters...
LeetCode 75. Given an array nums with n objects colored...
LeetCode 71. Given a string path, which is an absolute...
LeetCode 73. Given an m x n integer matrix matrix,...
LeetCode 74. Write an efficient algorithm that searches for a...
LeetCode 76. Given two strings s and t of lengths...
LeetCode 72. Given two strings word1 and word2, return the...
LeetCode 77. Given two integers n and k, return all...
LeetCode 65. Given a string s, return true if s...
LeetCode 62. A robot is located at the top-left corner...
LeetCode 63. A robot is located at the top-left corner...
LeetCode 68. Given an array of strings words and a...
LeetCode 61. Given the head of a linked list, rotate...
LeetCode 66. You are given a large integer represented as...
LeetCode 64. Given a m x n grid filled with...
LeetCode 70. You are climbing a staircase. It takes n...
LeetCode 67. A robot is located at the top-left corner...
LeetCode 54. Given an m x n matrix, return all...
LeetCode 59. Given a positive integer n, generate an n...
LeetCode 60. Given n and k, return the kth permutation...
LeetCode 51. Given an integer n, return all distinct solutions...
LeetCode 52. Given an integer n, return the number of...
LeetCode 53. Given an integer array nums, find the contiguous...
LeetCode 58. Given a string s consisting of some words...
LeetCode 55. Given an m x n matrix, return all...
LeetCode 57. Insert newInterval into intervals such that intervals is...
LeetCode 6. Write the code that will take a string...
LeetCode 44. Write the code that will take a string...
LeetCode 36. Determine if a 9 x 9 Sudoku board...
LeetCode 42. Given n non-negative integers representing an elevation map...
LeetCode 37. Write a program to solve a Sudoku puzzle...
LeetCode 30. You are given a string s and an...
LeetCode 33. Given the array nums after the possible rotation...
LeetCode 48. Determine if a 9 x 9 Sudoku board...
LeetCode 25. Given a linked list, reverse the nodes of...
LeetCode 27. Given an integer array nums and an integer...
LeetCode 10. Given an input string s and a pattern...
LeetCode 50. Determine if a 9 x 9 Sudoku board...
LeetCode 46. Given an array nums of distinct integers, return...
LeetCode 47. Given a collection of numbers, nums, that might...
LeetCode 9. Given an integer x, return true if x...
LeetCode 31. Implement next permutation, which rearranges numbers into the...
LeetCode 43. Given two non-negative integers num1 and num2 represented...
LeetCode 45. Given an array of non-negative integers nums, you...
LeetCode 12. Given an integer, convert it to a roman...
LeetCode 28. Implement strStr().
LeetCode 49. Given an array of strings strs, group the...
LeetCode 41. Given an unsorted integer array nums, return the...
LeetCode 34. Given the array nums after the possible rotation...
LeetCode 29. Write the code that will take a string...
LeetCode 38. Write the code that will take a string...
LeetCode 39. Given an array of distinct integers candidates and...
LeetCode 40. Given a collection of candidate numbers (candidates) and...
LeetCode 16. Given an integer array nums of length n...
LeetCode 20. Given a string s containing just the characters...
LeetCode 24. Given a linked list, swap every two adjacent...
LeetCode 13. Given a roman numeral, convert it to an...
LeetCode 7. Given a signed 32-bit integer x, return x...
LeetCode 19. Given the head of a linked list, remove...
LeetCode 26. Given an integer array nums sorted in non-decreasing...
LeetCode 5. Given a string s, return the longest palindromic...
LeetCode 14. Write a function to find the longest common...
LeetCode 17. Given a string containing digits from 2-9 inclusive,...
LeetCode 22. Given n pairs of parentheses, write a function...
LeetCode 1902. You are given a 0-indexed integer array order...
LeetCode 11. Given n non-negative integers a_1, a_2, …, a_n...
LeetCode 1999. Given three integers, k, digit1, and digit2, you...
LeetCode 2000. Given a 0-indexed string word and a character...
LeetCode 1939. Write an SQL query to find the IDs...
LeetCode 1949. Write an SQL query to find all the...
LeetCode 1919. Write an SQL query to report the similar...
LeetCode 1917. Write an SQL query to recommend friends to...
LeetCode 1972. Write an SQL query to report the IDs...
LeetCode 1988. Write an SQL query to report the minimum...
LeetCode 1965. Write an SQL query to report the IDs...
LeetCode 1978. Write an SQL query to report the IDs...
LeetCode 1990. Write an SQL query to report the number...
LeetCode 1907. Write an SQL query to report the number...
LeetCode 1934. Write an SQL query to find the confirmation...
LeetCode 1951. Write an SQL query to find all the...
LeetCode 1890. Write an SQL query to report the latest...
LeetCode 1843. Write an SQL query to report the IDs...
LeetCode 1892. Write an SQL query to find all the...
LeetCode 1867. Write an SQL query to find the order_id...
LeetCode 1831. Write an SQL query to report the IDs...
LeetCode 1841. Write an SQL query to report the statistics...
LeetCode 1875. Write an SQL query to report the IDs...
LeetCode 1821. Write an SQL query to report the customers...
LeetCode 1853. Write an SQL query to convert each date...
LeetCode 1873. Write an SQL query to calculate the bonus...
LeetCode 1795. Write an SQL query to rearrange the Products...
LeetCode 1811. Write an SQL query to report the name...
LeetCode 1812. You are given coordinates, a string that represents...
LeetCode 1809. Write an SQL query to report all the...
LeetCode 8. Implement the myAtoi(string s) function, which converts a...
LeetCode 1789. Write an SQL query to report all the...
LeetCode 1783. Write an SQL query to report the number...
LeetCode 1777. Write an SQL query to find the price...
LeetCode 3. Given a string s, find the length of...
LeetCode 1767. Write an SQL query to report the IDs...
LeetCode 2. You are given two non-empty linked lists representing...
LeetCode 1748. You are given an integer array nums. The...
LeetCode 1757. Write an SQL query to find the ids...
LeetCode 1747. Write an SQL query to find the account_id...
LeetCode 380. Implement a RandomizedSet class.
LeetCode 961. In a array A of size 2N, there...
LeetCode 349. Given two arrays, write a function to compute...
LeetCode 1213. Given three integer arrays arr1, arr2 and arr3...
LeetCode 1741. Write an SQL query to calculate the total...
LeetCode 771. You’re given strings jewels representing the types of...
LeetCode 1512. Given an array of integers nums. Return the...
LeetCode 1539. Given an array arr of positive integers sorted...
LeetCode 1731. Write an SQL query to report the ids...
LeetCode 1729. Write an SQL query that will, for each...
LeetCode 1715. Write an SQL query to count the number...
LeetCode 1709. Write an SQL query that will, for each...
LeetCode 1384. Write an SQL query to report the Total...
LeetCode 1479. Write an SQL query to report how many...
LeetCode 1651. Write an SQL query to compute the average_ride_distance...
LeetCode 1369. Write an SQL query to show the second...
LeetCode 1412. Write an SQL query to report the students...
LeetCode 1194. Write an SQL query to find the winner...
LeetCode 618. A U.S graduate school has students from Asia,...
LeetCode 1225. Write an SQL query to generate a report...
LeetCode 569. Write a SQL query to find the median...
LeetCode 1159. Write an SQL query to find for each...
LeetCode 1635. Write an SQL query to report the following...
LeetCode 1097. Write an SQL query that reports for each...
LeetCode 1127. Write an SQL query to find the total...
LeetCode 262. Write a SQL query to find the cancellation...
LeetCode 1336. Write an SQL query to find how many...
LeetCode 601. Write an SQL query to display the records...
LeetCode 1645. Write an SQL query to report the percentage...
LeetCode 571. Write a query to find the median of...
LeetCode 579. Write a SQL to get the cumulative sum...
LeetCode 185. Write a SQL query to find employees who...
LeetCode 615. Given two tables as below, write a query...
LeetCode 1098. Write an SQL query that reports the books...
LeetCode 614. Please write a sql query to get the...
LeetCode 1132. Write an SQL query to find the average...
LeetCode 1699. Write an SQL query to report the number...
LeetCode 177. Write a SQL query to get the nth...
LeetCode 1107. Write an SQL query that reports for every...
LeetCode 1205. Write an SQL query to find for each...
LeetCode 578. Write a sql query to identify the question...
LeetCode 184. Write a SQL query to find employees who...
LeetCode 1149. Write an SQL query to find all the...
LeetCode 1454. Write an SQL query to find the id...
LeetCode 574. Write a sql to find the name of...
LeetCode 1212. Write an SQL query that selects the team_id,...
LeetCode 178. Write a SQL query to rank scores. If...
LeetCode 1070. Write an SQL query that selects the product...
LeetCode 1341. Write the following SQL query to find the...
LeetCode 585. Write a query to print the sum of...
LeetCode 1174. Write an SQL query to find the percentage...
LeetCode 602. In social network like Facebook or Twitter, people...
LeetCode 1501. Write an SQL query to find the countries...
LeetCode 580. A university uses 2 data tables, student and...
LeetCode 1555. Our bank records all transactions in the table...
LeetCode 608. Given a table tree, id is identifier of...
LeetCode 1549. Write an SQL query to find the most...
LeetCode 612. Write a query to find the shortest distance...
LeetCode 1459. Write an SQL query to report of all...
LeetCode 1164. Write an SQL query to find the prices...
LeetCode 1264. Write an SQL query to recommend pages to...
LeetCode 1193. Write an SQL query to find for each...
LeetCode 1158. Write an SQL query to find for each...
LeetCode 570. Given the Employee table, write a SQL query...
LeetCode 1613. Write an SQL query to find the missing...
LeetCode 626. Mary is a teacher in a middle school...
LeetCode 1045. Write an SQL query for a report that...
LeetCode 1126. Write an SQL query to find all active...
LeetCode 1532. Write an SQL query to find the most...
LeetCode 1321. You are the restaurant owner and you want...
LeetCode 1077. Write an SQL query that reports the most...
LeetCode 1364. Write an SQL query to find the following...
LeetCode 1421. Write an SQL query to find the npv...
LeetCode 1204. Write an SQL query to find the person_name...
LeetCode 1112. Write a SQL query to find the highest...
LeetCode 1440. Write an SQL query to evaluate the boolean...
LeetCode 1468. Write an SQL query to find the salaries...
LeetCode 1355. Write an SQL query to find the names...
LeetCode 1142. Write an SQL query to find the average...
LeetCode 1596. Write an SQL query to find the most...
LeetCode 1308. Write an SQL query to find the total...
LeetCode 1495. Write an SQL query to report the distinct...
LeetCode 597. Write an SQL query to find the overall...
LeetCode 1285. Write an SQL query to find the start...
LeetCode 1398. Write an SQL query to report the customer_id...
LeetCode 596. Please list out all classes which have more...
LeetCode 1393. Write an SQL query to report the Capital...
LeetCode 619. Table my_numbers contains many numbers in column num...
LeetCode 1445. Write an SQL query to report the difference...
LeetCode 1270. Write an SQL query to find employee_id of...
LeetCode 1294. Write an SQL query to find the type...
LeetCode 1141. Write an SQL query to find the daily...
LeetCode 610. A pupil Tim gets homework to identify whether...
LeetCode 1280. Write an SQL query to find the number...
LeetCode 607. Given three tables, salesperson, company, orders.
LeetCode 1084. Write an SQL query that reports the products...
LeetCode 1083. Write an SQL query that reports the buyers...
LeetCode 1113. Write an SQL query that reports the number...
LeetCode 1211. Write an SQL query to find each query_name,...
LeetCode 1076. Write an SQL query that reports all the...
LeetCode 1075. Write an SQL query that reports the average...
LeetCode 1241. Write an SQL query to find number of...
LeetCode 620. X city opened a new cinema, many people...
LeetCode 1543. Write an SQL query to report product_name in...
LeetCode 603. Several friends at a cinema ticket office would...
LeetCode 1322. A company is running Ads and wants to...
LeetCode 1407. Write an SQL query to report the distance...
LeetCode 627. Given a table salary, such as the one...
LeetCode 613. Write a query to find the shortest distance...
LeetCode 1082. Write an SQL query that reports the best...
LeetCode 1179. Write an SQL query to reformat the table...
LeetCode 1069. Write an SQL query that reports the total...
LeetCode 1068. Write an SQL query that reports all product...
LeetCode 1327. Write an SQL query to get the names...
LeetCode 1173. Write an SQL query to find the percentage...
LeetCode 1517. Write an SQL query to find the users...
LeetCode 584. Given a table customer holding customers information and...
LeetCode 586. Query the customer_number from the orders table for...
LeetCode 1511. Write an SQL query to report the customer_id...
LeetCode 1435. You want to know how long a user...
LeetCode 595. Write a SQL solution to output big countries’...
LeetCode 1251. Write an SQL query to find the average...
LeetCode 1148. Write an SQL query to find all the...
LeetCode 1050. Write a SQL query for a report that...
LeetCode 1565. Write an SQL query to find the number...
LeetCode 1607. Write an SQL query to report the names...
LeetCode 197. Write an SQL query to find all dates’...
LeetCode 550. Write an SQL query that reports the fraction...
LeetCode 534. Write an SQL query that reports for each...
LeetCode 512. Write a SQL query that reports the device...
LeetCode 511. Write an SQL query that reports the first...
LeetCode 577. Select all employee’s name and bonus whose bonus...
LeetCode 196. Write a SQL query to delete all duplicate...
LeetCode 1693. Write an SQL query that will, for each...
LeetCode 1581. Write an SQL query to find the IDs...
LeetCode 1677. Write an SQL query that will, for all...
LeetCode 1633. Write an SQL query to find the percentage...
LeetCode 1667. Write an SQL query to fix the names...
LeetCode 182. Write a SQL query to find all duplicate...
LeetCode 183. Write a SQL query to find all customers...
LeetCode 180. Write an SQL query to find all numbers...
LeetCode 1661. There is a factory website that has several...
LeetCode 176. Given the Employee table, write a SQL query...
LeetCode 181. Given the Employee table, write a SQL query...
LeetCode 1587. Write an SQL query to report the name...
LeetCode 1484. Write an SQL query to find for each...
LeetCode 1623. Write an SQL query to find all the...
LeetCode 1571. Write an SQL query to report how much...
LeetCode 1350. Write an SQL query to find the id...
LeetCode 1378. Write an SQL query to show the unique...
LeetCode 1527. Write an SQL query to report the patient_id,...
LeetCode 1683. Write an SQL query to find the IDs...
LeetCode 1303. Write an SQL query to find the team...
LeetCode 175. Write a SQL query for a report that...
LeetCode 1224. Given an array nums of positive integers, return...
LeetCode 200. Given an m x n 2d grid map...
LeetCode 56. Given an array of intervals, merge all overlapping...
LeetCode 1438. Given an array of integers nums and an...
LeetCode 543. Given a binary tree, compute the diameter of...
LeetCode 206. Reverse a singly linked list.
LeetCode 92. Reverse a linked list from position m to...
LeetCode 234. Given a singly linked list, determine if it’s...
LeetCode 23. You are given an array of k linked-lists...
LeetCode 21. Merge two sorted linked lists and return a...
LeetCode 4. Given two sorted arrays nums1 and nums2 of...
LeetCode 367. Given a positive integer num, write a function...
LeetCode 69. Given a non-negative integer x, compute and return...
LeetCode 35. Given a sorted array of distinct integers and...
LeetCode 1032. Implement the StreamChecker class as follows. Constructor, initialize...
LeetCode 421. Given an integer array nums, return the maximum...
LeetCode 208. Implement a Trie with insert, search, and startsWith...
LeetCode 1023. A query word matches a given pattern if...
LeetCode 212. Given an m x n board of characters...
LeetCode 167. Given an array of integers nums sorted in...
LeetCode 974. Given an array of integers nums and an...
LeetCode 648. Given a dictionary consisting of many roots, and...
LeetCode 720. Given a list of strings words representing an...
LeetCode 454. Given four lists A, B, C, D of...
LeetCode 523. Given an array of non-negative integers nums and...
LeetCode 472. Given a list of words (without duplicates), return...
LeetCode 1099. Given an array of integers nums and an...