15,900,110 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12847424 (Top 11 by date)
Member 12847424
16-Jul-17 14:15pm
View
If you are not going to help then why are you even on this site ? Just to write answers like this ?? And you make it look like a big deal. Like you're the smartest person in the world and if you're not going to answer this then the world will stop. This much ego is not good for anybody.
Member 12847424
15-Jul-17 14:11pm
View
Well if you don't wanna answer then just don't write an answer in the first place. Why do you have to write the above anyway ?
Member 12847424
14-Jul-17 22:37pm
View
This is not my homework and I'm not in a school or college. I'm homeschooled.
I was just doing this problem for fun which I found somewhere.
Member 12847424
8-Jan-17 0:21am
View
Yeah ! you're right but I can't think of a way of assigning the index of highest node to all but itself and the ones that are linked to it.
Member 12847424
7-Jan-17 9:29am
View
I've updated my code considering your suggestion of sorting and now my code works fine for 1 <= n <= 10000 in 0.33s of execution time.
But still time limit is exceeding for 1 <= n <= 50000.
Member 12847424
7-Jan-17 6:34am
View
Thanks for that tip and it worked but still time limit is exceeding. Perhaps some more optimizations like you suggested will do the magic.
Also I'm updating the code according to your suggestion.
Member 12847424
7-Jan-17 6:03am
View
OK I understand what you're saying.So, I'm updating the "What I've tried" section to show my solution.
Member 12847424
7-Jan-17 5:36am
View
OK just to clarify this is a entirely different problem from the one you are talking about and secondly this isn't my homework. It's just a problem I came across and I've been trying to solve this for over a week. I've put enough time on it and now I feel to get some help. Is it so wrong of me to ask for help when I'm stuck somewhere for too long ?
Member 12847424
7-Jan-17 5:33am
View
OK just to clarify this is a entirely different problem from the one you are talking about and secondly this isn't my homework. It's just a problem I came across and I've been trying to solve this for over a week. I've put enough time on it and now I feel to get some help. Is it so wrong of me to ask for help when I'm stuck somewhere for too long ?
Member 12847424
7-Jan-17 4:04am
View
What do you mean ?
Member 12847424
13-Nov-16 7:22am
View
I completely agree with what you said about checking every millisecond but the problem is that I can't find a way to curb the unnecessary checking for collisions.
Show More