Return Length of Arguments Passed — LeetCode 2703 Python Solution

EasyJavaScript
Problem
#2703
Reading time
2 min

The problem

Write a function argumentsLength that returns the count of arguments passed to it.

Example

Input
args = [5]
Output
1
Explanation
argumentsLength(5); // 1

Complexity

MeasureComplexity
TimeO(n)
SpaceO(1) to O(n) auxiliary

Related problems

Frequently asked questions

How hard is LeetCode 2703. Return Length of Arguments Passed?
LeetCode 2703. Return Length of Arguments Passed is rated Easy on LeetCode.
What topics does LeetCode 2703. Return Length of Arguments Passed cover?
LeetCode 2703. Return Length of Arguments Passed is tagged JavaScript on LeetCode.

Stuck on problems like this in a live interview?

Stealth Interview is a desktop app for macOS and Windows. It reads the problem off your screen and returns a working solution with a step-by-step explanation and its time and space complexity — invisible to screen sharing.

Get Stealth Interview