Giter Site home page Giter Site logo

ritikbanger / hacktoberfest2022-dsa Goto Github PK

View Code? Open in Web Editor NEW
97.0 1.0 333.0 3.65 MB

If You know the implementation of any DSA related topic/problem or HackerRank, HackerEarth, LeetCode problems then you can contribute it in this repo. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star this Repo. You aren't allowed to Update README.md. Create PR and win Swags in hacktoberfest 2022

License: MIT License

C++ 61.35% Java 11.58% Python 7.99% C 8.05% JavaScript 0.44% Go 0.02% CMake 0.03% C# 0.30% HTML 0.11% CSS 0.18% Swift 9.95%
hacktoberfest hacktoberfest2022 hacktoberfest-accepted hacktoberfest-starter

hacktoberfest2022-dsa's Introduction

image

Hacktoberfest 2022

Snake animation

Event details :

  • Hacktoberfest is a month-long challenge. It happens every year in the month of October.
  • Hacktoberfest is open to everyone and it marks the celebration of Open Source. It's the biggest Open Source event that encourages newbies to participate in Open Source and create their 1st meaningful PR.
  • Hacktoberfest will be hosted by Digital Ocean for the 9th year in a row in partnership with GitHub and other companies.
  • Hacktoberfest® is open to everyone in our global community. Whether you’re a developer, student learning to code, event host, or company of any size, you can help drive growth of open source and make positive contributions to an ever-growing community.
  • All backgrounds and skill levels are encouraged to complete the challenge.
  • Hacktoberfest is a celebration open to everyone in our global community.
  • You can sign up anytime between September 26 and October 31.

How can you Join?

Step - 1:

Create a GitHub account, if you don't already have one.

Step - 2:

Register for Hacktoberfest: Navigate to the Hacktoberfest registration page and follow the instructions. But, read the rules carefully before you do and then sign In using your GitHub credentials.

Step - 3:

Find good projects worth contributing on the GitHub page. You can type label:hactoberfest is:issue is:open

You can add a language label of your choice to filter open issues. If you are a beginner and can’t find good issues then there’s tag label:good first issue which filters out issues for beginners who want to contribute.

Here's something beginner-friendly for you:

Step - 4:

Submit PRs: Try and submit at least 4 PRs and wait for it to be verified. Make sure to submit quality PRs.


HacktoberFest Rules :

  • To earn your Hacktoberfest tee or tree reward, you must register and make four valid pull requests (PRs) between October 1-31 (in any time zone).
  • Pull requests can be made in any participating GitHub or GitLab hosted repository/project. Look for the hacktoberfest topic to know if a repository/project is participating in Hacktoberfest.
  • Pull requests must be approved by a maintainer of the repository/project to count.
  • If a maintainer reports your pull request as spam or behavior not in line with the project’s code of conduct, you will be ineligible to participate.
  • This year, the first 40,000 participants who successfully complete the challenge will be eligible to receive a prize.

For your PR to count it must be:

  • Submitted in a public repo, AND the PR is labelled as hacktoberfest-accepted by a maintainer. or
  • Submitted in a repo labelled hacktoberfest , AND Merged, OR Approved
  • You can opt not to receive a t-shirt and stickers and you can choose to have a tree planted in your name and help make Hacktoberfest 2022 more carbon neutral.

Whether it’s your first or fiftieth pull request, there’s always more to learn! We’ve put together a few resources that can help you create quality pull requests, keep your repositories pristine, and build on your open source knowledge.



Rules To Contribute To This Repo

  • You can write solutions in C/C++/Java for Data Structure and Algorithms.
  • Follow file naming convention for all your pull requests.
  • While adding any content it should be inside its appropiate directory
  • if there is any problem with inaccurate solution create an issue!

file naming convention

use file type comments
questions README.md all questions of particular topic are mentioned in a README.md file inside the sub topic folder
C++ solutions [topic name].cpp solution C++ code file code to a question is written in same folder where question is mentioned
algorithm solution [topic name]-algorithm.txt algorithm solution to a question is written in a .txt txt file in same folder where question is mentioned

Things you can contribute to

  • Repo contain folders of all the data structures and algorithms topics with some pre-addressed questions. You can add a solution to a question ( present in the readme of particular topic folder) that is unanswered.
  • you can update existing solution with a better one ( better complexity).
  • Participants can even add new questions and solutions of their interest.
  • solve issues raised by other people or yourself.
  • make webpage ( hosted from GitHub readme ) more appealing and updated.
  • Well-documented source code with detailed explanations provides a valuable resource for educators and students alike.

Steps For Contribution

1. Fork this repo
2. Star this repo
3. Add a file ( txt/cpp ) inside appropriate folder
4. commit the code
5. Make pull request

FEATURES

  1. Beginner-friendly
  2. Targeted for developers, content writers, and programming enthusiasts.
  3. Would also help participants who are not familiar with development but are eager to participate in open source.


Materials


Connect with me

Ritik's LinkdeIn Ritik's Instagram Ritik's Twitter    



if (isAwesome) {
  // thanks in advance :p
  starThisRepository();
}

  _____ _                 _     __   __
 |_   _| |__   __ _ _ __ | | __ \ \ / /__  _   _
   | | | '_ \ / _` | '_ \| |/ /  \ V / _ \| | | |
   | | | | | | (_| | | | |   <    | | (_) | |_| |
   |_| |_| |_|\__,_|_| |_|_|\_\   |_|\___/ \__,_|

hacktoberfest2022-dsa's People

Contributors

20cypher avatar akshitparmar avatar amanjuneja420 avatar ani-68shende avatar chiragchandnani10 avatar djharshit avatar hypertext-workaholics avatar iamtamodip avatar ishaan49k avatar itz-arnav avatar jaysukh-409 avatar kedar-27 avatar midhashrey avatar pareekakshat avatar parikshit0707 avatar pranavelric avatar ritik-banger-biz4group avatar ritikbanger avatar rohitzerofour avatar s-w-a-y-a-m avatar sarthakroy2002 avatar shreya587 avatar siddharthsinghvats avatar ukanivedant avatar viditjain04 avatar vipin2210 avatar vivekkverma avatar xoxo16 avatar ysumitsingh159 avatar yyuvraj54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hacktoberfest2022-dsa's Issues

Morris Traversal on Binary Tree

Morris Traversal on Binary Tree
Details:

Morris Traversal on Binary Trees. Allows tree traversals like inorder, preorder and postorder to run in constant space.
Time Complexity: O(N)
Space Complexity: O(1)

#371

I would like to add kadane's algorithm problem in JAVA

Tower of Hanoi

I'd like to add Tower of Hanoi mathematical puzzle problem, the code is written in C

Vertical Order Traversal of a Binary Tree

hi,
During interview, Interviewer asked me Vertical Order Traversal of a Binary Tree Question.
At that time, I little bit stuck and completed.
So, I requested you please add this solution which comes under Tree Topic

`Given the root of a binary tree, calculate the vertical order traversal of the binary tree.

For each node at position (row, col), its left and right children will be at positions (row + 1, col - 1) and (row + 1, col + 1) respectively. The root of the tree is at (0, 0).

The vertical order traversal of a binary tree is a list of top-to-bottom orderings for each column index starting from the leftmost column and ending on the rightmost column. There may be multiple nodes in the same row and same column. In such a case, sort these nodes by their values.

Return the vertical order traversal of the binary tree.`

Modular Exponentiation

I would like to add Modular Exponentiation algortihm as a contribution for the Hacktober Fest 2022, as it is a very useful algo.
Could you assign it to me

Your Repo Code for checking a prime number can be made faster (link for your code is in description)

Hello @Ritik-Banger-Biz4group,
https://github.com/ritikbanger/Hacktoberfest2022-DSA/blob/main/Prime%20Number%20finder

This code is not optimised much, it's time complexity can be reduced from O(N/2) to O((√N)/2) which will be way more faster and also easy to read and understand like this one.
May u please assign me to optimise it.

I will run a loop from i=3 to sqrt(N) and doing I+=2 every time and check n%2 also at the end, resulting in lesser iterations and saving time.

UTF-8 Validation

Given an integer array data representing the data, return whether it is a valid UTF-8 encoding (i.e. it translates to a sequence of valid UTF-8 encoded characters).

A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules:

--> For a 1-byte character, the first bit is a 0, followed by its Unicode code.
--> For an n-bytes character, the first n bits are all one's, the n + 1 bit is 0, followed by n - 1 bytes with the most significant 2 bits being 10.

x denotes a bit in the binary form of a byte that may be either 0 or 1.

Note: The input is an array of integers. Only the least significant 8 bits of each integer is used to store the data. This means each integer represents only 1 byte of data.

Planet Queries I (CSES) in C++

I want to add this problem under the graphs section.
This problem has a beautiful use of the Binary lifting concept on graphs.
CSES problem set has very less good solutions present on the web.

Can you please assign this issue to me @ritikbanger under hacktober fest 2022.

Stack using Linked List

Want to add code of stack implementation using Linked list in java and cpp. Pls assign this issue to me.

Longest Increasing Subsequence II (Leetcode) in C++

This is a recent leetcode weekly contest hard problem.
Usually, LIS is solved using DP ( O(n^2) Solution ).
In this problem, we could only take elements with differences not more than K and we have to find the longest increasing subsequence.
Constraints are such that we can not use O(n^2) DP approach and we can not as well use binary search optimization of LIS.
So, the Solution is based on Range Max Queries using segment Trees.
Time Complexity of solution: O(nlog(maximum element in the array))*
This solution is accepted on leetcode.

Can you please assign it to me @ritikbanger under hacktober fest tag.

Contains Duplicate

You are given an integer array nums and two integers indexDiff and valueDiff.

Find a pair of indices (i, j) such that:

i != j,
abs(i - j) <= indexDiff.
abs(nums[i] - nums[j]) <= valueDiff, and
Return true if such pair exists or false otherwise.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.