Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
concurrentStack
//Title of this code //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; using System.Threading.Tasks; using System.Threading; using System.Collections.Concurrent; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here ConcurrentStack<int> stack = new ConcurrentStack<int>(); stack.Push(42); int result; if(stack.TryPop(out result)) Console.WriteLine("Popped:{0}",result); stack.PushRange(new int[] {1,2,3}); int[] values = new int[5]; stack.TryPopRange(values); foreach(int i in values) Console.WriteLine(i); } } }
run
|
edit
|
history
|
help
0
Unsorted Parallel Arrays finding min & max values.
occurance of charecter
test
bc160401882
asdcsadxasxd
Task 1_4
Main5.1
give coins
gelman
rangeofset