XML 74 R59.htm IDEA: XBRL DOCUMENT v3.23.3
Retirement and Post-Retirement Benefit Plans - Defined Contribution Plans (Narrative) (Details) - USD ($)
$ in Millions
12 Months Ended
Oct. 31, 2023
Oct. 31, 2022
Oct. 31, 2021
Retirement Benefits [Abstract]      
Total defined contribution expense $ 131 $ 119 $ 112
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%