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; | |
using System.Linq; | |
using BenchmarkDotNet.Reports; | |
using BenchmarkDotNet.Running; | |
using BenchmarkDotNet.Attributes; | |
namespace Test { | |
public class PalindromNumber { | |
//Thanks to @Velial and @Denis |
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
// ***** BenchmarkRunner: Start ***** | |
// Found benchmarks: | |
// PalindromNumber.LargestPalindromeOriginal: DefaultJob | |
// PalindromNumber.LargestPalindromeDenis: DefaultJob | |
// PalindromNumber.LargestPalindromeEric: DefaultJob | |
// PalindromNumber.LargestPalindromePgs: DefaultJob | |
// PalindromNumber.LargestPalindromeDavislor: DefaultJob | |
// PalindromNumber.LargestPalindromeDavislor2: DefaultJob | |
// Validating benchmarks: |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<time.h> | |
#include<assert.h> | |
typedef struct | |
{ | |
size_t size; | |
size_t *data; | |
} gsl_permutation; |
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.IO; | |
namespace RandSeed { | |
class Program { | |
static void Main() { | |
string seeds, ms, ns; | |
int seed, m, n; | |
Console.Write("Seed: "); | |
seeds = Console.ReadLine(); |
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; | |
using System.Text; | |
namespace Test { | |
public class Program { | |
static void Main() { | |
Console.WriteLine(Concat(",",new List<string> {"a","b","c"})); | |
} |
NewerOlder