IBM SWE OA 2025 | IBM SWE OA | Hackerrank proxy | OA辅助

1,339次閱讀
IBM SWE OA 2025 | IBM SWE OA | Hackerrank proxy | OA辅助

Online Assessment Overview

Trait-Based Assessment: Timed questionnaire that evaluates your work-style preferences by choosing which of two statements is “most like you.”

Coding Assessment: Timed coding interface where you solve programming challenges to demonstrate your algorithm and implementation skills.

1. Question 1

Given two integer arrays a and b of length n. You want to form as many pairs (i,j) as possible such that a[i] > b[j], and each element can be used at most once. Return the maximum number of pairs.

Example:
n = 3
a = [1, 2, 3]
b = [1, 2, 1]
Output: 2
Explanation: You can pair (2,1) and (3,1).

Constraints: 1 ≤ n ≤ 10⁵, 1 ≤ a[i], b[i] ≤ 10⁹.

2. Question 2

Given a string num of digits, you may swap any two adjacent digits if they share the same parity (both even or both odd), as many times as you like. Return the lexicographically largest string you can form.

Example:
Input: "7596801"
Output: "9758601"
Explanation:
- swap 5↔9 → "7956801"
- swap 7↔9 → "9756801"
- swap 6↔8 → "9758601"

Constraint: length of num up to 10⁵.

We offer hands-on OA writing, Hackerrank proxy interviews, and interview coaching to ensure you ace your assessment. Contact us now!

author avatar
Alex Ma Staff Software Engineer
目前就职于Google,10余年开发经验,目前担任Senior Solution Architect职位,北大计算机本硕,擅长各种算法、Java、C++等编程语言。在学校期间多次参加ACM、天池大数据等多项比赛,拥有多项顶级paper、专利等。
正文完