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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:27:45+00:00 2026-05-16T10:27:45+00:00

Hello fellow Computer People! I could do this myself, but was just wondering if

  • 0

Hello fellow Computer People!

I could do this myself, but was just wondering if there was a more efficient way that I haven’t though of:

I have two NSMutableDictionaries. Let us use these as an example:

Dictionary 'Madrid'

 Bob     : 54
 Thomas  : 32
 Frank   : 20


Dictionary 'Barcelona'

 Bob     : 1100
 Thomas  : 32
 Ed      : 55
 Frank   : 20

What I want to get from comparing these two is:

  1. The fact that the value for Bob is different between the two Dictionaries
  2. That Frank has a value in Barcelona, but was not at all in Madrid.

This is for monitoring a sort of time series to see if any activity is happening from one iteration to the next.

Obviously this should be dealt with in Objective-C.

Any opinions on the most efficient way of doing this?

Thanks so much!

  • 1 1 Answer
  • 4 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-16T10:27:45+00:00Added an answer on May 16, 2026 at 10:27 am

    Probably the best way would involve a simple loop through one of the dictionaries, then check to see if you missed any keys in the other dictionary. Since dictionaries are involved it would only be O(N)

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

Sidebar

Related Questions

Hello Fellow Computer People! Anyone willing to help will have my gratitude ;) Just
Hello fellow computer people :) I have a shell script that I will use
Hello fellow developers... just to make sure, I want to ask this question: How
Hello fellow Grails Developers! I was wondering if you could help me with what
Hello there fellow Stackers! I wonder if anybody could tell me what the following
Oh hello there, fellow SO members, I have a web service that returns XML
Hello Fellow Matlab Users, I was wondering if anyone could provide me with some
Hello fellow python users, I bring forth a question that I have been wondering
Hello there fellow programmers, I am wondering how to add the SDNestedTable into a
I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/

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.