INCOME TAXES - Current and long-term income tax assets and liabilities (Details) - USD ($)
$ in Millions
Oct. 31, 2017
Oct. 31, 2016
Income Tax Disclosure [Abstract]    
Current income tax assets (included within other current assets) $ 77 $ 83
Long-term income tax assets (included within other assets) 18 19
Current income tax liabilities (included within other accrued liabilities) 55 49
Long-term income tax liabilities (included within other long-term liabilities) 131 190
Total $ 91 $ 137