Click here to Skip to main content
14,451,668 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralBut can it run Doom? Pin
honey the codewitch19-Jan-20 16:13
mvahoney the codewitch19-Jan-20 16:13 
GeneralRe: But can it run Doom? Pin
Super Lloyd19-Jan-20 19:14
MemberSuper Lloyd19-Jan-20 19:14 
Rant.NET Core 2.2 vs .NET Core 3.1 Pin
Marc Clifton19-Jan-20 14:24
communityengineerMarc Clifton19-Jan-20 14:24 
GeneralRe: .NET Core 2.2 vs .NET Core 3.1 Pin
honey the codewitch19-Jan-20 16:15
mvahoney the codewitch19-Jan-20 16:15 
GeneralRe: .NET Core 2.2 vs .NET Core 3.1 Pin
Gerry Schmitz19-Jan-20 19:09
mveGerry Schmitz19-Jan-20 19:09 
GeneralRe: .NET Core 2.2 vs .NET Core 3.1 Pin
mmcdaniel20-Jan-20 4:33
Membermmcdaniel20-Jan-20 4:33 
GeneralRe: .NET Core 2.2 vs .NET Core 3.1 Pin
Richard Deeming20-Jan-20 9:46
communityengineerRichard Deeming20-Jan-20 9:46 
GeneralI don't feel comfortable with this but i think it works Pin
honey the codewitch19-Jan-20 5:50
mvahoney the codewitch19-Jan-20 5:50 
Okay, so I have a set of "packed ranges" which are start and end position pairs stored as adjacent ints in an int array.

For example
var ranges=new int[] { 'A','Z','a','z','_','_' };

would indicate the ranges A-Z, a-z, and the single character _ (range _-_)

Here's the thing. I need them in order. I don't care if they overlap.

So all i do is I sort the array as a flat array of ints.

This *shouldn't* screw with any of my ranges I think?

Can anyone think of a case that will break this? remember i don't care if ranges overlap.

I just need to make sure that after i sort, the same ranges are in the array.


I broke it. LOL answered my own question
Real programmers use butterflies

GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 6:21
MemberMark_Wallace19-Jan-20 6:21 
GeneralRe: I don't feel comfortable with this but i think it works Pin
honey the codewitch19-Jan-20 6:33
mvahoney the codewitch19-Jan-20 6:33 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 22:06
MemberMark_Wallace19-Jan-20 22:06 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff19-Jan-20 10:12
communityengineerOriginalGriff19-Jan-20 10:12 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 22:10
MemberMark_Wallace19-Jan-20 22:10 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff19-Jan-20 22:11
communityengineerOriginalGriff19-Jan-20 22:11 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 22:13
MemberMark_Wallace19-Jan-20 22:13 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff19-Jan-20 22:28
communityengineerOriginalGriff19-Jan-20 22:28 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 22:39
MemberMark_Wallace19-Jan-20 22:39 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff19-Jan-20 22:45
communityengineerOriginalGriff19-Jan-20 22:45 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace19-Jan-20 22:54
MemberMark_Wallace19-Jan-20 22:54 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff19-Jan-20 23:06
communityengineerOriginalGriff19-Jan-20 23:06 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Mark_Wallace20-Jan-20 20:17
MemberMark_Wallace20-Jan-20 20:17 
GeneralRe: I don't feel comfortable with this but i think it works Pin
OriginalGriff20-Jan-20 21:12
communityengineerOriginalGriff20-Jan-20 21:12 
GeneralRe: I don't feel comfortable with this but i think it works Pin
Richard Deeming20-Jan-20 9:53
communityengineerRichard Deeming20-Jan-20 9:53 
GeneralRe: I don't feel comfortable with this but i think it works Pin
honey the codewitch20-Jan-20 10:47
mvahoney the codewitch20-Jan-20 10:47 
GeneralI am SAD Pin
MehreenTahir19-Jan-20 5:29
MemberMehreenTahir19-Jan-20 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.