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 <bits/stdc++.h> | |
using namespace std; | |
int getMinTrips(int n, int x, vector<int> w) { | |
int limit = 1 << n; | |
vector<pair<int,int>> dp(limit, {n + 1, 0}); | |
dp[0] = {1, 0}; | |
for (int s=1; s < limit; s++) { | |
for (int person=0; person < n; person++) { |
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
#!/bin/bash | |
sed 's/"//g;s/,/\n/g' 0022_names.txt | | |
sort | | |
gawk ' | |
BEGIN { S = 0 } | |
{ | |
sum = 0 | |
for (i = 1; i <= length($0); i++) { |
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" | |
"io" | |
"log" | |
"os" | |
"path/filepath" | |
"slices" | |
) |
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
Tom Day - Who we want to be | |
https://www.youtube.com/watch?v=BVomQtrtMTM | |
https://www.youtube.com/watch?v=BVomQtrtMTM&lc=Ugw022qkAst7FWtdQl54AaABAg | |
Someone posted a story here a long time ago. Now I can't find that comment anymore. He deleted it, and with it, one hell of a good story. It took some time to find it, but now I have. | |