Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Procter & Gamble

Procter & Gamble LeetCode Interview Questions

Practice 50 real coding problems frequently asked in Procter & Gamble technical interviews. Master these questions to ace your next Procter & Gamble software engineering interview.

14 Easy
31 Medium
5 Hard

Top Topics at Procter & Gamble

ArrayHash TableStringTwo PointersSorting

Ace your Procter & Gamble interview with AI

Get real-time AI assistance during your actual interview. Invisible to screensharing.

Start Free Trial

Procter & Gamble Interview Problems

ProblemDifficultyDiffFrequencyTopicsAction
Move Pieces to Obtain a String
100%
MediumM
100%
Two PointersString
Solve→
Frequency of the Most Frequent Element
83%
MediumM
83%
ArrayBinary Search+4
Solve→
Decode String
80%
MediumM
80%
StringStack+1
Solve→
Can Place Flowers
76%
EasyE
76%
ArrayGreedy
Solve→
Group Shifted Strings
75%
MediumM
75%
ArrayHash Table+1
Solve→
Walls and Gates
74%
MediumM
74%
ArrayBreadth-First Search+1
Solve→
Minimum Difference in Sums After Removal of Elements
72%
HardH
72%
ArrayDynamic Programming+1
Solve→
Remove Letter To Equalize Frequency
72%
EasyE
72%
Hash TableString+1
Solve→
Buildings With an Ocean View
71%
MediumM
71%
ArrayStack+1
Solve→
Friends Of Appropriate Ages
67%
MediumM
67%
ArrayTwo Pointers+2
Solve→
Shortest Path in Binary Matrix
66%
MediumM
66%
ArrayBreadth-First Search+1
Solve→
Nested List Weight Sum
66%
MediumM
66%
Depth-First SearchBreadth-First Search
Solve→
Diagonal Traverse
64%
MediumM
64%
ArrayMatrix+1
Solve→
Integer to Roman
64%
MediumM
64%
Hash TableMath+1
Solve→
First Unique Character in a String
63%
EasyE
63%
Hash TableString+2
Solve→
Maximum Number of Events That Can Be Attended
63%
MediumM
63%
ArrayGreedy+2
Solve→
Insert into a Sorted Circular Linked List
63%
MediumM
63%
Linked List
Solve→
High Five
60%
EasyE
60%
ArrayHash Table+2
Solve→
Find Longest Self-Contained Substring
60%
HardH
60%
Hash TableString+2
Solve→
Add Two Integers
59%
EasyE
59%
Math
Solve→
Closest Binary Search Tree Value
59%
EasyE
59%
Binary SearchTree+3
Solve→
Flatten Binary Tree to Linked List
57%
MediumM
57%
Linked ListStack+3
Solve→
Squares of a Sorted Array
56%
EasyE
56%
ArrayTwo Pointers+1
Solve→
Find the Index of the First Occurrence in a String
56%
EasyE
56%
Two PointersString+1
Solve→
Min Stack
56%
MediumM
56%
StackDesign
Solve→

Pass your interview with AI assistance

Get real-time solutions during your actual coding interview. Invisible to screensharing.

Start Free Trial
3Sum
54%
MediumM
54%
ArrayTwo Pointers+1
Solve→
Digit Operations to Make Two Integers Equal
50%
MediumM
50%
MathGraph+3
Solve→
Check if One String Swap Can Make Strings Equal
50%
EasyE
50%
Hash TableString+1
Solve→
Valid Palindrome III
48%
HardH
48%
StringDynamic Programming
Solve→
Longest Substring Without Repeating Characters
48%
MediumM
48%
Hash TableString+1
Solve→
Shortest Word Distance II
47%
MediumM
47%
ArrayHash Table+3
Solve→
Random Pick with Weight
45%
MediumM
45%
ArrayMath+3
Solve→
Two City Scheduling
44%
MediumM
44%
ArrayGreedy+1
Solve→
Vertical Order Traversal of a Binary Tree
44%
HardH
44%
Hash TableTree+4
Solve→
Design an Ordered Stream
42%
EasyE
42%
ArrayHash Table+2
Solve→
Maximum Sum Circular Subarray
42%
MediumM
42%
ArrayDivide and Conquer+3
Solve→
LRU Cache
41%
MediumM
41%
Hash TableLinked List+2
Solve→
Adding Spaces to a String
41%
MediumM
41%
ArrayTwo Pointers+2
Solve→
Reverse Nodes in k-Group
38%
HardH
38%
Linked ListRecursion
Solve→
Permutation in String
38%
MediumM
38%
Hash TableTwo Pointers+2
Solve→
Design Snake Game
36%
MediumM
36%
ArrayHash Table+3
Solve→
Search Insert Position
32%
EasyE
32%
ArrayBinary Search
Solve→
Max Consecutive Ones III
30%
MediumM
30%
ArrayBinary Search+2
Solve→
Zero Array Transformation III
29%
MediumM
29%
ArrayGreedy+3
Solve→
Reverse Linked List
28%
EasyE
28%
Linked ListRecursion
Solve→
Toeplitz Matrix
27%
EasyE
27%
ArrayMatrix
Solve→
Lowest Common Ancestor of a Binary Tree III
27%
MediumM
27%
Hash TableTwo Pointers+2
Solve→
Remove Duplicates from Sorted Array II
24%
MediumM
24%
ArrayTwo Pointers
Solve→
Design HashMap
22%
EasyE
22%
ArrayHash Table+3
Solve→
Next Permutation
22%
MediumM
22%
ArrayTwo Pointers
Solve→

Similar Companies

Explore interview questions from other companies with similar interview patterns.

American Express
50 problems
Amobee
50 problems
Amperity
50 problems
Angi
50 problems
Appdynamics
50 problems
Avalara
50 problems

Frequently Asked Questions

What LeetCode problems does Procter & Gamble ask in interviews?

Procter & Gamble commonly asks 50 coding problems in technical interviews, including Move Pieces to Obtain a String, Frequency of the Most Frequent Element, Decode String. The difficulty breakdown is 14 Easy, 31 Medium, and 5 Hard problems.

How should I prepare for a Procter & Gamble coding interview?

Focus on the most frequently asked problems first, especially those with high frequency scores. Procter & Gamble interviews typically emphasize Array and Hash Table. Practice explaining your thought process while coding.

What is the difficulty level of Procter & Gamble coding interviews?

Based on our data, Procter & Gamble interviews include 14 Easy (28%), 31 Medium (62%), and 5 Hard (10%) problems.

Ready to ace your Procter & Gamble interview?

Join thousands of engineers who landed offers at top tech companies.

Get Started Free

No credit card required

All CompaniesEasy ProblemsMedium ProblemsHard ProblemsBrowse by Topic
Interview Solver
  • Home
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.