r/Competitive_Coding • • May 24 '20

A BREAK FOR COMPETITIVE CODERS WITH A COMFORTABLE HACKATHON

3 Upvotes

Competitive or development? At this time I know people are under the so-called ultra pressure of the placement so all you think of doing is competitive all day. But guess what, that's what you have been doing for so many months so get over it for a few days now. The development will help you with real-life problems which you haven't even exposed yourself to yet.

Not saying don't do competitive, but if given a platform to either practice your Dev skills or show it off, grab it.

It's high time you guys start focusing on development and this hackathon is easy and comfortable too and we have got great judges, all co-founders and data scientist of great companies so just think if they love your idea, that's bigger than a golden badge on hacker rank or so.

Go register at https://mindjam.devfolio.co/ if you actually could make sense out of what I wrote.


r/Competitive_Coding • • Jan 27 '21

Get Coding Ninjas Competitive Programming Course course worth ₹ 14,159 at just ₹ 9,911. Visit: https://cnoffers.github.io/

Post image
3 Upvotes

r/Competitive_Coding • • Oct 17 '18

An awesome list for competitive coding

Thumbnail
discuss.codechef.com
4 Upvotes

r/Competitive_Coding • • Oct 26 '19

Our first Blog

2 Upvotes

Hey guys, this is our group's first blog containing a couple of competitive questions. I'm sure it will be interesting. Make sure to check it out, and leave youe claps.

https://medium.com/@harikumar20112000/cracking-the-code-ca398240a03d

P.S. Our professor has assured us that we would get movie tickets if we get claps more than 150 people. So please help us win guys! 😁


r/Competitive_Coding • • Nov 06 '19

HELP !!!

2 Upvotes

How to build the logic building and how to start with codechef's monthly long challenge ? Please ...help


r/Competitive_Coding • • Jan 20 '19

Google HashCode

3 Upvotes

What are the subject areas/topics that Google HashCode focuses on? Can you please specify the algorithms that one should focus on and some resources where one could practice for this contest? Which language is most suitable/preferred for the contest? Please reply in comment.


r/Competitive_Coding • • Apr 30 '19

An interesting application of segment trees

2 Upvotes

https://www.codechef.com/NOV17/problems/CSUBQ

Check out the problem and editorial, I really liked the way they used segment trees.


r/Competitive_Coding • • Jan 04 '20

Looking for team member(s) for Google HashCode

3 Upvotes

r/Competitive_Coding • • Sep 12 '19

Can someone give hint in this question?😔😔

Thumbnail
codechef.com
5 Upvotes

r/Competitive_Coding • • Feb 02 '20

Google Hash code 2020

5 Upvotes

r/Competitive_Coding • • Oct 30 '19

Need a hint on solving this question??

2 Upvotes

r/Competitive_Coding • • Oct 17 '18

Stuck or need an idea on how to begin? Ask em here!

3 Upvotes

public class help {


r/Competitive_Coding • • Dec 28 '20

Program to Validate Username

Thumbnail
matrixread.com
2 Upvotes

r/Competitive_Coding • • Oct 26 '20

I wrote a blog post comparing the Fibonacci Series - Iterative vs Recursive

4 Upvotes

Do you know which method is the fastest? Fibonacci Series - Iterative vs Recursive


r/Competitive_Coding • • Feb 24 '21

Google Hashcode Team

3 Upvotes

I am looking to form a team for HashCode but I do not know anyone who is participating, if you'd like to collaborate then DM me! I am good with python and java.


r/Competitive_Coding • • Feb 24 '21

Google HashCode teammate

1 Upvotes

r/Competitive_Coding • • Apr 16 '20

Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.

3 Upvotes

how to apporoach this question ??


r/Competitive_Coding • • Nov 01 '20

#30DaysofCode

3 Upvotes

I solved one problem every day for 30 days and documented my approach to each problem in my blog, most of them are basic and easy, I compiled this list to help beginners, view it here. I'll be happy to hear your feedback.


r/Competitive_Coding • • Feb 13 '21

Even More Pizza Practice Problem Solution | Google Hash Code Competition 2021

Thumbnail
youtu.be
8 Upvotes

r/Competitive_Coding • • Feb 25 '21

Google HashCode 2021 Global Chat

4 Upvotes

We have created a global chat for the Google HashCode, if you like please join and share!

Google HashCode competition Global Chat


r/Competitive_Coding • • Feb 21 '21

Prepare for Google Hashcode with this self hosted Scoreboard

3 Upvotes

In order to prepare for the upcoming (and future versions) of Google Hashcode I set up a Scoreboard you can host yourself:

https://github.com/ccssmnn/scoreboard

It is implemented in Go, but provides an HTTP interface. You can write a GET request to receive the problem file and a POST request to get the score for your solution.

Implemented are the qualification rounds of 2020, 2019 and 2018.


r/Competitive_Coding • • Oct 02 '20

Need help with a leetcode question

3 Upvotes

Question -

```

Given marrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and calculate the distance. We define the distance between two integers aand bto be their absolute difference |a-b|. Your task is to find the maximum distance.

Example 1:

Input: [[1,2,3], [4,5], [1,2,3]] Output: 4

```

My Approach -

Use m pointers, each time increase the pointer of array having maximum value.

```

class Solution:

def maxDistance(self, arrays: List[List[int]]) -> int:

# m-pointer based question.

pointers = [0]*len(arrays)

ans = float('-inf')

while all([val < len(arrays[idx]) for idx, val in enumerate(pointers)]):

vals = [arrays[idx][val] for idx, val in enumerate(pointers)]

mini = min(vals)

maxi = max(vals)

# p_m = mini

ans = max(ans, abs(maxi-mini))

idx = vals.index(maxi)

pointers[idx] += 1

# p_m = arrays[idx][pointers[idx]-1]

return ans

```

Please help me / give me some hint in the direction of correct approach.


r/Competitive_Coding • • Feb 18 '21

Looking for Google Hashcode teammate(s)

3 Upvotes

My handle in Github is the same as here. Happy to have a 2-3 people team (so I am looking for 1-2 people). Ideally Python and/or C++. DM.


r/Competitive_Coding • • Jan 06 '21

Need help with one interview question

3 Upvotes

This is my first time posting here so I am not sure if asking interview questions is valid here or not.

The question is as below. Any help is appreciated.

A Company is running a promotion. Customers purchased a secret list of fruit will receive prizes. Notice the order of the fruits matters.

Also, there can be a keyword anything
in the secretFruitList which can be used for any type of fruit.

Examples

Example 1:

Input:

customerPurchasedList = [orange, mongo, strawberry, watermelon, mongo]

secretFruitLists = [[orange, mongo], [watermelon, mongo]]

Output: true

Example 2:

Input:

customerPurchasedList = [watermelon, orange, mongo]

secretFruitLists = [[watermelon, anything, mongo]]

Output: true

Example 3:

Input:

customerPurchasedList = [watermelon, apple, orange, mongo]

secretFruitLists = [[watermelon, anything, mongo]]

Output: false