21. Data Transmission

You are preparing a 32-bit value to send over a communication bus. To ensure compatibility across platforms, you must convert the value into 4 bytes (big-endian order) and store them into a byte array.

 
Example 1

Input: value = 0x12345678
Output: arr[0] = 0x12, arr[1] = 0x34, arr[2] = 0x56, arr[3] = 0x78

 
Example 2 

Input: value = 0x01020304
Output: arr[0] = 1, arr[1] = 2, arr[2] = 3, arr[3] = 4

 

 

Loading...

Input

305419896

Expected Output

18 52 86 120