You are given the edges of an undirected graph. Count how many completesubgraphs of size three exist that contain one or more starting with the letter t.
Aside: Games with local (but not hotseat) multiplayer have gotten rather rarer over the years… how many people still know what a LAN party is/was?
But you cannot type directly. Instead, you can control a pointer on the keypad with arrow keys:
+---+---+
| ^ | A |
+---+---+---+
| < | v | > |
+---+---+---+
Whenever you type a ^ on the arrow keys, the pointer on the keypad will move up one, etc. When you type A, then the pointer on the keypad will type whatever it is pointing at.
But that’s not enough either. Add a second keypad. And then a third, that is the one you are actually controlling.
For each output sequence multiple the length of the minimum input sequence needed to generate it by the numeric value of the input sequence (ignoring any A); sum these.
Note: Moving off any keypad or into the blank spaces is an error.
Given a comma delimited list of substrings and a list of strings, count how many of the latter strings can be made up of any (repeating) combination of the former.
Given a result and a list of numbers, determine if any combination of addition (+) and/or multiplication (*) using all the given numbers in order can return the result. Ignore order of operations.
Another day, another Stacklang!
Posts in StackLang: StackLang Part I: The Idea StackLang Part II: The Lexer StackLang Part III: The Parser StackLang Part IV: An Interpreter StackLang Part V: Compiling to C StackLang Part VI: Some Examples StackLang Part VII: New CLI and Datatypes StackLang Part VIII: Compiler Stacks StackLang Part IX: Better Testing Today, we’ve got two main parts to work on:
A new CLI New datatypes (VM only; so far!