← 返回博客列表
Uber

Uber 2025 Software Engineer Internship OA Real Questions

2025-09-25

Uber 2025 Internship OA Latest Questions. oavoservice helps you pass the screening and get an interview.

📋 Question 1: String Matching

Implement a simple string matching algorithm supporting * and ? wildcards.

def isMatch(s, p):
    m, n = len(s), len(p)
    dp = [[False] * (n + 1) for _ in range(m + 1)]
    dp[0][0] = True
    
    # Handle * at start
    for j in range(1, n + 1):
        if p[j-1] == '*':
            dp[0][j] = dp[0][j-1]
    
    for i in range(1, m + 1):
        for j in range(1, n + 1):
            if p[j-1] == '*':
                dp[i][j] = dp[i-1][j] or dp[i][j-1]
            elif p[j-1] == '?' or s[i-1] == p[j-1]:
                dp[i][j] = dp[i-1][j-1]
    
    return dp[m][n]

📋 Question 2: Largest Rectangle Area

def largestRectangleArea(heights):
    stack = []
    max_area = 0
    heights.append(0)
    
    for i, h in enumerate(heights):
        while stack and heights[stack[-1]] > h:
            height = heights[stack.pop()]
            width = i if not stack else i - stack[-1] - 1
            max_area = max(max_area, height * width)
        stack.append(i)
    
    return max_area

💼 How oavoservice Helps

Latest Questions - 2025 Fall Recruitment OA Detailed Analysis - Step-by-step logic Code Templates - Reusable code Time Management - OA Strategy

Contact oavoservice for professional OA assistance!


Tags: #Uber #FallRecruitment2025 #OA #Internship #OAHelp #InterviewPrep #1point3acres


Need real interview questions? Contact WeChat Coding0201 immediately to get real questions.