Click here to Skip to main content
       

C#

 
GeneralRe: Datacache Pinmembernitin_ion9-Oct-12 17:15 
GeneralRe: Datacache PinprotectorPete O'Hanlon9-Oct-12 20:18 
GeneralRe: Datacache PinprotectorPete O'Hanlon9-Oct-12 22:01 
GeneralRe: Datacache Pinmembernitin_ion9-Oct-12 23:15 
GeneralRe: Datacache PinprotectorPete O'Hanlon9-Oct-12 23:58 
QuestionGenereate XML file from sql in C# PinmemberMd. Rayhan Kabir8-Oct-12 18:17 
AnswerRe: Genereate XML file from sql in C# PinmemberSarath C8-Oct-12 22:42 
Questionhelp in solving a problem Pinmembermichae1108-Oct-12 6:24 
Riddle:
There are eight cards divided into 4 red and to 4 black.
You have to order them correctly, so that when the first card draw (no matter what color) next card must be different from the previous. Means to get a sequence of different colors.
For example:
Array A: Contains the colors: [b, b, b, A, A, b, A, A] (right to left).
When the first card pull the other card go to the end of the fund. Then pull the other card and it should be a different card from before.
That is supposed to go after the first card retrieval array like this: [a, b, b, b, a, a, b]
After another array retrieval is such that [a, a, b, b, b, a]
More retrieval [b, A, A, b, b]
More retrieval [b, b, A, A]
More Extract [a, b, b]
More retrieval [b, A]
More retrieval [b]
More retrieval and cash cards is all over and I got a set of cards (from left to right): [b, a, b, a, b, a, b, a]
 
1. Written operation in C # which accepts an array, the operation returns true if the array can solve the riddle another lie.
2. Written a program that runs the operation and returns the correct number sequence.
3., And also if you can to build a computational model of the program (that I just started learn computational models) so it will make it easier for members of the forum to better understand the program.
 

Thank
Smile | :)
AnswerRe: help in solving a problem PinmvpRichard MacCutchan8-Oct-12 6:57 
AnswerRe: help in solving a problem PinmvpDave Kreskowiak8-Oct-12 11:00 
AnswerRe: help in solving a problem PinmvpAbhinav S8-Oct-12 17:37 
AnswerRe: help in solving a problem PinmemberPaul Conrad10-Oct-12 7:46 
QuestionUsing a datagridview to maintain SQL server database table PinmemberMember 80860588-Oct-12 1:35 
QuestionC# select part of file name Pinmemberclassy_dog7-Oct-12 16:00 
AnswerRe: C# select part of file name PinmvpAbhinav S7-Oct-12 17:47 
AnswerRe: C# select part of file name PinprotectorPete O'Hanlon7-Oct-12 20:17 
QuestionC# search for specific folder in directory Pinmemberclassy_dog7-Oct-12 10:19 
AnswerRe: C# search for specific folder in directory PinmemberRavi Bhavnani7-Oct-12 15:36 
Questioninvoke DoubleClick event Pinmemberjrahma7-Oct-12 9:03 
AnswerRe: invoke DoubleClick event PinmemberJF20157-Oct-12 9:12 
GeneralRe: invoke DoubleClick event PinmemberBobJanova9-Oct-12 0:07 
QuestionC# linq with 3 tables Pinmembersc steinhayse7-Oct-12 7:56 
AnswerRe: C# linq with 3 tables PinmemberAasif Chanandin8-Oct-12 5:11 
AnswerRe: C# linq with 3 tables Pinmembergazmendmehmeti8-Oct-12 21:52 
QuestionWhy is my control added three times? PinmemberGrooverFromHolland7-Oct-12 7:01 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 2 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid