Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     //DivisorGame.Execute();
     //BuyAndSellStock.Execute();
     //MinCostClimbingStairs.Execute();
     //GroupPeople.Execute();
     //AllPathsSourceTarget.Execute();
     //SumEvenGrandparent.Execute();
     //LongestPalindrome.Execute();
     //UniquePaths.Execute();
     //UniquePathsWithObstacles.Execute();
     //MinPathSum.Execute();
     //TwoSum.Execute();
     //LengthOfLongestSubstring.Execute();
     //PalindromeLinkedList.Execute();
     //RemoveLinkedListElements.Execute();
     //DeleteDuplicates.Execute();
     //ReverseLinkedList.Execute();
     //MergeTwoSortedLists.Execute();
     //FindSmallestLetterGreaterThanTarget.Execute();
     //FindRotationPointBinarySearch.Execute();
     //MaximumSubArraySizeN.Execute();
     //SubArraySum.Execute();
     //IntervalMerge.Execute();
     //InsertInterval.Execute();
     //MaxSubstringKDistinctChars.Execute();
     //IsPermutationOf.Execute();
     //AllPermutations.Execute
     //SeventyFive.TwoPointers.LongestPalindrome.Execute();
     //SeventyFive.LinkedList.RemoveNthFromEnd.Execute();
     //RotateMatrix.Execute();
     //MaxSubArray.Execute();
     //SpiralOrder.Execute();
     //CanJump.Execute();
     //MergeIntervalsLC.Execute();
     //SeventyFive.InsertInterval.Execute();
     //ParseChallenges.Execute();
     //IsValidBST.Execute();
     //LevelOrder.Execute();
     //PreorderInorderTraversal.Execute();
     //ReorderList.Execute();
     ReverseBits.Execute();
 }
Ejemplo n.º 2
0
        public void TestReverseBits()
        {
            var r = ReverseBits.Reserve(43261596);

            Assert.AreEqual(r, 964176192u);
        }
Ejemplo n.º 3
0
 public void ReverseBits_Smoke_Test()
 {
     Assert.AreEqual((uint)1, ReverseBits.Reverse(2147483648));
 }