Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 806131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:11:46+00:00 2026-05-15T00:11:46+00:00

I am a bit stuck here and can’t think further. public struct CandidateDetail {

  • 0

I am a bit stuck here and can’t think further.

public struct CandidateDetail
    {
        public int CellX { get; set; }
        public int CellY { get; set; }
        public int CellId { get; set; }           
    }

var dic = new Dictionary<int, List<CandidateDetail>>();

How can I compare each CandidateDetail item against other CandidateDetail items within the same dictionary in the most efficient way?

Example: There are three keys for the dictionary: 5, 6 and 1. Therefore we have three entries. now each of these key entries would have a List associated with. In this case let say each of these three numbers has exactly two CandidateDetails items within the list associated to each key. This means in other words we have two 5, two 6 and two 1 in different or in the same cells. I would like to know:

if[5].1stItem.CellId == [6].1stItem.CellId => we got a hit. That means we have a 5 and a 6 within the same Cell
if[5].2ndItem.CellId == [6].2ndItem.CellId => perfect. We found out that the other 5 and 6
are together within a different cell.
if[1].1stItem.CellId == …

Now I need to check the 1 also against the other 5 and 6 to see if the one exists within the previous same two cells or not.

Could a Linq expression help perhaps? I am quite stuck here…
I don’t know…Maybe I am taking the wrong approach. I am trying to solve the “Hidden pair” of the game Sudoku. 🙂

http://www.sudokusolver.eu/ExplainSolveMethodD.aspx

Many Thanks,
Kave

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:11:47+00:00Added an answer on May 15, 2026 at 12:11 am

    Process every pair in a sequence shows how you can process every pair within a list

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a little bit stuck with the new ContactsContract-API here. I think I don't
I'm a bit stuck trying to get box2D to compile and I think it's
Im a bit stuck with my lighting. My light can light up meshes but
I am a bit stuck on how I should model this out. Here is
I'm a bit stuck on what is probably a common situation, but can't find
I'm experimenting with WPF animations, and I'm a bit stuck. Here's what I need
I'm stuck with a bit of a problem here. I'm importing data from a
bit stuck try to achieve something in Jquery and wondered if anyone can assist..
I'm a little bit stuck with my poor knowledge of Symfony2 and Doctrine. Here
I'm a bit stuck on this. Basically I want to do something like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.