Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Basic Coding Challenge
00:00
5 left

Basic Coding Challenge

EasyPython

Problem

Write a function to solve a basic algorithmic challenge using the language you are most comfortable with.

For this version, implement find_maximum, which returns the largest integer in a non-empty array. The function accepts a list of integers and returns one integer.

Constraints

  • 1 <= nums.length <= 1000
  • -10^9 <= nums[i] <= 10^9
  • The input array is non-empty

Function Signature

def find_maximum(nums):
Interviewer

Your question is Basic Coding Challenge. Start with the requirements in the Question tab.

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.
CodePython 3
You need to log in / sign up to run or submit.Ln 2
Run your code to see test output here.