Java-aid / Hackerrank-Solutions

hackerrank solutions github | hackerrank all solutions | hackerrank solutions for java | hackerrank video tutorial | hackerrank cracking the coding interview solutions | hackerrank data structures | hackerrank solutions algorithms | hackerrank challenge | hackerrank coding challenge | hackerrank algorithms solutions github| hackerrank problem solving | hackerrank programs solutions | JAVAAID |all hackerrank solutions | Coding Interview Preparation
https://www.youtube.com/c/JavaAidTutorials?sub_confirmation=1
MIT License
1.73k stars 861 forks source link

Need help to reduce the complexity of New Year Chaos #6

Closed RitamChakraborty closed 5 years ago

RitamChakraborty commented 5 years ago

I've made a solution for New Year Chaos problem but got into TLE. Here my implementation.

kanahaiya commented 5 years ago

Hi Ritam,

You have uploaded .class file on git hub instead of .java.

but just for your reference on how to avoid TLE? you can check out below tutorial-

https://www.youtube.com/watch?v=S8V444xdNvM&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J

On Thu, Jul 18, 2019 at 3:18 PM Ritam Chakraborty notifications@github.com wrote:

I've made a solution for New Year Chaos https://www.hackerrank.com/challenges/new-year-chaos/ problem but got into TLE. Here https://github.com/RitamChakraborty/Hacke_Rank_Problems/tree/master/out/production/Hacker%20Rank/new_year_chaos my implementation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Java-aid/Hackerrank-Solutions/issues/6?email_source=notifications&email_token=AE4GYRK2O2E5CM4URLPZMNLQAA37VA5CNFSM4IEY5GNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G76VB6A, or mute the thread https://github.com/notifications/unsubscribe-auth/AE4GYRJQU6KPRIQBQP2FI4TQAA37VANCNFSM4IEY5GNA .

--

Kanahaiya Gupta
SUBSCRIBE US   |

https://www.youtube.com/c/JavaAidTutorials?sub_confirmation=1 https://www.youtube.com/redirect?q=https%3A%2F%2Fgoo.gl%2FjziyfZ&redir_token=sL4sdGbM3fIyxaRxYzXChpjWPSR8MTU0Njg2NTY1OEAxNTQ2Nzc5MjU4&event=video_description&v=3hvzKDJQypI

RitamChakraborty commented 5 years ago

@kanahaiya I did that by mistake first time, but I've fixed that. And yes I've already watched that video.

kanahaiya commented 5 years ago

Hi Ritam,

Today I have uploaded the tutorial on New Year Chaos hackerrank problem and explained why bubble sort algorithm will not work here and how you can solve this problem. I hope, it helps.

I am closing this issue now.

FYI, you should not create an issue for help or new request. use this feature only when you found any issue in our repository. for discussion or solution request, please feel free to comment on youtube or other social media channels like Fb group or telegram.