Please use the script below as a shell command and save to /usr/local/bin/lark
in the execution environment
#!/usr/bin/env bash
action=$1
url=$2
package main | |
import "fmt" | |
func main() { | |
var nums []int = []int{6, 1, 2, 7, 9, 3, 4, 5, 10, 8} | |
quicksort(nums, 0, len(nums)-1) | |
fmt.Println(nums) | |
} |
package main | |
import "fmt" | |
func main() { | |
var nums []int = []int{57, 40, 38, 11, 13, 34, 48, 75, 6, 19, 9, 7} | |
heapsort(nums) | |
fmt.Println(nums) | |
} |
package main | |
import "fmt" | |
func main() { | |
var nums []int = []int{3, 2, 1, 2, 5, 9, 8, 6, 7} | |
shellsort(nums) | |
fmt.Println(nums) | |
} |
package main | |
import "fmt" | |
func main() { | |
var nums []int = []int{10, 7, 8, 1, 4, 3} | |
topDownMergesort(nums) | |
fmt.Println(nums) | |
} |
<!DOCTYPE html><html lang="en"><head><style type="text/css">*{transition: all 0.6s;}html {height: 100%;}body{font-family: 'Lato', sans-serif;color: #888;margin: 0;}#main{display: table;width: 100%;height: 100vh;text-align: center;}.fof{display: table-cell;vertical-align: middle;}.fof h1{font-size: 50px;display: inline-block;padding-right: 12px;animation: type .5s alternate infinite;}@keyframes type{from{box-shadow: inset -3px 0px 0px #888;}to{box-shadow: inset -3px 0px 0px transparent;}}</style></head><body><div id="main"><div class="fof"><h1>Oops, (-4o4-) Not Found.</h1></div></div></body></html> |