NET INCOME (LOSS) PER SHARE (Tables)
12 Months Ended
Oct. 31, 2017
Earnings Per Share [Abstract]  
Reconciliation of the numerators and denominators of the basic and diluted net income per share
The following is a reconciliation of the numerators and denominators of the basic and diluted net income per share computations for the periods presented below.
 
Years Ended October 31,
 
2017
 
2016
 
2015
 
(in millions)
Numerator:
 
 
 
 
 
Income from continuing operations
$
684

 
$
462

 
$
438

Loss from discontinued operations
$

 
$

 
$
(37
)
Net income
684

 
462

 
401

Denominators:
 
 
 
 
 
Basic weighted average shares
322

 
326

 
333

Potential common shares — stock options and other employee stock plans
4

 
3

 
2

Diluted weighted average shares
326

 
329

 
335