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
| main.exe: main.cs | |
| mcs /unsafe main.cs |
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
| using System; | |
| using System.Collections.Generic; | |
| public class MainClass | |
| { | |
| public static IEnumerable<string> Actions() | |
| { | |
| try { | |
| yield return "try"; | |
| } catch (Exception) { |
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
| public class Main | |
| { | |
| public static void Main(string[] args) | |
| { | |
| Console.WriteLine("Hello World"); | |
| } | |
| } |
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
| using System; | |
| public static class Main | |
| { | |
| public static void Main(string[] args) | |
| { | |
| Console.WriteLine("Hello World"); | |
| } | |
| } |
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
| uuid: main.zig | |
| zig build-exe --strip --single-threaded main.zig | |
| mv main uuid | |
| run: uuid | |
| ./uuid |
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 Converters._ | |
| object Puzzle06 extends Runnable { | |
| def find(line: String, count: Int): Int = { | |
| val result = line.sliding(count).zipWithIndex.find { case (e, i) => | |
| e.toSet.size == count | |
| } getOrElse { | |
| ??? | |
| } |
OlderNewer