Condensed Consolidated Statements of Cash Flows - Unaudited - USD ($)
$ in Millions
3 Months Ended
Jan. 30, 2022
Jan. 31, 2021
Cash flows from operating activities:    
Net income $ 2,472 $ 1,378
Adjustments to reconcile net income to net cash provided by operating activities:    
Amortization of intangible and right-of-use assets 1,151 1,395
Depreciation 136 138
Stock-based compensation 387 444
Deferred taxes and other non-cash taxes 70 (149)
Loss on debt extinguishment 0 172
(Gain) loss on investments 16 (119)
Non-cash interest expense 32 22
Other (1) 10
Changes in assets and liabilities, net of acquisitions and disposals:    
Trade accounts receivable, net (468) (247)
Inventory (223) 51
Accounts payable 0 44
Employee compensation and benefits (528) (375)
Other current assets and current liabilities 521 408
Other long-term assets and long-term liabilities (79) (59)
Net cash provided by operating activities 3,486 3,113
Cash flows from investing activities:    
Purchases of property, plant and equipment (101) (114)
Purchases of investments (200) 0
Other (8) (8)
Net cash used in investing activities (309) (122)
Cash flows from financing activities:    
Proceeds from long-term borrowings 0 9,904
Payments on debt obligations (255) (9,200)
Payments of dividends (1,764) (1,543)
Repurchases of common stock - repurchase program (2,724) 0
Shares repurchased for tax withholdings on vesting of equity awards (375) (225)
Issuance of common stock 1 35
Other (4) (28)
Net cash used in financing activities (5,121) (1,057)
Net change in cash and cash equivalents (1,944) 1,934
Cash and cash equivalents at beginning of period 12,163 7,618
Cash and cash equivalents at end of period $ 10,219 $ 9,552