Giter VIP home page Giter VIP logo

saikat2407 / dsa_hacktoberfest2023 Goto Github PK

View Code? Open in Web Editor NEW
155.0 1.0 1.0K 165 KB

This Repo will Accept all the quality Hacktoberfest 2023 Contribution βš‘οΈβœ…πŸŽ‰

License: MIT License

C++ 56.02% Python 12.17% Java 12.75% JavaScript 13.01% HTML 5.16% CSS 0.90%
cpp dsa dsa-algorithm dsalgo-questions good-first-issue hacktoberfest hacktoberfest-2023 hacktoberfest-accepted hacktoberfest-accepted2023 hacktoberfest-starter

dsa_hacktoberfest2023's Introduction

Hacktober Fest 2023⚑️✨

All Contributors are requested to star this repo and follow me for a successful merge of pull request.πŸ™‚


πŸ‘‰ Add any project, algorithm or leetcode solution in any programming language..
-πŸš€ C
-πŸš€ C++
-πŸš€ C#
-πŸš€ PHP
-πŸš€ Java
-πŸš€ Python
-πŸš€ Javascript

In each respective folder on any topic, don't forget to read the rules below to get your pull request accepted.

πŸ‘·β€β™‚οΈ Contribute anything to this repo and earn rewards!


βš™οΈ Visit The Hacktoberfest website for more information Hacktoberfest 2023


πŸ›  Welcome to Hacktobefest 2023 Event

How To Contribute

βŒ›οΈ In order to do successful contribution you must read the rules at the bottom; all pull requests will be accepted by those who correctly submitted their PR.

Star the repository

βŒ›οΈ Patience is key! If the pull request is not merged, tell me in the comment section!


Getting started

  • Fork this repository (Click the Fork button in the top right of this page, click your Profile Image)
  • Clone your fork down to your local machine
git clone https://github.com/your-username/DSA_Hacktoberfest2023.git
  • Create a branch
git checkout -b branch-name
  • Make your changes (choose from any task below)
  • Commit and push
git add .
git commit -m 'Commit message'
git push origin branch-name
  • Create a new pull request from your forked repository (Click the New Pull Request button located at the top of your repo)
  • Wait for your PR review and merge approval!
  • Star this repository

πŸ›‘ Rules

  • βš”οΈ Add link of the problem as comments in the code if contributing solution of any problems from Leetcode, GeekForGeeks, Codechef or Codeforces, etc. No need to add entire main function.
  • βš”οΈ Dont forget to star this repository and follow me for successful merge.
  • βš”οΈ Add the proper extension to your code file. Examples: .c, .js, .cpp , .py or .java.
  • βš”οΈ Give your file a proper name related to your program in snake_case.
  • βš”οΈ Put your files in correct folder like .cpp file in c++ folder or .py file in python folder.
  • βš”οΈ If folder is not present for your language create new with name of your programming language like C++ , Python etc
  • βš”οΈ Make repo well maintained if topic not present in which you want to contribute create new folder for it in their paricular section or language

πŸ›‘ Notice

βš”οΈ All contributors who have followed above rules correctly will meet merge pull request successfully.

βš”οΈ For any further issues, you can contact me in the comments

βš”οΈ Always make more than 4 total pull requests for hacktoberfest for safer side.


πŸ–₯️ Happy Coding πŸ”₯ Happy Hacking...

dsa_hacktoberfest2023's People

Contributors

aachal28 avatar abe0770 avatar amalcodin avatar amisha2004 avatar aniketkuma-r avatar ankit9126 avatar biswajit150803 avatar bupendradhyan avatar chaitanyadubal avatar codeank2829 avatar destryptor avatar devc007 avatar geekblower avatar grey-hat-07 avatar harshal255 avatar hemantmodi11 avatar himadeepthi1 avatar josephlahiru avatar kndeepak avatar krishaynair avatar krrahul23 avatar mananbhimjiyani avatar mdsahilnoob avatar muhammad-owais-warsi avatar niraj-dilshan avatar riaaaa03 avatar saikat2407 avatar sanketj29 avatar shubhamgoyal7125 avatar sreenija03 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  avatar  avatar  avatar

Watchers

 avatar

dsa_hacktoberfest2023's Issues

Anagram Checker

Given two strings a and b consisting of lowercase characters. The task is to check whether two given strings are an anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, act and tac are an anagram of each other.
Hey @Saikat2407 this is an geeksforgeeks problem which I would like to solve. Can you please assign this to me?

leetcode problem 2704. To Be Or Not To Be.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
where:
We will write a function, where
toBe(val) accepts another value and returns true if the two values === each other. If they are not equal, it should throw an error "Not Equal".
notToBe(val) accepts another value and returns true if the two values !== each other. If they are equal, it should throw an error "Equal".

Add Monotonic Array Problem

This a leetcode problem. I want to add this problem in python folder . so assign me this issue under hacktoberfest.

leetcode problem 198. House Robber

Hey @Saikat2407 , I would like to contribute to this leetcode problem, do assign it to me.
Where:-
a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses are broken into on the same night.

leetcode problem 657. Robot Return to Origin

Hey @Saikat2407, I would like to contribute to this problem, do assign it to me.
Where:-
There is a robot starting at the position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves.

You are given a string moves that represents the move sequence of the robot where moves[i] represents its ith move. Valid moves are 'R' (right), 'L' (left), 'U' (up), and 'D' (down).

Return true if the robot returns to the origin after it finishes all of its moves, or false otherwise.

leetcode problem 337. House Robber III

Hey @Saikat2407 , I would like to contribute to this leetcode problem, please assign it to me.
Where:-
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called root.

Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that all houses in this place form a binary tree. It will automatically contact the police if two directly-linked houses are broken into on the same night.

Adding some trees problems

Adding some trees problems in cpp like flatten tree to linked list, kth ancestor etc.

Please assign this to me under HacktoberFest 2023 so I can add it to the repo.

Leetcode problem 782. Transform to Chessboard.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
Where:
given an n x n binary grid board. In each move, you can swap any two rows with each other, or any two columns with each other.

Return the minimum number of moves to transform the board into a chessboard board. If the task is impossible, return -1.

Subarray Sum Equals K

Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k.

Hi @Saikat2407 I want to add code for the problem (Leetcode) subarray sum equals k in the repository.
Please assign it to me.
Thanks

1512-Number-Of-Good-Pairs

I want to contribute the solution of this Leetcode question Number of Good Pairs in C++

Please assign me this with hacktoberfest tag on it.

Thankyou

leetcode problem 213. House Robber-II

Hey @Saikat2407 , I would like to contribute to this leetcode problem, do assign it to me.
Where:-
a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile, adjacent houses have a security system connected, and it will automatically contact the police if two adjacent houses are broken into on the same night.

leetcode problem 129. Sum Root to Leaf Numbers.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.

Where:
given the root of a binary tree containing digits from 0 to 9 only.

Each root-to-leaf path in the tree represents a number.

For example, the root-to-leaf path 1 -> 2 -> 3 represents the number 123.
Return the total sum of all root-to-leaf numbers. Test cases are generated so that the answer will fit in a 32-bit integer.

Insertion Sort and Quick sort

Hi I want to add two programs in the python folder of the repo. One is about the implementation of insertion sort and other about Quick sort. Please accept this request. I will also contribute other algorithms, programs in python and c++ after doing this.
Please assign this to me

leetcode problem 1103. Distribute Candies to People.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
Where:
We distribute some number of candies, to a row of n = num_people people in the following way:

We then give 1 candy to the first person, 2 candies to the second person, and so on until we give n candies to the last person.

Then, we go back to the start of the row, giving n + 1 candies to the first person, n + 2 candies to the second person, and so on until we give 2 * n candies to the last person.

This process repeats (with us giving one more candy each time, and moving to the start of the row after we reach the end) until we run out of candies. The last person will receive all of our remaining candies (not necessarily one more than the previous gift).

Return an array (of length num_people and sum candies) that represents the final distribution of candies.

Water and Jug Problem 365 from leetcode

Hey @Saikat2407 , I would like to contribute to CPP's water and jug problem.

where the problem statement is:-
given two jugs with capacities jug1Capacity and jug2Capacity liters. There is an infinite amount of water supply available. Determine whether measuring the exact target capacity liters using these two jugs is possible.

leetcode problem 849. Maximize Distance to Closest Person.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.

where:
given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat, and seats[i] = 0 represents that the ith seat is empty (0-indexed).

There is at least one empty seat, and at least one person sitting.

Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.

Return that maximum distance to the closest person.

Best time to buy and sell stock -leetcode solution

You are given an array prices where prices[i] is the price of a given stock on the ith day.

You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.

Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.

@Saikat2407 can you assign this to me?

leetcode problem 2288. Apply Discount to Prices.

Hey @Saikat2407, I would like to contribute to this problem, Please do assign it to me.
Where:
A sentence is a string of single-space separated words where each word can contain digits, lowercase letters, and the dollar sign '$'. A word represents a price if it is a sequence of digits preceded by a dollar sign.

For example, "$100", "$23", and "$6" represent prices while "100", "$", and "$1e5" do not.
You are given a string sentence representing a sentence and an integer discount. For each word representing a price, apply a discount of discount% on the price and update the word in the sentence. All updated prices should be represented with exactly two decimal places.

Return a string representing the modified sentence.

House Robber II

Given an integer array nums representing the amount of money of each house, return the maximum amount of money you can rob tonight without alerting the police.

Hi @Saikat2407 I want to add code for the problem (Leetcode)house robber II in the repository.
Please assign it to me.
Thanks

searching and sorting

Question:

You are given an array of integers, nums, and an integer target. Your goal is to find the index of the target in the array, or return -1 if the target is not in the array.

Write a C++ function search that takes the following parameters:

int search(vector& nums, int target)

Input:

nums is a sorted array of distinct integers (in ascending order).
target is the integer you are searching for.

Output:

Return the index of target in nums if found, otherwise return -1.

Example:

vector nums = {-1, 0, 3, 5, 9, 12};
int target = 9;
int result = search(nums, target);

Output:
4

I want to solve this problem can you assign me this issue and mark label for hacktoberfest-accepted and hacksquad.

Pascal’s Triangle

In Pascal’s triangle, each number is the sum of the two numbers directly above it.

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.