XML 70 R60.htm IDEA: XBRL DOCUMENT v3.23.2
Retirement and Post-Retirement Benefit Plans - Defined Contribution Plans (Narrative) (Details) - USD ($)
$ in Millions
12 Months Ended
Oct. 31, 2022
Oct. 31, 2021
Oct. 31, 2020
Retirement Benefits [Abstract]      
Total defined contribution expense $ 119 $ 112 $ 108
Defined Contribution Plan Disclosure [Line Items]      
Employee service period 3 years    
HP 401(k) Plan      
Defined Contribution Plan Disclosure [Line Items]      
Employer matching contributions, as a percent 100.00%    
Percentage of maximum matching contribution 4.00%