I was studying and boom zendesk OA arrived in my inbox.

45 minutes for 3 questions but we are expected to solve them under 22 minutes.

You will be given your test report, and your screen is also recorded.

There are hidden test cases, so make sure your solution is correct before you submit it.

There are only 20 internship opening in the USA with I believe, over 600 applicants, at the very least.

Cool, I decided to take it right away.


Question 1

Given N, return the sum of positive numbers less than or equal to N that is divisible by 3, 5, or 7.

Constraint:
0 <= N <= 1000

Solution

Look at that constraint!
Use a for loop from 1 to N to test the cond and sum them up if they are divisble by 3, 5, or 7.


Question 2

Given money and giftees denoting the amount of money that you have and how many people that you must distrubte the money to. Find the maximum number of people who will receive 8 units of money.
You must follow these rules:

  1. You must spend all the money.
  2. Everyone must receive at least 1 unit of money
  3. Nobody can receive 4 units of money

Constraint

  • 0 <= money <= 200
  • 0 <= giftees < 10

Solution

I just iterate from giftees downward and check the conditions. Just be mindful that all poeple must have 1 unit of money and no one can have 4.
2 conditons only - This can be handled in just 1 if statement.


Question 3

Given some boxes dimension height, width, length, and its weight mass.
We are going to category them.

  • Bulky: Any of the dimension is >= 150 or that height * width * length >= 1000000.
  • Heavy: mass >= 20
  • Rejected: Both Bulky and Heavy.

Return which category the given box is in in a string.

Constraint
0 <= height, width, length <= 200
0 <= mass <= 100

Solution

Literally just do what it asks you to do.


Closing

Overall, a very easy OA. I think they are just using it to screen out people who can't code much.

Before I started the accessment, I took the tutorial and changed my language to C++ but in it, it was set to Java by default. I was getting compilation error for not realizing it. The assessment is recorded (your screen), so I must have looked like that I don't know Java (I arugbly know Java better than I know C++)... It is not looking good for me if they watch the recording lol.

Also, C++ isn't an option.


Edit

Wow, I just got my test report within 5 minutes of taking the OA!

Language independent: 650 / 650 (100%)
Problem solving: 550 / 550
Reliability: 100 / 100

100% Perfect score and I also solved it well under the expected 22 minutes! Move me forward to interview pls, but I feel like I am gonna get resume rejected like I always do for the previous 400 applications that I sent out. I honestly don't think they would be able to screen out that many people with this OA.

Edit 2

Got an invitation to a 90-minute Zoom interview. Now I am worried because they seem to use Java. I am rusty.

Comments (8)