Bu yerda Python skripti bor, u bubble sort uchun Rust kodini yaratadi. Umid qilamanki, bu siz xohlagan narsa: print('fn bubble_sort(nums: &mut [i32]) {') print(' uchun i 0..(nums.len() - 1) {') print(' uchun j 0..(nums.len() - 1 - i) {') print' agar nums[j] > nums[j + 1] {') print(' nums.swap(j, j + 1); } print' } print' } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence