Find Jobs
Hire Freelancers

Cryptarithms

$10-30 USD

Complété
Publié il y a environ 3 ans

$10-30 USD

Payé lors de la livraison
// 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
N° de projet : 30093887

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 3 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
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 en 1 jour
4,9 (30 commentaires)
4,4
4,4

À propos du client

Drapeau de SAUDI ARABIA
Dee, Saudi Arabia
0,0
0
Méthode de paiement vérifiée
Membre depuis mai 5, 2021

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.