Programming/Polyglot Problems
Have you ever gotten syntax errors because you know how to do the thing in one language but can't remember how to do that the other one?
Java | C# | Python | Ruby |
---|---|---|---|
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
if condition
do_thing
elsif
do_other_thing
else
do_else_thing
end