Skip to content

Instantly share code, notes, and snippets.

@valiyo
valiyo / Reverce the Words in a Sentence.cs
Last active December 12, 2015 02:58
[C#] Домашно Strings and Text Processing - 13 задача Reverce the Words in a Sentence
using System;
using System.Collections.Generic;
/* Write a program that reverses the words in given sentence.
* Example: "C# is not C++, not PHP and not Delphi!"
* -> "Delphi not and PHP, not C++ not is C#!". */
class ReverseWordsInSentence
{
static void Main()
@valiyo
valiyo / Extract Sentences.cs
Created February 3, 2013 10:28
[C#] Домашно Strings and Text Processing - 8 задача Extract all sentences containing given word.
using System;
/* Write a program that extracts from a given text all sentences containing given word.
* Example: The word is "in". The text is:
*
* We are living in a yellow submarine.
* We don't have anything else.
* Inside the submarine is very tight.
* So we are drinking all the day.
* We will move out of it in 5 days.
@valiyo
valiyo / MergeSortAlgorithm.cs
Last active August 6, 2017 05:52
C# interpretation of the top-down implementation of Merge Sort from Wikipedia: http://en.wikipedia.org/wiki/Merge_sort
using System;
using System.Collections.Generic;
using System.Linq;
/* Write a program that sorts an array of integers
* using the merge sort algorithm (find it in Wikipedia). */
class MergeSortAlgorithm
{
public static int[] MergeSort(int[] array)
@valiyo
valiyo / dabblet.css
Created January 20, 2013 16:16
Calculator
/**
* Calculator
*/
@font-face {
font-family: "Segoe UI";
src: url('http://youfailhost.googlecode.com/files/Segoe%20UI.ttf') format('truetype')L;
}
@font-face {