v3.26.1
SHARE-BASED COMPENSATION (Allocation of period costs) (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items]        
Share-based Compensation Expense $ 47 $ 32 $ 182 $ 131
Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold        
Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items]        
Share-based Compensation Expense 8 8 37 28
Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense        
Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items]        
Share-based Compensation Expense 13 9 49 34
Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense        
Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items]        
Share-based Compensation Expense $ 26 $ 15 $ 96 $ 69