Skip to content

Instantly share code, notes, and snippets.

Richard Vasquez RichardVasquez

  • San Jose, CA
Block or report user

Report or block RichardVasquez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@RichardVasquez
RichardVasquez / permute.cpp
Created Dec 1, 2013
This was my submission for the Dice.com coding contest initially posted at http://news.dice.com/2013/10/02/coding-challenge-046/ I came in 7th. Boo.
View permute.cpp
// Code submission for coding challenge "Prove Your Factorial Fluency"
// http://news.dice.com/2013/10/02/coding-challenge-046/
//
// Author: Richard R. Vasquez, II
// Website: http://tinymu.gs
//
// Notes: This was run in Release - Win32 - Visual Studio 2012
//
// Personal averages: ~0.5 seconds : 0.000000043 seconds to find correct solution.
// ~1.0 second : 0.000000034 seconds to find correct solution.
@RichardVasquez
RichardVasquez / OverOil001.cs
Last active Dec 24, 2015
WAY overdoing Euler Project Problem 1. It was fun, though.
View OverOil001.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace OverOiled01
{
/// <summary>
/// WAY overdoing Euler Project Problem 1.
///
@RichardVasquez
RichardVasquez / Permutation.cs
Last active Dec 18, 2015
A simple piece of code based off of some C code at http://www.bearcave.com/random_hacks/permute.html , translated into C#, and then sped up a bit (400% or so on my system) with some base code at http://msmvps.com/blogs/jon_skeet/archive/2013/06/22/array-covariance-not-just-ugly-but-slow-too.aspx provided by Jon Skeet.
View Permutation.cs
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Permute
{
class Program
{
private const int Iterations = 1000;
You can’t perform that action at this time.