Skip to content

Instantly share code, notes, and snippets.

@dzsquared
dzsquared / intro to sorting.cs
Created December 30, 2016 02:44
intro to sorting created by dzsquared - https://repl.it/Ex6a/0
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
int findMe = Convert.ToInt32(Console.ReadLine());
int arraySize = Convert.ToInt32(Console.ReadLine());
int foundHere = 0;
string[] findHere = Console.ReadLine().Split(' ');
@dzsquared
dzsquared / fib sequence.cs
Created December 30, 2016 02:44
fib sequence created by dzsquared - https://repl.it/Exxp/0
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
string[] theInput = Console.ReadLine().Split(' ');
int howFar = Convert.ToInt32(theInput[2]);
ulong[] theResults = new UInt64[howFar+2];
theResults[0] = Convert.ToUInt64(theInput[0]);