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

#FeatureRequests

Note by Mizanul Hoq Chowdhury
7 years, 10 months ago

No vote yet
13 votes

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. 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 1

paragraph 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×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

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 - 7 years, 10 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.

Mizanul Hoq Chowdhury - 7 years, 10 months ago

Log in to reply

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

Tim Vermeulen - 7 years, 10 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 - 7 years, 10 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 - 7 years, 10 months ago

Log in to reply

@Mayank Kaushik what if it was 1000 or more digits?

Soham Chanda - 7 years, 10 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 - 7 years, 10 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 - 7 years, 10 months ago

@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 - 7 years, 10 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 - 7 years, 10 months ago

@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 - 7 years, 10 months ago

@Mizanul Hoq Chowdhury This is troubling me too sometimes.

Zi Song Yeoh - 7 years, 10 months ago

Log in to reply

@Zi Song Yeoh Yeah I agree !!

A Former Brilliant Member - 7 years, 10 months ago

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

Jayson Presto - 7 years, 10 months ago

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

Eric Edwards - 7 years, 10 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 210002^{1000}' seems like cheating.

Thaddeus Abiy - 7 years, 10 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.

Tim Vermeulen - 7 years, 10 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 - 7 years, 10 months ago

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 - 7 years, 10 months ago

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

Zawad Abdullah - 7 years, 10 months ago

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

Jayson Presto - 7 years, 10 months ago

Good idea!

Víctor Mandujano Gutierrez - 7 years, 10 months ago

yaa... i think tooo

Ankit Mahalka - 7 years, 10 months ago
×

Problem Loading...

Note Loading...

Set Loading...