03 Sept 2025TypeScriptUnknown

Game Theory

notes and solution files for game theory.

this entry collects the solution files i have for game theory. i may expand it with a fuller write-up later, but the implementation files are already here.

available solution files

  • TypeScript game-theory/problem-1025.ts
  • TypeScript game-theory/problem-2011.ts
  • TypeScript game-theory/problem-3222.ts

Solution files

TypeScriptgame-theory/problem-1025.ts

Solution file content could not be loaded.

TypeScriptgame-theory/problem-2011.ts
function finalValueAfterOperations(operations: string[]): number {
    let x = class="syntax-number">0;

    for (const op of operations) {
        if (op.includes(class="syntax-string">'+')) {
            x++;
        } else {
            x--;
        }
    }

    return x;
};
TypeScriptgame-theory/problem-3222.ts

Solution file content could not be loaded.