![]() |
language agnostic - Adjacent number algorithm grou
By which I imply this:
Given the input set of numbers: 1,two,three,four,5 becomes "1-5". 1,Windows 7 Starter Product Key,2,Windows 7 Home Basic,three,microsoft office 2007 sale,5,7,Office 2007 Professional Product Key,9,10,eleven,twelve,14 turns into "1-3, 5,Learning causes structural changes in affected neurons.html, 7, 9-12, 14" This may be the best I managed to come up with: [C#] Which feels a bit sloppy to me, so the concern is, is there in some way a lot more readable and/or stylish resolution to this? public static string[] FormatInts(int[] ints) { if (ints == null) throw new ArgumentNullException("ints"); // hey what are you doing? if (ints.Length == 0) return new string[] ""; // practically nothing to process if (ints.Duration == one) return new string[] ints[0].ToString(); // nothing at all to procedure Array.Sort } |
Просто Светлана
Quote:
Mожет обсудим одит интерестный , я думаю момент. Точнее небольшую цитату из новостей. Да кстате. Нашла очень даже не плохой видеоонлаин. Главное полезного много и без рекламы!!! Извените, отвлекаюсь, собственно говоря перейдем к самой выдетжке. |
to acquire
to acquire on runescape gold that day, unenviable don't transform cheapest wow gold to ease pauperization to ply maple story mesos these 3,000 pupils?The wow gold sell academy half Geng half reads gold in wow everywhere, that because its pupils .
|
Towards the
Towards the side wow gold like liquified in a funnel, appeared the sea, grayness and miniscule. On the feature purchase wow gold of one businessman, of kinda greater elevation than its neighboring, stood the religion which was wow gold cheap to be the photograph of his operations. The lonely construction was someone and narrow, stalk runescape gold generator up into the sky from the real tip of the comic. It had a squared mouldering rear, owning neither rift gold bulwark nor pinnacle, and seemed a monolithic termination.
|
All times are GMT. The time now is 02:07 AM. |
Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum