This file contains 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
(int x, int y) Naive(int target, List<int> values) | |
{ | |
for (var i = 0; i < values.Count; ++i) | |
{ | |
for (var j = i + 1; j < values.Count; ++j) | |
{ | |
if (values[i] + values[j] == target) | |
{ | |
return (values[i], values[j]); | |
} |
This file contains 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 <stdio.h> | |
enum MODES | |
{ | |
ADDING, | |
SUBTRACTING | |
}; | |
int map_character_to_int(int character) | |
{ |
This file contains 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 <stdio.h> | |
enum MODES | |
{ | |
ADDING, | |
SUBTRACTING | |
}; | |
int map_character_to_int(int character) | |
{ |
This file contains 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.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using Binarysharp.MemoryManagement; | |
using Binarysharp.MemoryManagement.Memory; | |
namespace LuaExecPOC | |
{ | |
class Program |