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
[tool.poetry] | |
name = "test" | |
version = "0.1.0" | |
description = "" | |
authors = ["Your Name <you@example.com>"] | |
readme = ["README.md", "LICENSE"] | |
[tool.poetry.dependencies] | |
python = "^3.8" |
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 ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"regexp" | |
"strings" |
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
def checkSeq(lb, ub, lst, k): | |
l = lb - 1 | |
u = ub + 1 | |
for num in lst: | |
if num > k: | |
if num >= u: | |
print("Exceeded upper bound on: " + str(num)) | |
return False | |
u = num |
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
#include <stdlib.h> | |
typedef int datatype; | |
typedef struct queue { | |
datatype *arr; | |
int front; | |
int rear; | |
size_t size; | |
} queue; |
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
import numpy as np | |
def gaussian_elimination_pivot(A, b): | |
""" | |
Converts a normal linear system of equations to upper triangular form | |
A is a non-singular n x n matrix containing coefficients | |
b is an n-vector containing the values | |
""" |
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
import numpy as np | |
def gaussian_elimination(A, b): | |
""" | |
Converts a normal linear system of equations to upper triangular form | |
A is a non-singular n x n matrix containing coefficients | |
b is an n-vector containing the values | |
""" |
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
#include <vector> | |
#include <iostream> | |
template <typename T> std::vector<T> quicksort(const std::vector<T> &A) { | |
if (A.size() < 2) return A; | |
std::vector<T> left; | |
std::vector<T> mid; | |
std::vector<T> right; |
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
{"obj":{"x":-13.152498245239,"y":-2228.2902832031,"code":"9017"},"left":{"obj":{"x":-934.90258789063,"y":-178.86724853516,"code":"7179"},"left":{"obj":{"x":-885.44458007813,"y":-1302.3771972656,"code":"8234"},"left":{"obj":{"x":-1175.83203125,"y":-916.56103515625,"code":"8092"},"left":{"obj":{"x":-1176.1430664063,"y":-1392.3951416016,"code":"8220"},"left":{"obj":{"x":-1312.3676757813,"y":-1265.9447021484,"code":"8214"},"left":{"obj":{"x":-1289.033203125,"y":-1317.2657470703,"code":"8213"},"left":{"obj":{"x":-1804.8181152344,"y":-2797.4165039063,"code":"10021"},"left":{"obj":{"x":-1471.8472900391,"y":-3266.0051269531,"code":"10017"},"left":{"obj":{"x":-1573.0844726563,"y":-3227.0913085938,"code":"10019"},"left":{"obj":{"x":-1573.0844726563,"y":-3227.0913085938,"code":"10018"},"left":null,"right":null,"parent":null,"dimension":0},"right":{"obj":{"x":-1930.2440185547,"y":-3038.2138671875,"code":"10020"},"left":null,"right":null,"parent":null,"dimension":0},"parent":null,"dimension":1},"right":{"obj":{"x":-1407.7 |