Skip to content

Instantly share code, notes, and snippets.

using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
WhosThere(new classA());
WhosThere(new classB());
using System;
using System.Linq;
using System.Collections.Generic;
public class IntPart
{
public static string Part(long n)
{
List<int> prod = GetMimic((int) n);
return $"Range: {prod.Last() - 1} Average: {prod.Average():0.00} Median: {((double)(prod.ElementAt(prod.Count() / 2) + prod.ElementAt((prod.Count() - 1) / 2)))/2:0.00}";
public class Kata
{
public static int getLoopSize(LoopDetector.Node startNode)
{
LoopDetector.Node prev = null;
LoopDetector.Node curr = startNode;
LoopDetector.Node temp = null;
int n1 = 0;