v3.26.1
Restructuring and Other Charges - Schedule of Restructuring and Other Charges (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Apr. 30, 2026
Apr. 30, 2025
Apr. 30, 2026
Apr. 30, 2025
Restructuring Cost and Reserve [Line Items]        
Restructuring costs $ 365   $ 491  
Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 365   487  
Other prior plan costs        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 0   4  
Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   $ 122   $ 192
Severance | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 51   162  
Severance | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   97   141
Non-labor | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 18   23  
Non-labor | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   8   20
Special Termination Benefit | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 280   280  
Other Charges | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs $ 16   $ 22  
Other Charges | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   $ 17   $ 31