Find Jobs
Hire Freelancers

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

$10-30 USD

Cancelled
Posted over 8 years ago

$10-30 USD

Paid on delivery
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.
Project ID: 9574859

About the project

12 proposals
Remote project
Active 8 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
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 day
4.9 (43 reviews)
4.6
4.6
12 freelancers are bidding on average $26 USD for this job
User Avatar
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 days
4.9 (1090 reviews)
7.5
7.5
User Avatar
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 day
5.0 (38 reviews)
6.4
6.4
User Avatar
Hi I have 11 years of experience. I would like to optimize your code.
$35 USD in 2 days
4.9 (17 reviews)
4.6
4.6
User Avatar
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 day
5.0 (1 review)
1.8
1.8
User Avatar
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 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi i have both the solutions . u cud ping me for the solutions. .
$35 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
New Kensington, United States
4.2
71
Payment method verified
Member since Apr 7, 2006

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.