This is a quick and easy bubble sort implemented in Python. As it turns out, the bubble sort only takes 4 lines of code, plus the various boilerplate to set up the python run and make a random list. Is that the shortest sort you can implement ? I'm not sure
Actually you can probably do this as a list comprehension or something and take even fewer lines. Any code golfers want to let me know ?
Since I work at Google (but this channel is not affiliate with Google), here is the copyright for the code
// Copyright 2021 Google LLC
// SPDX-License-Identifier: Apache-2.0
// https://www.apache.org/licenses/LICEN...