# 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
5 years, 2 months ago

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold
- bulleted- list
• bulleted
• list
1. numbered2. list
1. numbered
2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in $$...$$ or $...$ to ensure proper formatting.
2 \times 3 $$2 \times 3$$
2^{34} $$2^{34}$$
a_{i-1} $$a_{i-1}$$
\frac{2}{3} $$\frac{2}{3}$$
\sqrt{2} $$\sqrt{2}$$
\sum_{i=1}^3 $$\sum_{i=1}^3$$
\sin \theta $$\sin \theta$$
\boxed{123} $$\boxed{123}$$

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

- 5 years, 2 months ago

Log in to reply

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.

- 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

what if it was 1000 or more digits?

- 5 years, 2 months ago

Log in to reply

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.

- 5 years, 2 months ago

Log in to reply

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.

Staff - 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

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

- 5 years, 2 months ago

Log in to reply

This is troubling me too sometimes.

- 5 years, 2 months ago

Log in to reply

Yeah I agree !!

- 5 years, 2 months ago

Log in to reply

I think such problems should be given here which anyone knowing a programming language can solve.

- 5 years, 2 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.

- 5 years, 2 months ago

Log in to reply

You should use C++ to solve all the Project Euler problems if you want to practice that language.

- 5 years, 2 months ago

Log in to reply

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.

- 5 years, 2 months ago

Log in to reply

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.

- 5 years, 2 months ago

Log in to reply

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.

- 5 years, 2 months ago

Log in to reply

I think all programming language.. to help and enhanced other programmers.. ty :)

- 5 years, 2 months ago

Log in to reply

yaa... i think tooo

- 5 years, 2 months ago

Log in to reply

Good idea!

- 5 years, 2 months ago

Log in to reply

thats great!!! i'm so excited.!!. :)

- 5 years, 2 months ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...