Hello Brilliantians!

Though the computer science section is back on Brilliant, I see the questions that very previously asked are still Python oriented. But its a high time that Brilliant ought to present C.S. questions in a more general way. I bet this request is not only mine; many members out there might have a similar opinion.

Also, I had a recent experience while trying to solve this question. As the majority of coders are python, I can't almost read their codes and spot bugs or learn something new from them .

So, please, please update and post problems that the users are free to solve in any language.

Thanks!

P.S. I have no grudge against Python but I want this vibrant community to use other languages also.

Note by Kou\$htav Chakrabarty
5 years, 10 months ago

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.

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}$

Sort by:

Yeah, I also was facing this problem. I was able to understand the outline of the program but was having difficulties since I am not fully familiar with the syntax of Python codes. I myself use Turbo C++. There are many problems in this C.S. section which require calculation of higher factorials,etc. In Python, many people gave solutions using in-built functions but it cannot be done in Turbo C++. I was having some problems using the long data type to store high numerical values and so couldn't solve some problems that I know how to solve because of not being able to store the values properly.

It is also my request to provide problems that are in compliance with C++/C/Java users so that given code can be understood by all.

- 5 years, 10 months ago

My advice - please don't use Turbo C++ - it's outdated and doesn't implement modern C++ features (like the STL) and also new data types(like the long long data type). I also used Turbo C++ for learning but when I was sure I understood some technical details, I switched to MinGW and VC++. You'll do better if you use them for solving competitive programming poblems.

P.S. Are you taught C.S. at school in TC ?

- 5 years, 10 months ago

Yes, since Turbo C++ is good for understanding and practising programs easily, that's why even our C.S teacher tells to use Turbo C++. Now, the thing is that I have been learning and writing C++ programs since class VII. But I have no idea about the latest C++ standards and the new versions of C++. It would be a great help if you could give me links of the latest versions of C++. Thanks in advance..

- 5 years, 9 months ago

Yeah I agree that TC++ is a good place to start, learn and grasp concepts but maybe is not the best tool to make major programs like 2D games, scientific programs etc. I myself started C++ with TC++ in class XI. When you participate in discussions in sites like http://www.cplusplus.com/ and http://www.codechef.com/, you'll automatically come to know the current trends. I also learnt a lot og things from the users on those sites

So, here are my recommendations:

1. If you're on Windows, use Code::Blocks/Eclipse/Netbeans/Visual Studio with compilers MinGW or VC++.

2. try to learn the process of program debugging(it's not simply making the program error free!), modern enivronment and environment variables etc here for C::B and here for Visual Studio.

As for C++ which is more important, you can firstly browse through the Reference section to know about the latest C++ standard (C++11 or C++0x). Still better, you can read this thread to find good books(scroll down). Here is a quick link for downloading one of my favourite books on C++, especially C++ Language Standard by Herbert Schildt.

Hope that helped! Drop me a line if you need more help :)

- 5 years, 9 months ago

I am with you.

- 3 years, 10 months ago