Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Palindrome
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void checkArr(char [] arr) { int i = 0; int j = arr.Length-1; while (i<arr.Length) { if(arr[i]!=arr[j]) { Console.WriteLine("not palindrome"); break; } i++; j--; } if(i==arr.Length) { Console.WriteLine("is palindrome"); } } public static void Main(string[] args) { char [] arr = {'a','b','c','c','b','a'}; checkArr(arr); //Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
dsfsfsdf
Sum
qw
Boggle
a
Big numbers
merging of sorted arrays
Task 2
bitcount algo
Func