SHARE-BASED COMPENSATION (Allocation of period costs) (Details) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items] | ||||
| Share-based Compensation Expense | $ 58 | $ 37 | $ 135 | $ 99 |
| Income Statement Location [Axis]: us-gaap:CostOfGoodsAndServicesSold | ||||
| Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items] | ||||
| Share-based Compensation Expense | 13 | 9 | 29 | 20 |
| Income Statement Location [Axis]: us-gaap:ResearchAndDevelopmentExpense | ||||
| Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items] | ||||
| Share-based Compensation Expense | 14 | 9 | 36 | 25 |
| Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense | ||||
| Share-based Compensation Expense, Allocation of Recognized Period Costs [Line Items] | ||||
| Share-based Compensation Expense | $ 31 | $ 19 | $ 70 | $ 54 |