This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl _start | |
.section .data | |
n: | |
.quad 10 | |
numbers: | |
.quad 10, 7, 3, 1, 2, 4, 5, 8, 9, 30 | |
.section .text | |
_start: | |
# The numbers of elements in the array | |
movq n, %rcx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.globl _start | |
.section .data | |
n: | |
.quad 1001 | |
mynumbers: | |
.quad 5, 20, 33, 80, 52, 102, 10, 11, 35, 99, 100, 101 | |
# This program will find the largest value in the array | |
.section .text | |
_start: | |
# Put the number of elements of the array in %rcx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Quartiles { | |
List<double>? _quartiles; | |
Quartiles(List<double> nums) { | |
nums = List.from(nums)..sort(); | |
int n = nums.length; | |
int mid = n ~/ 2; | |
List<double> lowerHalf, upperHalf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"log" | |
) | |
const KEY_LENGTH = 5 |