Waste less time on Facebook — follow Brilliant.
×

C++ Based Programming Problems For Computer Science Section.

I hope Brilliant should create C++ based programming problem set (I mean like ACM programming problems) and a section for Computer Science in the Practice section having some tips and tricks in computer programming and some discussion on important programming technique like Greedy, Backtracking, Branch and bound etc..

Note by Mizanul Hoq Chowdhury
3 years, 11 months ago

No vote yet
13 votes

Comments

Sort by:

Top Newest

It's not very likely they'll make it C++ specific. The idea was that anyone knowing a programming language could try the problems, no matter what language. Tim Vermeulen · 3 years, 11 months ago

Log in to reply

@Tim Vermeulen programming problem given here mainly for python. Actually to work with a big integer number python is the best way. it is very difficult to maintain it in C++ or other languages. So those who knows python will have some advantage here. I am telling that they should focus on ACM programming problem. Mizanul Hoq Chowdhury · 3 years, 11 months ago

Log in to reply

@Mizanul Hoq Chowdhury I've been using Python, Mathematica and C to solve the problems, it's not Python-only. Tim Vermeulen · 3 years, 11 months ago

Log in to reply

@Tim Vermeulen I am using C++ but here you can't easily maintain a 40 digit big integer or more big number like python or mathematica . Mizanul Hoq Chowdhury · 3 years, 11 months ago

Log in to reply

@Mizanul Hoq Chowdhury you can use array to store such big numbers and treat every element of array as a single digit Mayank Kaushik · 3 years, 11 months ago

Log in to reply

@Mayank Kaushik It is much more complex to store such a big number in an array and use it in calculation like multiplication. Mizanul Hoq Chowdhury · 3 years, 11 months ago

Log in to reply

@Mayank Kaushik what if it was 1000 or more digits? Soham Chanda · 3 years, 11 months ago

Log in to reply

@Soham Chanda Arrays can be as long as you want, but indeed, it's not so easy to work with. I'm pretty sure that there are libraries available that can cope with such numbers. Tim Vermeulen · 3 years, 11 months ago

Log in to reply

@Tim Vermeulen That's a great point: libraries like this are definitely available; moreover, it is not a bad exercise in C/C++ to implement such a library yourself! After all, Python itself doesn't work by magic. John Smith Staff · 3 years, 11 months ago

Log in to reply

@Tim Vermeulen Yeah,Im not very familiar with languages outside python but I think C++ has a downloadable library that consists of bigint and bigfloat handling. Thaddeus Abiy · 3 years, 11 months ago

Log in to reply

@Thaddeus Abiy Right. But even if it didn't, if you can code in C++, then it takes little to no effort to learn Python. Tim Vermeulen · 3 years, 11 months ago

Log in to reply

@Mizanul Hoq Chowdhury This is troubling me too sometimes. Zi Song Yeoh · 3 years, 11 months ago

Log in to reply

@Zi Song Yeoh Yeah I agree !! Abhishek Singh · 3 years, 11 months ago

Log in to reply

I think such problems should be given here which anyone knowing a programming language can solve. Zawad Abdullah · 3 years, 11 months ago

Log in to reply

I disagree. Computer science is a language-agnostic field. C++ is just as capable as any other general-purpose programming language. Why should the section be based on C++ instead of, for example, Racket, Erlang, Ruby, JS, or Scala?

I do agree that the CS section should involve more algorithms and techniques. Adrian Duong · 3 years, 11 months ago

Log in to reply

You should use C++ to solve all the Project Euler problems if you want to practice that language. Eric Edwards · 3 years, 11 months ago

Log in to reply

@Eric Edwards Good point.Python's integer handling is so good,using it to solve some problems on PE like 'finding the last three digits of \(2^{1000}\)' seems like cheating. Thaddeus Abiy · 3 years, 11 months ago

Log in to reply

@Thaddeus Abiy The first few problems are indeed easier with Python than with C++, but once you get past problem 100 or so, I'd say it doesn't make that much of a difference. Tim Vermeulen · 3 years, 11 months ago

Log in to reply

@Tim Vermeulen Yes. But actually there are times when you can take advantage of unique features in python that are surprisingly fast. For example, a combination of a set of a primes and an "if....in..." statement makes an extremely efficient primality that beats even the miller-rabin test(Of course the size of the primes are limited compared to the miller rabin test). Thus a general solution that may look like a slow brute force solution is efficient because of it uses a feature unique to the python language. Thaddeus Abiy · 3 years, 11 months ago

Log in to reply

I think all programming language.. to help and enhanced other programmers.. ty :) Jayson Presto · 3 years, 11 months ago

Log in to reply

yaa... i think tooo Ankit Mahalka · 3 years, 11 months ago

Log in to reply

Good idea! Víctor Mandujano Gutierrez · 3 years, 11 months ago

Log in to reply

thats great!!! i'm so excited.!!. :) Jayson Presto · 3 years, 11 months ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...