Problems
Previous question · 1243
Smallest String Starting From Leaf
medium
Data Structures
Next question · 1245
Contains Duplicate
easy
Data Structures
Random coding question
NumPy
Language
NumPy
Practice
Interview
AI Tutor
Description
Solution
Discussion
1244. Difference transformation
easy
General
senior
Function contract
Inputs
order
int
series
np.ndarray
Returns
value
np.ndarray
Examples
Example 1
Input
{
"order"
:
1
,
"series"
:
[
10
,
13
,
12
,
20
]
}
Output
[
3
,
-1
,
8
]
Example 2
Input Signature
Argument
Type
order
int
series
np.ndarray
Output Signature
Return Name
Type
value
np.ndarray
Constraints
Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
General
Levels
senior
entry
Tags
time-series
differencing
iterative-transform
numpy
Similar Questions
Linear Regression
medium
ML Coding
Activation function relu
easy
ML Coding
Text normalization
medium
ML Coding
49 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>