Your question is Bubble Sort, Reverse String, and Pointers. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
SanDisk SSD Dashboard receives numeric diagnostic values and a mutable character buffer containing a device label. Implement both operations without using Python's built-in sorting, reversing, slicing, or auxiliary collections.
values in ascending order using stable bubble sort. Equal values must retain their original relative order, and the input list must be modified in place.label_chars in place using two pointers, one starting at each end of the list.[values, label_chars].While explaining your solution, describe what the two index variables represent, how they move, and why Python indices behave as references into the list rather than C-style pointers. The implementation must use constant auxiliary space.
values, a list of integers, and label_chars, a list of one-character strings.[values, label_chars], containing the same two list objects after modification.def process_flash_metadata(values, label_chars):