Convertible Senior Notes, Net - Schedule of Interest Expense Recognized Related to Convertible Senior Notes (Detail) - USD ($) $ in Thousands |
3 Months Ended | |
|---|---|---|
Apr. 30, 2017 |
Apr. 30, 2016 |
|
| 2018 Notes | ||
| Debt Instrument [Line Items] | ||
| Contractual interest expense | $ 656 | $ 656 |
| Interest cost related to amortization of debt issuance costs | 352 | 352 |
| Interest cost related to amortization of the debt discount | 4,044 | 3,819 |
| 2020 Notes | ||
| Debt Instrument [Line Items] | ||
| Contractual interest expense | 938 | 938 |
| Interest cost related to amortization of debt issuance costs | 168 | 167 |
| Interest cost related to amortization of the debt discount | $ 2,406 | $ 2,261 |