Hacker News new | ask | show | jobs
by MMMercy2 1173 days ago
It can do some basic coding. The code syntax highlighting looks cool.

> Do a quick sort in python

> Here's an example of a quicksort implementation in Python:

def quicksort(array): if len(array) <= 1: return array pivot = array[0] less = [x for x in array[1:] if x <= pivot] greater = [x for x in array[1:] if x > pivot] return quicksort(less) + [pivot] + quicksort(greater)

1 comments

Quick sort is a terrible test case as it will have numerous training data examples of this exact concept