Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Solve an Easy Online Coding Task

EasyPython00:00
Practice interviewer
In session
5 left
00:00

Your question is Solve an Easy Online Coding Task. Start with the requirements on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

Tell me about how you would approach an easy online coding assessment and what you would do to ensure correctness.

For the hands-on portion, implement a function that verifies whether two output lists are identical in length and value at every position. Return True only when they match exactly.

Use def validate_assessment_results(actual_outputs, expected_outputs):; both inputs are lists, and the output is a boolean.

Constraints

  • Both inputs are lists.
  • 0 <= len(actual_outputs), len(expected_outputs) <= 10^5
  • List elements support equality comparison.
  • Order matters.

Function Signature

def validate_assessment_results(actual_outputs, expected_outputs):
Your solutionPython 3
You need to log in / sign up to run or submit.
Run your code to see test output