View AdventOfCodeDay16.cs
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace AdventOfCodeDay16 | |
{ | |
class Program |
View AdventOfCodeDay15.cs
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace AdventOfCodeDay15 | |
{ |
View AdventOfCodeDay14.cs
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace AdventOfCodeDay14 | |
{ |
View AdventOfCodeDay13.cs
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace AdventOfCodeDay13 | |
{ |
View AdventOfCodeDay12.js
var input = [1,"red",5]; | |
var hasRedProperty = function(obj) | |
{ | |
for (var property in obj) | |
{ console.log(property + " " + obj[property]); | |
if(obj[property] === "red") return true; | |
} | |
return false; | |
}; |
View AdventOfCodeDay11.cs
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace AdventOfCodeDay11 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View AdventOfCodeDay10.cs
using System; | |
using System.Linq; | |
using System.Text; | |
namespace AdventOfCodeDay10 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
View AdventOfCodeDay9-Extensions.cs
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace AdventOfCodeDay9 | |
{ | |
public static class Extensions | |
{ | |
public static IEnumerable<IEnumerable<T>> Permute<T>(this IEnumerable<T> sequence) | |
{ |
View AdventOfCodeDay9-Main.cs
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Linq; | |
namespace AdventOfCodeDay9 | |
{ | |
class MainClass | |
{ |
View AdventOfCodeDay7-2.cs
using System; | |
namespace adventofcodeday7_2 | |
{ | |
class Program | |
{ | |
const ushort ai = unchecked((ushort)(af & ah)); | |
const ushort ll = unchecked((ushort)(~lk)); | |
const ushort @is = unchecked((ushort)(hz >> 1)); | |
const ushort gp = unchecked((ushort)(~go)); | |
const ushort dv = unchecked((ushort)(du ^ dt)); |