Find Jobs
Hire Freelancers

Code two optimal solutions to simple coding challenges in generic C++ for Linux

$10-30 USD

Abgesagt
Veröffentlicht vor mehr als 8 Jahren

$10-30 USD

Bezahlt bei Lieferung
You will be given a simple project that involves coding about a 100 to 200 line C++ project to complete a coding challenge. You can not use STL, boost, third party software, or any of the new features of C++ 11/14/17. I am looking for a super optimal solution so I can impress my friends who I am competing against. If you do well on this challenge, I will hire you for more coding challenges. There are two coding challenges. I have already coded them myself and it took me about 1 hour to do both and my version took 100 lines of code. If you bid on this project, I will send you a PDF describing the challenges because I don't want the challenges to be public. Also, you can IM me for the project description prior to bidding. Thank you.
Projekt-ID: 9574859

Über das Projekt

12 Vorschläge
Remote Projekt
Aktiv vor 8 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hello, I am a Software Engineer and a competitive programmer and I have been using C++ for all my projects and coding contests. I currently rank 493 out of almost 38000 competitive programmers. Link to check - [login to view URL] Since I have a lot of experience in coding with C++, I can assure you that I will be able to complete the task that you specify and deliver it to you WITHIN 15 MINS from starting the project. Hoping to work with you. Thank You.
$20 USD in 0 Tag
4,9 (43 Bewertungen)
4,6
4,6
12 Freelancer bieten im Durchschnitt $26 USD für diesen Auftrag
Avatar des Nutzers
Hello. Perhaps, we worked together before. Can you send more details about your assignment? Hope, my previous solution was enough optimized..
$27 USD in 3 Tagen
4,9 (1090 Bewertungen)
7,5
7,5
Avatar des Nutzers
Hello, I teach C++. Here is a quickly coded up solution for you. It should be quite optimised, by avoiding unnecessary /redundant IF conditions/checks(and so on). If you like it , I can do the other one for you, once the bid is accepted. #include <stdio.h> int GetMaxNumWordsInSentence (char *str) { int nTotWords=0; // total words found in loongest sentance int nWordCount=0,i=0; bool bInMiddleOfWord=false; char ch=0; for (i=0; str[i] != '\0' ; i++) { ch = str[i]; if(!bInMiddleOfWord) { if( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) { bInMiddleOfWord = true; } } else { if (ch == ' ') // end of word encountered { nWordCount++; bInMiddleOfWord = false; } else if (ch == '.' || ch == '!' || ch == '?') // end of sentance encountered { if(++nWordCount > nTotWords) // compare number of words found in last sentance, with num of words in this sentance nTotWords = nWordCount; nWordCount =0; } } }// end for return nTotWords; } int main(int argc, char *argv[]) { char szBuffer[100]= "We will see what the time is. Happy Hour is now?"; int sol = GetMaxNumWordsInSentence(szBuffer); printf("\n\rLongest sentance contained %d words\n\r", sol); char szBuffer2[100]= "Fore score and seven years ago.  This is a great car!"; int sol2 = GetMaxNumWordsInSentence (szBuffer2); printf("\n\rLongest sentance contained %d words\n\r", sol2); printf("\n\rHelllo world!\n\r"); return 0; }
$35 USD in 1 Tag
5,0 (38 Bewertungen)
6,4
6,4
Avatar des Nutzers
Hi I have 11 years of experience. I would like to optimize your code.
$35 USD in 2 Tagen
4,9 (17 Bewertungen)
4,6
4,6
Avatar des Nutzers
I have an 8+ yrs working with C/C++ that includes image processing , device drivers , communication protocol stakcs and what not. lets see what you have got as a challenge
$25 USD in 1 Tag
5,0 (1 Bewertung)
1,8
1,8
Avatar des Nutzers
I am enrolled in undergraduate program of BS(Computer Sciences). Right now, I am in my final year and since our first semester, we are taught C++ and we've been working in C and C++. So, right now, I've full grip over C++ including all of its concepts like Structs, Classes, Inheritance, Polymorphism, etc.
$15 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
I am an algorithmic problem solver and i am solving algorithmic challenges for 3 years in different web sites, i have participated in several online & onsite programming contests including ICPC-2015 Dhaka Regional. You can give me shot and I can guaranty you that you won't be disappointed.
$15 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Maintaining a rank in top 10000 on spoj makes me the best candidate for this . Also I am not alone ,,, I can easily do both of your questions you specified....just message me and I will send you their solutions Please give me a chance
$15 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
hi i have both the solutions . u cud ping me for the solutions. .
$35 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
New Kensington, United States
4,2
71
Zahlungsmethode verifiziert
Mitglied seit Apr. 7, 2006

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.