FAQs

Here you can ask any question related to any of my problems.

Note by Milan Milanic
5 years, 2 months ago

No vote yet
1 vote

  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

Can you provide the file APCS.rar through torrent or maybe split the file across different files? Or maybe through some other file-sharing service (i.e., not dropbox) ?

I have a crappy internet connection and Dropbox starts the download in the browser itself and the download fails everytime after about 20 MB of the file is downloaded and the broken download doesn't resume. I have tried downloading it for about 4-5 times by now and it fails every time. :(

Personally, I'd recommend sharing the text file through Pastebin.

Prasun Biswas - 5 years, 1 month ago

Log in to reply

Oh, I did not know that. The CS committee in my country uses dropbox often, so I figured it is quite good. But hearing this, I will start using Pastebin.

Thanks for the information. I really didn't know. I seek to constantly evolve....

Milan Milanic - 5 years, 1 month ago

Log in to reply

Yt?

Francis Octavius - 4 years, 11 months ago

Log in to reply

@Francis Octavius I am not sure for what "Yt" stands for. So if it is not a problem, I would appreciate the explanation.

Milan Milanic - 4 years, 11 months ago

@Prasun Biswas if the file is lesser than 20MB are there any problems with downloading via dropbox? The thing is, dropbox is quite handy, for me at least, and if I can use it for smaller files, I would do so.

Milan Milanic - 5 years, 1 month ago

Log in to reply

@Milan Milanic you can test out behavior of dropbox on bad connections by using the "network conditioning" feature in the Chrome browser dev tools. See here for quick instructions.

Silas Hundt Staff - 5 years, 1 month ago

Never mind, I was able to download it completely later. Nice problem, but I'd like to ask: Does the optimal solution to that problem take 20 secs to run on your PC or on some standard code-testing site? I wrote a code in python that I think takes more or less O(n)O(n) time to execute and its runtime is ~40 secs on my PC.

If the 20 secs is the time to run on your PC, may I know your PC configuration so that I may be able to test the code in such a CPU configuration? Or maybe I can send you my code via email and you can test if it runs in less than 20 secs in your system or not? I'd like to optimize my code as much as possible. Thanks! :)

Prasun Biswas - 5 years, 1 month ago

Log in to reply

@Prasun Biswas I am sorry that I did not post the required file on torrent or some other site. I am having some problems with that.

But, never mind that, I will post the file eventually. I am glad that You solved it correctly, you are the first solver! Congrats :)

What I wanted to tell with this reply, finally, do You want to discuss this via Slack?

Milan Milanic - 5 years, 1 month ago

Log in to reply

@Milan Milanic Sure, what's your username on Slack? I can't seem to find you in the Brilliant-Lounge...

Prasun Biswas - 5 years, 1 month ago

I don't think I understood this question. Can you please rephrase it / explain to me?

Pi Han Goh - 4 years, 10 months ago

Log in to reply

In file called "AinA.txt", an array is given. The array is described in the following manner: First, a number is given, and it represents how many elements the array has. That is 105 10^5 . The following 105 10^5 numbers are elements of that array. Now, it is asked to find how many special sub-arrays exist in the given array. Those special sub-arrays have two properties/characteristics. First one, they have to have at least 2 elements. Second one, the first number and the last one of the sub-array have to be the same number. One more example:

Array has 4 elements: 1 2 2 3

Here we have 4 sub-arrays that have exactly one element {1} , {2}, {2} and {3}, but since they have only one element, they aren't qualified.

Next, we have 3 sub-arrays with exactly 2 elements in it, those are: {1, 2}, {2, 2} and {2, 3}. From these, only {2, 2} satisfies both properties, so: one qualified sub-array for now.

With 3 elements, there are 2 sub-arrays: {1, 2, 2} and {2, 2, 3}. Here, both sub-arrays do not satisfy the second property (first and last the same).

Lastly, there is one sub-array with for elements, and it is the actual starting array {1, 2, 2, 3} and he does not satisfy the second condition either.

Conclusion: There is only one special sub-array (and it is {2, 2}) in the initially given array ( {1, 2, 2, 3} ). So the answer for this example is 1 \boxed{1} . I hope I managed to explain it to some extent and I do apologise for my late response and any other unconviniences, I am in a bit of a haste, and away from home. Good luck :)

Milan Milanic - 4 years, 10 months ago

Log in to reply

Understoooood!!!! Thank you

Pi Han Goh - 4 years, 10 months ago

I just managed to solve the king's problem. I really liked that problem and would like to thank you for posting it.

Levent B - 4 years, 5 months ago

Log in to reply

Thank you kindly for the encouragement! I am glad to hear so. I will try to come up with prospectively exciting and fun problem in the future. All the best.

Milan Milanic - 4 years, 5 months ago

Why did you provide input data as a .dat file?

Silas Hundt Staff - 5 years, 1 month ago

Log in to reply

Depends on my mood and the time of the day.

No special reason to be honest. I just pick the one randomly, .in .dat .bin or with no extension. Probably there is some difference between them, but with my knowledge, I cannot tell for sure.

Milan Milanic - 5 years, 1 month ago

Log in to reply

The issue is that .dat on many systems (Mac OS X, Ubuntu) is often classified as a video file by the OS which makes it mildly difficult to inspect. I think .txt would be more appropriate.

Silas Hundt Staff - 5 years, 1 month ago

Log in to reply

@Silas Hundt Ubuntu on my computer did not show that issue. But anyhow, what is your opinion, should I re-upload the same file with textual extension or it is not necessary?

Milan Milanic - 5 years, 1 month ago

Log in to reply

@Milan Milanic I'd re-upload as .txt that has been gzipped so <file-name>.txt.gz.

Silas Hundt Staff - 5 years, 1 month ago

Log in to reply

@Silas Hundt Now, the document has the textual extension, if my eyes are not deceiving me. I am grateful to You, for notifying and advising me. I look forward to our mutual interacting.

Milan Milanic - 5 years, 1 month ago

Yeah I agree, and 29MB is a bit too much!!

Beakal Tiliksew - 5 years, 1 month ago

Log in to reply

There are 10 million numbers in that file after all. That number of numbers is somewhat necessary to test the optimization of the solver's code. With the right optimization, I think the run time is about 10 seconds.

Milan Milanic - 5 years, 1 month ago

Log in to reply

@Milan Milanic I see, better get to downloading then :(

Beakal Tiliksew - 5 years, 1 month ago

Hello Milan, in your EOTR problem you state that S=5*sqrt(6). I wonder what you mean by this. Best regards, Wim

Wim Kerstens - 5 years ago

Log in to reply

I understand. I thought that especially this may represent a problem, but I haven't provided better explanation for some reason. I will add a better explanation what the S S actually is in the problem, but I will explain it here as well.

The standard EOTR has a rectangle ABCD ABCD for its base and points P P and Q Q for its "main peak points", so that the PQ PQ is so called "peak line". It is said that the length of the following segments: AP, DP, BQ and CQ must be the same. That length is labelled as that S S . So, it means that AP=DP=BQ=CQ=56 AP = DP = BQ = CQ = 5\sqrt{6} . I edited some minor text in the problem, would You mind checking it out and informing me whether it is more understandable now? :)

Thank You for pointing this out. If you have any more questions, use this FAQ note again. :)

Best regards

Milan Milanic - 5 years ago

For clarification, on this problem (https://brilliant.org/problems/creating-sorted-arrays/?ref_id=1280451), is the array always in the form of {1, 2, 3, ..., m}?

Levent B - 4 years, 4 months ago

Log in to reply

Two numbers are given: m m and n n . n n says that number of elements of the array in the problem is exactly n n , while m m says that elements of the array are positive integers lesser or equal to m m . Another important thing is that the array must be strictly increasing. Example (in the case I did not cover everything):

n = 2, m = 3: Array = a1 a_1 , a2 a_2 ; and the the possible values for elements are from set {1, 2, 3}. For this trivial example, answer is 3 \boxed{3} and those arrays are:

  • A1=1,2 A_1 = 1, 2
  • A2=2,3 A_2 = 2, 3
  • A3=1,3 A_3 = 1, 3

Do you think that I should perhaps provide example for the problem (within the problem itself)?

Milan Milanic - 4 years, 4 months ago

Log in to reply

Thank you that makes much more sense to me now. I think not understanding was just a problem on my part, but you can never go wrong with including an example.

Levent B - 4 years, 4 months ago

Do you accept crypto payments?

Adam Rifae - 3 years, 6 months ago

Log in to reply

Not really : /

Milan Milanic - 3 years, 6 months ago

Log in to reply

is there interest of making it possible payment in the future?

Adam Rifae - 3 years, 6 months ago

Log in to reply

@Adam Rifae There may be an interest, or not, depends whether there is a reason. So far there are no reasons to put in that extra effort. Why do you ask that?

Milan Milanic - 3 years, 5 months ago
×

Problem Loading...

Note Loading...

Set Loading...