v3.26.1
Restructuring and Other Charges - Schedule of Restructuring and Other Charges (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Restructuring Cost and Reserve [Line Items]        
Restructuring costs $ 48   $ 539  
Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 60   547  
Other prior-year plans        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs (12)   (8)  
Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   $ 110   $ 302
Severance | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 38   200  
Severance | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   77   218
Non-labor | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 7   30  
Non-labor | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   14   34
Special Termination Benefit | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs 0   280  
Other Charges | Fiscal 2026 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs $ 15   $ 37  
Other Charges | Fiscal 2023 Plan        
Restructuring Cost and Reserve [Line Items]        
Restructuring costs   $ 19   $ 50