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 7076561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:18:47+00:00 2026-05-28T06:18:47+00:00

this is a very specific question, but i also have very specific details on

  • 0

this is a very specific question, but i also have very specific details on what i’m looking for. i currently do not have (and cannot find) a good method for accomplishing this. please help if you can.

i have an integer list that will always contain 4 items and 3 of the items will always end in the same digit. i need to some how extract the 1 item that has a unique final digit. the unique item will not always be in the same location in the list and all numbers in the list will be a value from 0-40 (so one to two digits).

example list contents: 12,22,27,32. i need a method to return or extract the 27.

example 2: 4,13,23,33. i would need to return 4.

the solution should either remove the 3 repeated final digit numbers from the list or possibly create just a standard int variable with the unique value.

i’ve tried converting to a string and gather that character and have this ridiculous function that tests the integer length (number of digits) and adds just the end digit to another list and some comparison code. it’s just really ridiculous. if you know of any ideas i should try, please let me know, thanks in advance.

  • 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-28T06:18:48+00:00Added an answer on May 28, 2026 at 6:18 am

    Assuming numbers is some iterable of integers:

    int unique = numbers.GroupBy(i => i % 10).Single(g => g.Count() == 1).Single();
    

    This groups the numbers by their last digit, pulls out the only group with a single member, and returns its only member.

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

Sidebar

Related Questions

I imagine this is not a very specific programming question. But have you tried
This is a very narrow and specific question, but I know there are someone
First of I'm very sorry but this questions is not so so specific. All
the title might be too generic, but I have a very specific question about
This question might seem very specific but I am in need of some ideas
This is a very general question but it's based on a specific problem. I've
This question may be very specific, but I'm new to all this and really
I don't have a specific question here but I'm more looking for some guidance
This is a very specific question regarding MySQL as implemented in WordPress . I'm
This is a very specific question which will probably earn me the tumbleweed badge,

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.