-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (25 loc) · 1.07 KB
/
Copy pathProgram.cs
File metadata and controls
29 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using InterviewQuestions.ViewModels;
using InterviewQuestions.Helpers;
using System.Collections.Generic;
namespace InterviewQuestions
{
class Program
{
static void Main(string[] args)
{
/* EXAMPLES */
var array = ArrayViewModel.LeftRotationByD(new int[] { 1, 2, 3, 4, 5 }, 1);
LinkedList<int> linkedlist = new LinkedList<int>(new int[] { 1, 2, 3, 4, 5 });
var fib = RecursionViewModel.Fibonacci(3);
var palindrome = StringViewModel.IsStringPalindrome("Savvas");
var sorted = LinkedListViewModel.InsertItemInSortedList(linkedlist, new LinkedListNode<int>(1));
var removed = LinkedListViewModel.RemoveDuplicatesFromSortedList(linkedlist);
ArrayViewModel.PrintMultiplicationTable(10);
var result = ArrayViewModel.MaximumSumSubArray(new int[] { -2, -3, 4, -1, -2, 1, 5, -3 });
var tuple = StringViewModel.LongesConsecutiveCharacters("AABCDDBBBEA");
/* END OF EXAMPLES */
Console.ReadKey();
}
}
}