TecHAyusH6476 / Interview-Prep-DSA-HacktoberFest-2023

πŸš€ Welcome to FAANG Interview Prep Central! in HacktoberFEst 2023 As the tech industry evolves, the bar for software engineering interviews, especially at top tech companies like Facebook, Amazon, Apple, Netflix, and Google (FAANG), rises. Our mission is to provide you with a comprehensive guide and resources to navigate these challenging waters.
MIT License
5 stars 15 forks source link

Added java code for Next Greater Element #15

Closed Yuktikashyap closed 1 year ago

Yuktikashyap commented 1 year ago

Heyy @TecHAyusH6476 this is a very famous problem - Next Greater Element I will be solving this problem using Stacks Kindly assign this to be as a part of Hactoberfest2023.I will be solving this in JAVA language. Thanks

TecHAyusH6476 commented 1 year ago

@Yuktikashyap Assigned πŸ‘ Create a PR and Merge it in main branch

Yuktikashyap commented 1 year ago

Done.

On Tue, Oct 10, 2023 at 11:06β€―PM Ayush Singh @.***> wrote:

@Yuktikashyap https://github.com/Yuktikashyap Assigned πŸ‘ Create a PR and Merge it in main branch

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1755927380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36XAKNLHWCOVY5LNMCDX6WBRZAVCNFSM6AAAAAA52DUOAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJVHEZDOMZYGA . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1755927380@ github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap Now check your profile

Yuktikashyap commented 1 year ago

Its not working - still showing same thing - excluded Thanks for helping me 😒

On Thu, Oct 12, 2023, 21:23 Ayush Singh @.***> wrote:

@Yuktikashyap https://github.com/Yuktikashyap Now check your profile

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1759898456, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36UB2WCNOV2PDCVEQMLX7AHAFANCNFSM6AAAAAA52DUOAM . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1759898456@ github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap I see, might be repo is excluded now because I have merged all PRs at once https://github.com/fineanmol/hacktoberfest Try on this one it worked for me πŸ˜„

Yuktikashyap commented 1 year ago

Thank you so so much 😊

I will contribute in this repo BTW can I make all 3 pr here or can u plz share some more repo like this if pos πŸ˜…

On Fri, Oct 13, 2023, 22:42 Ayush Singh @.***> wrote:

@Yuktikashyap https://github.com/Yuktikashyap I see, might be repo is excluded now because I have merged all PRs at once https://github.com/fineanmol/hacktoberfest Try on this one it worked for me πŸ˜„

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1761844713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36UBYPIUNMSEFRKRWI3X7FZBNANCNFSM6AAAAAA52DUOAM . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1761844713@ github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap You can create 4 PRs in same repo but on safer side create few on other repos as well https://github.com/Saikat2407/DSA_Hacktoberfest2023 https://github.com/zero-to-mastery/file-io Here are few which will accept PR quickly

Yuktikashyap commented 1 year ago

FineAlmon repo - was also excluded I will try doing in others

Now I am feeling why is this happening 😞 excluded excluded again n again

BTW thank you so much for helping me 😊🍦

On Fri, Oct 13, 2023, 22:42 Ayush Singh @.***> wrote:

@Yuktikashyap https://github.com/Yuktikashyap I see, might be repo is excluded now because I have merged all PRs at once https://github.com/fineanmol/hacktoberfest Try on this one it worked for me πŸ˜„

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1761844713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36UBYPIUNMSEFRKRWI3X7FZBNANCNFSM6AAAAAA52DUOAM . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1761844713@ github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap idk maybe admins are more strict this year in including selected repos to Hacktober fest, try on others yeah np πŸ‘

Yuktikashyap commented 1 year ago

Hi is it happening with me only that my pr are getting excluded or is it happening with everyone As i am still not able to resolve the issue that's why i am asking you If you can help or tell me anything which i can do - It would be a great helpπŸ˜₯

On Sat, Oct 21, 2023 at 1:14β€―AM Ayush Singh @.***> wrote:

Closed #15 https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15 as completed.

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#event-10728255308, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36VTPI7NOR7EBJIY42LYALIB7AVCNFSM6AAAAAA52DUOAOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG4ZDQMRVGUZTAOA . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issue/15/issue_event/10728255308 @github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap No thats only when repo gets excluded not only your PR is rejected cuz I created on one of repos I shared got accepted last week Can you share your PR links I will check whats the issue?

TecHAyusH6476 commented 1 year ago

https://github.com/zero-to-mastery/file-io/pull/154 For ref: this is one of PRs got accepted

Yuktikashyap commented 1 year ago

Wow ur pr is really good πŸ˜ƒ

As for my pr I have made some pr in your repo which got excluded and in way I made pr in other repo - they also got excluded 😟

PlZ help if pos

On Tue, Oct 24, 2023, 19:45 Ayush Singh @.***> wrote:

zero-to-mastery/file-io#154 https://github.com/zero-to-mastery/file-io/pull/154 For ref: this is one of PRs got accepted

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1777311005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36UKNCEET4R6G5Y6WRLYA7ERFAVCNFSM6AAAAAA52DUOAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGMYTCMBQGU . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1777311005@ github.com>

TecHAyusH6476 commented 1 year ago

@Yuktikashyap Sure just share your PR link so that I can check what can be updated Or I can show you how to pass PR in google meet if u want

Yuktikashyap commented 1 year ago

Thanks for helping 🌸 See if this works - https://github.com/simranlotey/programs/pull/274

Can u plz tell some LinkedIn profile or something where I can connect with you and u can tell me a way to resolve it

On Tue, Oct 24, 2023, 22:28 Ayush Singh @.***> wrote:

@Yuktikashyap https://github.com/Yuktikashyap Sure just share your PR link so that I can check what can be updated Or I can show you how to pass PR in google meet if u want

β€” Reply to this email directly, view it on GitHub https://github.com/TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15#issuecomment-1777653539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHO36T4HGIQ57LCNKAR2KLYA7XTTAVCNFSM6AAAAAA52DUOAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGY2TGNJTHE . You are receiving this because you were mentioned.Message ID: <TecHAyusH6476/Interview-Prep-DSA-HacktoberFest-2023/issues/15/1777653539@ github.com>

TecHAyusH6476 commented 1 year ago

Sure I will check PR πŸ‘ https://www.linkedin.com/in/ayush-singh-6476ofc/ here you can connect on linkedin

TecHAyusH6476 commented 1 year ago

`πŸš€ Hi maintainers, @l-white I'm thrilled to submit this PR as part of Hacktoberfest 2023! πŸŽ‰

With this PR, I've enhanced the Spotify Data Analysis script, streamlining the data processing and incorporating better visualization techniques. Here's a quick rundown:

🎡 Created the SpotifyDataAnalyzer class for more modular and organized code. πŸ“Š Introduced histogram visualization for BPM distribution to provide clearer insights. πŸ” Optimized data loading and processing for efficiency.

I've thoroughly tested the changes, and everything seems to be working smoothly. Would love your feedback and, if everything looks good, hope this can be merged soon! (Please use hacktober accepted tag)

Happy Hacktoberfest! πŸπŸŽƒ`

TecHAyusH6476 commented 1 year ago

`import pandas as pd import matplotlib.pyplot as plt

class SpotifyDataAnalyzer:

def __init__(self, file_name='spotify-2023.csv'):
    # Load the data from the given CSV file using pandas
    self.data = pd.read_csv(file_name, encoding='latin-1')

def number_of_songs(self):
    """Return the total number of songs in the dataset."""
    return self.data.shape[0]

def common_artist(self):
    """Return the list of most common artists in the dataset."""
    return self.data['artist(s)_name'].mode().tolist()

def visualize_bpm_distribution(self):
    """Plot the distribution of song tempos (BPM) using a histogram."""
    plt.hist(self.data['bpm'], bins=10, edgecolor='k')
    plt.title('BPM Distribution')
    plt.xlabel('BPM (Tempo)')
    plt.ylabel('Frequency')
    plt.show()

if name == "main": analyzer = SpotifyDataAnalyzer()

print(f"The total number of songs in the playlist: {analyzer.number_of_songs()}")
print(f"The most common artists occuring in the playlist: {analyzer.common_artist()}")
analyzer.visualize_bpm_distribution()`
TecHAyusH6476 commented 1 year ago

/spotify_data_analysis.py - File name