BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Coffee Break Coding Challenge

Spoiler
Not even coding it! .... Integer to "String",  String to byte array, For each element in array build new array with the remaining elements sorted(split array, sort array), New array to string, Sort String Array, Threshold New array as String. Threshold index rounded up {to get the next higher} Scan String %d.
Spoiler
Isn't ASCII fun?

"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 26
(6,392 Views)

Another attempt (shaped by an irrational aversion to strings).

 

Ian

 

 

 

Spoiler
Test.png

 

Message 12 of 26
(6,373 Views)

I enjoy a good challenge, but I think I over-thought this one...

 

Spoiler
MarchChallnge_BruteForce.jpg

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 13 of 26
(6,317 Views)

Unlike my previous solution, which is brute force, this one intelligently considers the numerals of the provided number. It is much quicker, however I expect that it has already been created in one of the spoilers by someone else because it is far from profound.

 

Spoiler
Excuse the icon
Spoiler
MarchChallnge_Ordered.jpg

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 14 of 26
(6,298 Views)

Another excuse for the good, old and I mean 700 years old, method of Narayana Pandit.

 

Spoiler
NextIntegerSameDigits.png

 

Message 15 of 26
(6,259 Views)

@Darin.K wrote:

Another excuse for the good, old and I mean 700 years old, method of Narayana Pandit.

 

Spoiler
NextIntegerSameDigits.png

 


 

Inplace operations used in the 14th Century?

 

I realize memory used to be a scarce resource but then again... "There is nothing new under the sun." Eclesiastes

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 16 of 26
(6,234 Views)

I was trying to run this in LabVIEW 1345 with highlighting on, but the illuminated diagram on the parchment didn't change

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 17 of 26
(6,214 Views)

Did you try it with a 1.2 Candle power candle?

 

Some of those examples could only be realized uisng an upgraded candle.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 18 of 26
(6,209 Views)

I had forgotten to renew my SSP, so I didn't get the upgrade that year.

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 19 of 26
(6,196 Views)

Brute force:

 

Example_VI.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 20 of 26
(6,182 Views)