Piyush Patel
Piyush Patel

  • Tutorials
  • Interview Prep
    • Data Structures

    • Algorithms

    • Coding Problems

    • High Level System Design

    • SQL Problems

    • Low Level System Design

  • Blogs

/

  • Font Size
  • Palette
  • Mode
Browse docs
  • Coding Problems with Solutions
    • 0034 Find First and Last Position
    • 0595 Big Countries
    • 1757 Recyclable and Low Fat Products
    • 1870 Minimum Speed to Arrive on Time
    • 0001 Two Sum
    • 0392 Is Subsequence
    • 0344 Reverse String
    • 0977 Squares of Sorted Array
    • 0125 Valid Palindrome
    • 0557 Reverse Words in String III
    • 0917 Reverse Only Letters
    • 0283 Move Zeroes
    • 2000 Reverse Prefix of Word
    • 0713 Subarray Product Less Than K
    • 0643 Maximum Average Subarray I
    • 1004 Maximum Consecutive Ones Iii
    • 0209 Minimum Size Subarray Sum
    • 1456 Maximum Number of Vowels in Substring
    • 1208 Get Equal Substrings Within Budget
    • 2270 Number of Ways to Split Array
    • 1480 Running Sum of 1d Array
    • 1413 Minimum Value to Get Positive Step by Step Sum
    • 2090 K Radius Subarray Averages
    • 1732 Find the Highest Altitude
    • 724 Find Pivot Index
    • 303 Range Sum Query Immutable
    • 0485 Max Consecutive Ones
    • 1295 Find Numbers With Even Number of Digits
    • 1089 Duplicate Zeros
    • 0088 Merge Sorted Array
    • 0027 Remove Element
    • 0026 Remove Duplicates From Sorted Array
    • 1346 Check if N and Its Double Exist
    • 0941 Valid Mountain Array
    • 1299 Replace Elements With Greatest Element on Right Side
    • 0905 Sort Array by Parity
    • 0561 Array Partition
    • 0498 Diagonal Traverse
    • 0747 Largest Number Atleast Twice of Others
    • 0066 Plus One
    • 0167 Two Sum Ii
    • 0118 Pascals Triangle
    • 0014 Longest Common Prefix
    • 0067 Add Binary
    • 0119 Pascals Triangle Ii
    • 0189 Rotate Array
    • 0054 Spiral Matrix
    • 2351 First Letter to Appear Twice
    • 1832 Check if the Sentence Is Pangram
    • 0268 Missing Number
    • 1426 Counting Elements
    • 0340 Longest Substring With at Most K Distinct Characters
    • 0159 Longest Substring With at Most Two Distinct Characters
    • 2248 Intersection of Multiple Arrays
    • 1941 Check if All Characters Have Equal Number of Occurrences
    • 0560 Subarray Sum Equals K
    • 1248 Count Number of Nice Subarrays
    • 0013 Roman to Integer
    • 2225 Find Players With Zero or One Losses
    • 1133 Largest Unique Number
    • 1189 Maximum Number of Balloons
    • 0049 Group Anagrams
    • 2260 Minimum Consecutive Cards to Pick Up
    • 2342 Max Sum of a Pair With Equal Sum of Digits
    • 0383 Ransom Note
    • 2352 Equal Row and Column Pairs
    • 0771 Jewels and Stones
    • 0003 Longest Substring Without Repeating Characters
    • 0217 Contains Duplicate
    • 1436 Destination City
    • 1496 Path Crossing
    • 1748 Sum of Unique Elements
    • 1394 Find Lucky Integer in an Array
    • 1207 Unique Number of Occurrences
    • 0451 Sort Characters by Frequency
    • 1512 Number of Good Pairs
    • 0930 Binary Subarrays With Sum
    • 1695 Maximum Erasure Value
    • 0567 Permutation in String
    • 0205 Isomorphic Strings
    • 0290 Word Pattern
    • 0791 Custom Sort String
    • 1657 Determine if Two Strings Are Close
    • 0876 Middle of the Linked List
    • 0141 Linked List Cycle
    • 0083 Remove Duplicates From Sorted List
    • 0024 Swap Nodes in Pairs
    • 2130 Maximum Twin Sum of a Linked List
    • 0206 Reverse Linked List
    • 0092 Reverse Linked List Ii
    • 2095 Delete the Middle Node of Linked List
    • 0019 Remove Nth Node From End of List
    • 0082 Remove Duplicates From Sorted List Ii
    • 1721 Swapping Nodes in a Linked List
    • 0234 Palindrome Linked List
    • 2074 Reverse Nodes in Even Length Groups
    • 0203 Remove Linked List Elements
    • 1290 Convert Binary Number in a Linked List to Integer
    • 0328 Odd Even Linked List
    • 0707 Design Linked List
    • 0020 Valid Parentheses
    • 1047 Remove All Adjacent Duplicates in String
    • 0844 Backspace String Compare
    • 0071 Simplify Path
    • 1544 Make the Strings Great
    • 0933 Number of Recent Calls
    • 0346 Moving Average From Data Stream
    • 0739 Daily Temperatures
    • 0704 Binary Search
    • 0074 Search a 2d Matrix
    • 2300 Successful Pairs of Spells and Potions
    • 0035 Search Insert Position
    • 2389 Longest Subsequence With Limited Sum
    • 0875 Koko Eating Bananas
  1. Home
  2. Data Structures and Algorithms
  3. Coding Problems With Solutions

1 - 0034 Find First and Last Position

2 - 0595 Big Countries

3 - 1757 Recyclable and Low Fat Products

4 - 1870 Minimum Speed to Arrive on Time

5 - 0001 Two Sum

6 - 0392 Is Subsequence

7 - 0344 Reverse String

8 - 0977 Squares of Sorted Array

9 - 0125 Valid Palindrome

10 - 0557 Reverse Words in String III

11 - 0917 Reverse Only Letters

12 - 0283 Move Zeroes

13 - 2000 Reverse Prefix of Word

14 - 0713 Subarray Product Less Than K

15 - 0643 Maximum Average Subarray I

16 - 1004 Maximum Consecutive Ones Iii

17 - 0209 Minimum Size Subarray Sum

18 - 1456 Maximum Number of Vowels in Substring

19 - 1208 Get Equal Substrings Within Budget

20 - 2270 Number of Ways to Split Array

21 - 1480 Running Sum of 1d Array

22 - 1413 Minimum Value to Get Positive Step by Step Sum

23 - 2090 K Radius Subarray Averages

24 - 1732 Find the Highest Altitude

25 - 724 Find Pivot Index

26 - 303 Range Sum Query Immutable

27 - 0485 Max Consecutive Ones

28 - 1295 Find Numbers With Even Number of Digits

29 - 1089 Duplicate Zeros

30 - 0088 Merge Sorted Array

31 - 0027 Remove Element

32 - 0026 Remove Duplicates From Sorted Array

33 - 1346 Check if N and Its Double Exist

34 - 0941 Valid Mountain Array

35 - 1299 Replace Elements With Greatest Element on Right Side

36 - 0905 Sort Array by Parity

37 - 0561 Array Partition

38 - 0498 Diagonal Traverse

39 - 0747 Largest Number Atleast Twice of Others

40 - 0066 Plus One

41 - 0167 Two Sum Ii

42 - 0118 Pascals Triangle

43 - 0014 Longest Common Prefix

44 - 0067 Add Binary

45 - 0119 Pascals Triangle Ii

46 - 0189 Rotate Array

47 - 0054 Spiral Matrix

48 - 2351 First Letter to Appear Twice

49 - 1832 Check if the Sentence Is Pangram

50 - 0268 Missing Number

51 - 1426 Counting Elements

52 - 0340 Longest Substring With at Most K Distinct Characters

53 - 0159 Longest Substring With at Most Two Distinct Characters

54 - 2248 Intersection of Multiple Arrays

55 - 1941 Check if All Characters Have Equal Number of Occurrences

56 - 0560 Subarray Sum Equals K

57 - 1248 Count Number of Nice Subarrays

58 - 0013 Roman to Integer

59 - 2225 Find Players With Zero or One Losses

60 - 1133 Largest Unique Number

61 - 1189 Maximum Number of Balloons

62 - 0049 Group Anagrams

63 - 2260 Minimum Consecutive Cards to Pick Up

64 - 2342 Max Sum of a Pair With Equal Sum of Digits

65 - 0383 Ransom Note

66 - 2352 Equal Row and Column Pairs

67 - 0771 Jewels and Stones

68 - 0003 Longest Substring Without Repeating Characters

69 - 0217 Contains Duplicate

70 - 1436 Destination City

71 - 1496 Path Crossing

72 - 1748 Sum of Unique Elements

73 - 1394 Find Lucky Integer in an Array

74 - 1207 Unique Number of Occurrences

75 - 0451 Sort Characters by Frequency

76 - 1512 Number of Good Pairs

77 - 0930 Binary Subarrays With Sum

78 - 1695 Maximum Erasure Value

79 - 0567 Permutation in String

80 - 0205 Isomorphic Strings

81 - 0290 Word Pattern

82 - 0791 Custom Sort String

83 - 1657 Determine if Two Strings Are Close

84 - 0876 Middle of the Linked List

85 - 0141 Linked List Cycle

86 - 0083 Remove Duplicates From Sorted List

87 - 0024 Swap Nodes in Pairs

88 - 2130 Maximum Twin Sum of a Linked List

89 - 0206 Reverse Linked List

90 - 0092 Reverse Linked List Ii

91 - 2095 Delete the Middle Node of Linked List

92 - 0019 Remove Nth Node From End of List

93 - 0082 Remove Duplicates From Sorted List Ii

94 - 1721 Swapping Nodes in a Linked List

95 - 0234 Palindrome Linked List

96 - 2074 Reverse Nodes in Even Length Groups

97 - 0203 Remove Linked List Elements

98 - 1290 Convert Binary Number in a Linked List to Integer

99 - 0328 Odd Even Linked List

100 - 0707 Design Linked List

101 - 0020 Valid Parentheses

102 - 1047 Remove All Adjacent Duplicates in String

103 - 0844 Backspace String Compare

104 - 0071 Simplify Path

105 - 1544 Make the Strings Great

106 - 0933 Number of Recent Calls

107 - 0346 Moving Average From Data Stream

108 - 0739 Daily Temperatures

109 - 0704 Binary Search

110 - 0074 Search a 2d Matrix

111 - 2300 Successful Pairs of Spells and Potions

112 - 0035 Search Insert Position

113 - 2389 Longest Subsequence With Limited Sum

114 - 0875 Koko Eating Bananas

Actions
X Facebook

Go back Reload Copy URL

Piyush Patel

One stop shop for all technology content

Copyright © 2023-2025 Piyush Patel. All Rights Reserved.
Build with ❤️ for everyone.