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.IO; | |
namespace LetterFrequency | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ |
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; | |
using System.Text; | |
namespace PalindromeChecker | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ |
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; | |
// Implement pow(x, n) | |
namespace Math.Power | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ |
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; | |
// Given two strings where first string may contain wild card characters and second string | |
// is a normal string. Write a function that returns true if the two strings match. | |
// The following are allowed wild card characters in first string | |
// * --> Matches with 0 or more instances of any character or set of characters. | |
// ? --> Matches with any one character. | |
namespace WildCard | |
{ |
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.Text; | |
namespace LongestCommonSubsequence | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
string s1 = "abc"; |
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; | |
namespace EditDistance | |
{ | |
public class Program | |
{ | |
const int SUBSTITUTION_COST = 1; | |
const int INSERTION_COST = 2; | |
const int DELETION_COST = 2; |
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
class Battleship { | |
Player currentPlayer; | |
Player opponetPlayer; | |
Player player1; | |
Player player2; | |
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
// https://www.interviewcake.com/question/merging-ranges | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace MeetingTimes | |
{ | |
public class Program | |
{ |
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; | |
namespace InplaceShuffle | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var arr = new int[]{1, 2, 3, 4, 5}; | |
shuffle(arr); |
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
{ | |
"version": "1.0.0-*", | |
"dependencies": { | |
"System.ServiceModel.Web": "1.0.0" | |
}, | |
"commands": { | |
"run": "run" | |
}, | |
"frameworks": { | |
"dnx451": {}, |