XML 30 R18.htm IDEA: XBRL DOCUMENT v3.8.0.1
ACCOUNTING POLICIES (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Error Corrections and Prior Period Adjustments Restatement [Line Items]      
Amount of excess tax benefit $ 72 $ 924 $ 924
Net cash used in financing activities   12,014 10,467
Net cash provided by operating activities   $ 46,025 118,953
Accounting Standards Update 2016-09      
Error Corrections and Prior Period Adjustments Restatement [Line Items]      
Net cash used in financing activities     2,200
Net cash provided by operating activities     $ 2,200