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.Linq; | |
using System.Collections.Generic; | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ | |
var p = new SimpleParser(); |
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.Collections.Generic; | |
public class PyramidSlideDown | |
{ | |
public static int LongestSlideDown(int[][] pyramid) | |
{ | |
var cache = new Dictionary<string, int>(); | |
return LongestSlideDownAt(pyramid, 0, 0, cache); | |
} |
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.Linq; | |
using System.Collections.Generic; | |
public class SumSquaredDivisors | |
{ | |
public static string listSquared(long m, long n) | |
{ | |
var result = new List<string>(); | |
for (var i = m; i <= n; i++) |
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
public class MorseCodeDecoder { | |
public static String decodeBits(String bits) { | |
System.out.println(bits); | |
int bitRate = detectBitRate(bits); | |
System.out.println(bitRate); | |
int scanner = 0; | |
while(scanner < bits.length() && bits.charAt(scanner) == '0') scanner++; //skip zeros in front | |
if(scanner == bits.length()) { | |
return null; | |
} |