+ 24
[ASSIGNMENT] : : : (_ _n1 terms) "A" (_ _n2 terms)"B" (_ _n3 terms) "C" (_ _n4 terms) [n1+n2+n3+n4=n-3]
Your task is to make a program to find the number of ways in which A,B,C,D,E ... n terms , can be arranged in such a fashion that 'A' comes before 'B' & 'B' comes before 'C' . Example : For input n=4 , we need to make combinations of A,B,C,D according to condition , [ABCD,ABDC,ADBC,DABC] => in these combination 'A' comes before 'B' & 'B' comes before 'C' . //total of 4 combinations we got for n=4 [satisfying condn] note : n can be from 3 to 26 [obviously] ย ย ย ย ย ย ย ย ย ย ย ย ๐ALREADY SUBMITTED AS ASSIGN.๐
20 Answers
+ 19
CipherFox
I still can't understand how challenges are OFF-TOPIC ๐ค
the challenges given are related to programming...
There are millions of people here
everyday people post challenges
sololearn can't approve all of them...
but people here need challenges daily ...
don't misunderstand my comment I also encourage people regarding submitting assignment
but u guys don't discourage people from posting them in Q&A...
+ 15
//solved , no negativity
+ 13
@~ swim ~
correct , there is some different way also to approach to problem ... but will might not be able to print possible combinations
//find it to avoid time-limit-exceeded ... best of luck ๐
//now feels like challenge is challenge after some question-related answers & discussion ๐
+ 13
CipherFox
//every new challenge post should have "assignment" tag ?
๐for conformation to guide new challenge makers to add this tag "assignment"
+ 12
give this a try , will check the soln's late
//bonus for printing combn :: type ๐normal
//printing no. ::: type ๐easy
/* will check them later , btw U guys are like team ... check each other's code ๐*/
+ 11
@CipherFox
๐U did something more than "off-topic" header . [I mentioned]
//be careful , not to modify the things unnecessarily than req.
//okh no p. , i don't want to continue & waste time ... until final decision come .
//edit : U'll never read carefully ๐
... no p. forget , U too have a good one bye
+ 10
CipherFox [ Assignment ]๐ค
+ 8
๐DT๐
Gaurav Agrawal
Russ
See the recent answers to this thread: https://www.sololearn.com/Discuss/1160982/?ref=app
Also, this protocol is currently being reviewed and may change within the next hour or two due to confusion. If it does change, all OFF-TOPIC headers on challenge-threads will be removed. Stay tuned.
+ 8
Update: The moderators have decided that it'd be best to develop a new header/tag to address user-created challenge-threads, since some users have expressed their dissatisfaction with the [OFF-TOPIC] header being used. It was never the moderators' (nor my) intention to upset users.
Feel free to remove the [OFF-TOPIC] header. I will begin undoing all threads that I've marked thus-far. Please note, however, that one or two new headers may be introduced to take the place of [OFF-TOPIC] on challenge-threads. There are two kinds of challenges within SoloLearn: user-created (code) challenges and user-vs-user (quiz-based) challenges. We're currently looking into methods of distinguishing between the two types, so that any future confusion/complications with the Q&A's search-functionality can be avoided.
Also, just to address a concern having to do with the off-topic header/tag in-general:
The headers do not, in any way, lower the value of a post. They are primarily meant to prepare SoloLearn's forum for reorganization, where threads will be automatically sorted very quickly based on their headers and their tags. That is the only purpose for the headers (and the accompanying/affiliated tags). They are only being used for the time being, and will cease to exist after SoloLearn reorganizes the Q&A.
Again, feel free to remove the OFF-TOPIC headers from all CHALLENGE threads/posts for now. I (or another moderator) will post a thread with information on the new unique headers that will be used for both versions of challenge-based posts. I will return and link the thread here, afterward.
Update: The header to be used to categorize user-created challenges will now be [ASSIGNMENT].
+ 8
~ swim ~
I actually like that idea, lol. I'll mention it to the other mods.
+ 7
@CipherFox
Could you explain the rationale behind your comment? Is it not allowed to post any challenges here in the Q&A section?
I made a comment on this thread:
https://www.sololearn.com/Discuss/1082512/?ref=app
where I asked why people were being discouraged from posting challenges here and nobody has attempted to explain.
As I said in that comment, I'm all for a designated challenge section where they can all be kept in one place and, although it does exist, you surely can't believe that it's fully functional yet. And until it is, I don't see the problem in allowing challenges still to be posted here.
It has been mentioned many times that iOS users (and web users) have no option to submit challenges any way, other than to the Q&A section. It just appears to be Android users who can do it in the "proper" way. I don't understand why you guys appear to be discriminating against a certain type of user, which means a meaningful proportion of your user base.
Like I say, I'm all for challenges being kept in one place, but comments like yours are baffling to me when:
a) challenge submissions are very often taking weeks to order to be accepted,
b) only a portion of your users are actually able to submit a challenge.
Until both of these problems are addressed, why is it such a crime to continue posting challenges here in the Q&A?
+ 7
Gaurav Agrawal
That is correct. You can review the answer that has been marked as best within the linked post below for more details.
https://www.sololearn.com/discuss/1108024/?ref=app
+ 6
and Gaurav Agrawal, gauging the specifics of your questions is difficult.
The moderators have the right to modify tags if the tags are not accurate. SoloLearn empowered the moderators for a reason. If you keep the tags accurate, they will not be modified. Inaccurate tags disrupt the function of the Q/A's search feature, which affects other users' experiences as a result. If you have any issues/disagreements regarding that, feel free to email info@sololearn.com.
I'm not sure what you mean by mentioning "solved".
Also, I do not "live" on SoloLearn. I have things to tend to in the real world. Giving someone a limited amount of time to respond isn't practical, and it serves no purpose.
As mentioned, if you have issues with moderators, feel free to contact SoloLearn.
Have a good one. I will return shortly.
+ 6
Gaurav Agrawal
Do not edit anything to appear before the header.
+ 5
CipherFox since you(mods) have accepted my suggestion , lets make it [ASSIGNMEND] with a D ๐คฃlol
+ 3
Is this what you're after?
https://code.sololearn.com/cPOiWzu207c9/?ref=app