CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of kata
SQL
/*
Ordered Jobs Kata http://invalidcast.com/2011/09/the-ordered-jobs-kata
Sherwin Rice 30/09/2011
 
*/
 
USE TempDB
 
/*drop & create the OrderTheJobs function */
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OrderTheJobs]') )
by shockstump   September 30, 2011 @ 9:23am
Tags: kata
132 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        return GetWords(word, word.Length);
    }
 
    private string[] GetWords(string word, int level)
    {
        IList<string> anagrams = new List<string>();
by Fernando Claverino   May 13, 2011 @ 1:50pm
Tags: kata
82 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        if (word.Length == 1)
        {
            anagrams = GetWords(word, 1);
        }
        else if (word.Length == 2)
by Fernando Claverino   May 13, 2011 @ 1:36pm
Tags: kata
73 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        if (word.Length == 1)
        {
            anagrams = GetWords(word, 1);
        }
        else if (word.Length == 2)
by Fernando Claverino   May 13, 2011 @ 1:34pm
Tags: kata
81 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        if (word.Length == 1)
        {
            anagrams = GetWords(word, 1);
        }
        else if (word.Length == 2)
by Fernando Claverino   May 13, 2011 @ 12:58pm
Tags: kata
81 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        if (word.Length == 1)
        {
            anagrams.Add(word);
        }
        else if (word.Length == 2)
by Fernando Claverino   May 13, 2011 @ 12:43pm
Tags: kata
81 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        if (word.Length == 1)
        {
            anagrams.Add(word);
        }
        else if (word.Length == 2)
by Fernando Claverino   May 13, 2011 @ 12:34pm
Tags: kata
102 Views
no comments
 
C#
class Anagram
{
    public string[] GetWords(string word)
    {
        IList<string> anagrams = new List<string>();
        anagrams.Add(word);
        if (word.Length == 2)
        {
            anagrams.Add(new string(word.Reverse().ToArray()));
        }
by Fernando Claverino   May 13, 2011 @ 12:21pm
Tags: kata
87 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate