Net Loss per Share (Tables)
3 Months Ended
Apr. 30, 2019
Earnings Per Share [Abstract]  
Schedule of basic and diluted earnings (loss) per share
The following table sets forth the computation of basic and diluted net loss per share (in thousands, except share and per share data):
 
Three Months Ended April 30,
 
2019
 
2018
Numerator:
 
 
 
Net loss
$
(33,240
)
 
$
(26,555
)
 
 
 
 
Denominator:
 
 
 
Weighted-average shares used to compute net loss per share, basic and diluted
54,710,746

 
50,350,052

 
 
 
 
Net loss per share, basic and diluted
$
(0.61
)
 
$
(0.53
)
Schedule of antidilutive securities excluded from computation of earnings per share
The following weighted-average outstanding potentially dilutive shares of common stock were excluded from the computation of diluted net loss per share for the periods presented because the impact of including them would have been anti-dilutive.
 
Three Months Ended April 30,
 
2019
 
2018
Stock options to purchase Class A common stock
2,471,439

 
3,539,338

Stock options to purchase Class B common stock
5,700,441

 
9,001,291

Unvested restricted stock units
2,561,471

 
646,518

Early exercised stock options
47,550

 
234,646

Shares underlying the conversion spread in the convertible senior notes
1,945,081