DERIVATIVES, Effect of derivative instruments on Consolidated Statement of Operations (Details) - USD ($)
$ in Millions
12 Months Ended
Oct. 31, 2017
Oct. 31, 2016
Oct. 31, 2015
Derivative [Line Items]      
Gain (loss) recognized in accumulated other comprehensive income(loss) $ 0 $ (10)  
Foreign Currency Cash Flow Hedge Gain (Loss) to be Reclassified During Next 12 Months 0    
Derivatives Not Designated as Hedging Instruments | Other income (expense) [Member]      
Derivative [Line Items]      
Gain (loss) recognized in other income (expense), net within continuing operations 5 1 $ (21)
Cash Flow Hedges | Derivatives Designated as Hedging Instrument | Foreign Exchange Contracts [Member] | Other Comprehensive Income (Loss) [Member]      
Derivative [Line Items]      
Loss on interest rate swaps recognized in other comprehensive income 0 (9) 0
Cash Flow Hedges | Derivatives Designated as Hedging Instrument | Foreign Exchange Contracts [Member] | Accumulated Other Comprehensive Income (Loss)      
Derivative [Line Items]      
Gain (loss) recognized in accumulated other comprehensive income(loss) 0 (1) 11
Cash Flow Hedges | Derivatives Designated as Hedging Instrument | Foreign Exchange Contracts [Member] | Cost of Sales [Member]      
Derivative [Line Items]      
Gain(loss reclassified from accumulated other comprehensive income (loss) into cost of sales $ 1 $ (3) $ 18