Improve loop syntax and format code

pull/12/head
srksumanth 6 years ago
parent 8a8ce96014
commit 5c41ed1d14

@ -19,7 +19,7 @@ func main() {
left := 0 left := 0
right := len(arr) - 1 right := len(arr) - 1
for ; left <= right ; { for left <= right {
if arr[left] > arr[left+1] { if arr[left] > arr[left+1] {
tmp = arr[left] tmp = arr[left]

Loading…
Cancel
Save