PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/Coding & Algorithms/Upstart

Reverse even numbers in a list

Last updated: Apr 9, 2026

Quick Overview

This question evaluates competency in basic array manipulation, specifically filtering elements by parity and reversing their order while preserving no other ordering constraints.

  • medium
  • Upstart
  • Coding & Algorithms
  • Software Engineer

Reverse even numbers in a list

Company: Upstart

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Given an integer array `nums`, remove all odd numbers and return the remaining even numbers in reverse order (preserving no other ordering constraints). Example: - Input: `nums = [2, 3, 4]` - Output: `[4, 2]` Clarifications: - `0` is even. - If no even numbers exist, return an empty array.

Quick Answer: This question evaluates competency in basic array manipulation, specifically filtering elements by parity and reversing their order while preserving no other ordering constraints.

Related Interview Questions

  • Implement Three Assessment Functions - Upstart (medium)
  • Solve Five OA Coding Tasks - Upstart (medium)
  • Solve Reported OA Coding Problems - Upstart (medium)
  • Decrypt a twice-encrypted message using known pairs - Upstart (medium)
  • Compute buffet revenue with capacity and waiting - Upstart (medium)
Upstart logo
Upstart
Mar 9, 2026, 12:00 AM
Software Engineer
Technical Screen
Coding & Algorithms
8
0

Given an integer array nums, remove all odd numbers and return the remaining even numbers in reverse order (preserving no other ordering constraints).

Example:

  • Input: nums = [2, 3, 4]
  • Output: [4, 2]

Clarifications:

  • 0 is even.
  • If no even numbers exist, return an empty array.

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Upstart•More Software Engineer•Upstart Software Engineer•Upstart Coding & Algorithms•Software Engineer Coding & Algorithms
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • Careers
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.