Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
merge sort
//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 Main(string[] args) { int xIndex = lastX; int yIndex = y.Length - 1; int mergeIndex = x.Length - 1; while (yIndex >= 0) { if (y[yIndex] > x[xIndex]) { x[mergeIndex] = y[yIndex]; yIndex--; } else if (y[yIndex] < x[xIndex]) { x[mergeIndex] = x[xIndex]; xIndex--; } mergeIndex--; } return x; } } }
run
|
edit
|
history
|
help
0
Retirar valores das tags de um XML padrão TISS/ANS SIB
de Decimal a Binario
actions and tasks
cs002
biswa
Project Euler Problem 10
Date format display
Square Integer Matrix
Math 9.61
linked list traversal