alpaca-13b· Stanford
Arena Human Preference 55K
write a simple bubble short algorhitm i kotlin
- User
write a simple bubble short algorhitm i kotlin
- Assistant
fun bubbleSort(list: List): List { for (i in list.indices) { for (j in (i + 1)..list.size - 1) { if (list[i] > list[j]) { list[i], list[j] = list[j], list[i] } } } return list }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.