Click here to Skip to main content
15,349,321 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.

 
GeneralWindows 21H1 and Command Prompt Window Colors Pin
David A. Gray16-Jun-21 19:49
MemberDavid A. Gray16-Jun-21 19:49 
GeneralRe: Windows 21H1 and Command Prompt Window Colors Pin
OriginalGriff16-Jun-21 20:14
mveOriginalGriff16-Jun-21 20:14 
GeneralRe: Windows 21H1 and Command Prompt Window Colors Pin
David A. Gray16-Jun-21 20:39
MemberDavid A. Gray16-Jun-21 20:39 
GeneralRe: Windows 21H1 and Command Prompt Window Colors Pin
pkfox16-Jun-21 21:38
professionalpkfox16-Jun-21 21:38 
GeneralRe: Windows 21H1 and Command Prompt Window Colors Pin
David A. Gray16-Jun-21 22:33
MemberDavid A. Gray16-Jun-21 22:33 
GeneralRe: Windows 21H1 and Command Prompt Window Colors Pin
Cp-Coder17-Jun-21 1:59
MemberCp-Coder17-Jun-21 1:59 
RantGah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 18:23
mvahoney the codewitch16-Jun-21 18:23 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
Jon McKee16-Jun-21 18:43
professionalJon McKee16-Jun-21 18:43 
honey the codewitch wrote:
Except I need to subtract instances. For example, when I have pair (A,B) and pair (B,A), I should only accept one.

You're looking for combinations not permutations. I really like this site for basic math stuff. They do a good job of making things approachable without getting too into the weeds.

TL;DR: You're looking for something like n!/(r!(n - r)!) where n is the number of things to choose from and r is how many you choose, where there are no repetitions and order doesn't matter.
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 18:45
mvahoney the codewitch16-Jun-21 18:45 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
Jon McKee16-Jun-21 18:54
professionalJon McKee16-Jun-21 18:54 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 19:13
mvahoney the codewitch16-Jun-21 19:13 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 19:17
mvahoney the codewitch16-Jun-21 19:17 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
Jon McKee16-Jun-21 20:37
professionalJon McKee16-Jun-21 20:37 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 21:20
mvahoney the codewitch16-Jun-21 21:20 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
NeverJustHere16-Jun-21 20:20
MemberNeverJustHere16-Jun-21 20:20 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
enhzflep16-Jun-21 23:35
Memberenhzflep16-Jun-21 23:35 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
CPallini16-Jun-21 19:10
mveCPallini16-Jun-21 19:10 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 19:15
mvahoney the codewitch16-Jun-21 19:15 
QuestionRe: Gah! When you're so close to an answer but it is so far away Pin
CPallini16-Jun-21 20:26
mveCPallini16-Jun-21 20:26 
AnswerRe: Gah! When you're so close to an answer but it is so far away Pin
Caslen17-Jun-21 1:06
MemberCaslen17-Jun-21 1:06 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
CPallini17-Jun-21 1:18
mveCPallini17-Jun-21 1:18 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
Caslen17-Jun-21 1:56
MemberCaslen17-Jun-21 1:56 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
OriginalGriff16-Jun-21 20:01
mveOriginalGriff16-Jun-21 20:01 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
honey the codewitch16-Jun-21 20:05
mvahoney the codewitch16-Jun-21 20:05 
GeneralRe: Gah! When you're so close to an answer but it is so far away Pin
Fueled By Decaff16-Jun-21 22:37
MemberFueled By Decaff16-Jun-21 22:37 

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.


Straw Poll

What language are you using for AI development or learning?
Whether you're at work or home, hard core coding or just trying to figure out this AI thing, which languages have you used in your adventures?
  Results   154 votes