Skip to content

Instantly share code, notes, and snippets.

View anhnguyen1618's full-sized avatar

Ha Anh Nguyen anhnguyen1618

  • Helsinki, Finland
View GitHub Profile
<table>
<tbody>
<tr style="background-color: red">
<td>Donna</td>
<td>2016-10-01</td>
<td></td>
</tr>
<tr style="background-color: red">
<td>Nansen</td>
<td>2016-11-05</td>
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{amsmath}
\title{Advanced Algo ex 1}
\author{zozosuper6281 }
\date{January 2020}
\begin{document}
function f(a, b) {
const list = [[a, 1, 0], [b, 0 ,1], [], [], [], [], [], []];
let i = 1;
while(list[i][0] > 0) {
list[i][3]= Math.floor(list[i-1][0] / list[i][0]);
list[i + 1][0] = list[i-1][0] - list[i][3] * list[i][0];
list[i + 1][1] = list[i - 1][1] - list[i][3] * list[i][1];
list[i + 1][2] = list[i - 1][2] - list[i][3] * list[i][2];
i++;
}
import java.util.ArrayList;
class Solution {
public List<List<Integer>> combinationSum(int[] candidates, int target) {
int[] combi = createCombination(candidates, target);
ArrayList<ArrayList<Integer>>[][] S = new ArrayList<ArrayList<Integer>>[combi.length][target + 1];
for (int i = 0; i < combi.length; i++) {
for (int t = 1; t <= target; t++) {
ArrayList<ArrayList<Integer>> local = new ArrayList<>();
S[i][t] = local;
[33, 78, 20, 92, 30, 91, 84, 63, 72, 21, 90, 32, 79, 84, 41, 29, 20, 94, 75, 75, 37, 41, 37, 34, 54, 46, 38, 69, 76, 89, 92, 89, 57, 77, 83, 23, 48, 20, 58, 28, 68, 68, 83, 61, 33, 62, 71, 72, 54, 95, 36, 86, 30, 73, 37, 45, 42, 60, 92, 50, 28, 62, 46, 59, 35, 74, 43, 99, 94, 20, 24, 70, 62, 58, 75, 28, 60, 87, 98, 51, 68, 97, 81, 52, 45, 98, 38, 40, 54, 99, 43, 52, 47, 36, 71, 79, 97, 41, 65, 20]
var text= "1";
function f() {
console.log(text);
var text = "2";
console.log(this.text);
function g() {
console.log(text);
}
12067
730
18756
15169
12589
13043
10492
14193
12028
6267
class Shop {
barber() {
while(freeSeat == N) wait()
freeSeat += 1
busy = true
}
close() {
busy = false