Monday, February 28, 2011

Intw Questions Part2

Strengths
Weaknesses


Technical
=========
Reversing a string e.g. "Something is Awesome" to
            => Complete reverse
            => "Awesome is Something"

------------------------------------------------------------------------------------------------------------------
// Reverse the string word by word
            String test= "Testing reversal";
            int len = test.Length;
            string[] strArray = test.Split(' ');
            Console.WriteLine(strArray.Length);
            Console.WriteLine("Reversing String");
          
            for(int i=strArray.Length-1; i>=0; i--)
            {
                if (i>0)
                    Console.Write(strArray[i] + " ");
                else
                    Console.Write(strArray[i]);
        }
            // Reversing String word by word ends here
------------------------------------------------------------------------------------------------------------------
Inserting a node in a link list with Test cases

Delete a node in a link list with Test cases

Factorial program=> With & w/o recursion
Fibonacci program=> with & w/o recursion

Array sorting algorithms

Testing life cycle

Basic powershell scripting