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..

## Comments

Sort by:

TopNewestIt'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, 7 months ago

Log in to reply

– Mizanul Hoq Chowdhury · 3 years, 7 months ago

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.Log in to reply

– Tim Vermeulen · 3 years, 7 months ago

I've been using Python, Mathematica and C to solve the problems, it's not Python-only.Log in to reply

– Mizanul Hoq Chowdhury · 3 years, 7 months ago

I am using C++ but here you can't easily maintain a 40 digit big integer or more big number like python or mathematica .Log in to reply

– Mayank Kaushik · 3 years, 7 months ago

you can use array to store such big numbers and treat every element of array as a single digitLog in to reply

– Mizanul Hoq Chowdhury · 3 years, 7 months ago

It is much more complex to store such a big number in an array and use it in calculation like multiplication.Log in to reply

– Soham Chanda · 3 years, 7 months ago

what if it was 1000 or more digits?Log in to reply

– Tim Vermeulen · 3 years, 7 months ago

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.Log in to reply

doesn't work by magic. – John Smith Staff · 3 years, 7 months ago

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 itselfLog in to reply

– Thaddeus Abiy · 3 years, 7 months ago

Yeah,Im not very familiar with languages outside python but I think C++ has a downloadable library that consists of bigint and bigfloat handling.Log in to reply

– Tim Vermeulen · 3 years, 7 months ago

Right. But even if it didn't, if you can code in C++, then it takes little to no effort to learn Python.Log in to reply

– Zi Song Yeoh · 3 years, 7 months ago

This is troubling me too sometimes.Log in to reply

– Abhishek Singh · 3 years, 7 months ago

Yeah I agree !!Log in to reply

I think such problems should be given here which anyone knowing a programming language can solve. – Zawad Abdullah · 3 years, 7 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, 7 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, 7 months ago

Log in to reply

– Thaddeus Abiy · 3 years, 7 months ago

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.Log in to reply

– Tim Vermeulen · 3 years, 7 months ago

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.Log in to reply

– Thaddeus Abiy · 3 years, 7 months ago

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.Log in to reply

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

Log in to reply

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

Log in to reply

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

Log in to reply

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

Log in to reply