Find Jobs
Hire Freelancers

Cryptarithms

$10-30 USD

Completed
Posted about 3 years ago

$10-30 USD

Paid on delivery
// Loop over the columns using the assumption that the sum word is at least as long as any addend int carry = 0; for (int i = 0; i < [login to view URL]().size(); ++i) { // Loop over all the addends int sum = carry; for (int j = 0; j < [login to view URL]() - 1; ++j) { // Check if the addend has a character in this column if (i >= words[j].size()) { // Nope continue; } // If the character at words[j][words[j].size() - 1 - i] has multiple options, we can stop and // say from the addition, it is a partial solution if (…) { return partial; } // Add the character at …(same as above)… to the sum } // Check that the sum % 10 matches the correct letter of the sum word, // return invalid if not (and partial if the letter is unknown) carry = sum / 10; } // If you got here, all the sums seem to line up, make sure the carry is 0 to be sure then conclude either valid or invalid
Project ID: 30093887

About the project

1 proposal
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Heyy I am C++ coder and I have experience of more than 5years.I have read your description and would like to work for you.I have already implemented many algorithms and developed many games and management systems using oop and data structures concept and I would like to work for you also Message me so that we can start this Regards Hamza
$20 USD in 1 day
4.9 (30 reviews)
4.4
4.4

About the client

Flag of SAUDI ARABIA
Dee, Saudi Arabia
0.0
0
Payment method verified
Member since May 5, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.