Git Product home page Git Product logo

hacktoberfest2023's People

Contributors

abhishek14104 avatar adithyaranand avatar adityyasharma avatar akanksha57 avatar ankushjainaj avatar anubhav127 avatar debasmita1701 avatar dhruvapratapsingh avatar dhwanish-3 avatar diptanshug avatar ergauravrajput avatar fayezkhan1 avatar harshbam18 avatar harshpathak11 avatar ishika0-0 avatar kushchoudhary98 avatar leonado10000 avatar meet2020mp avatar ninad2003 avatar oscark-coder avatar plant-a-tree avatar priyanshusaini872 avatar s7917 avatar sam654123 avatar sanskar1004 avatar satyam-singh-01 avatar scoder6 avatar shreyashukla03 avatar vanshbhargava avatar wizardo26 avatar

Stargazers

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

Watchers

 avatar

hacktoberfest2023's Issues

feat: Add Two Pair Sum Program

The purpose of the program is to find pairs of elements in the arr vector that sum up to a specific target value (sum in this case), which is set to 80. The program iterates through the vector, comparing each element with all subsequent elements to check if their sum equals the target value. When such a pair is found, it is printed to the console.

Inheritance Introduction

PROBLEM LINK- https://www.hackerrank.com/challenges/inheritance-introduction/problem?isFullScreen=true

One of the important topics of Object Oriented Programming is Inheritance. Inheritance allows us to define a class in terms of another class, which allows us in the reusability of the code.Check out the code below:

class Triangle{
public:
void triangle(){
cout<<"I am a triangle\n";
}
};
The class Triangle has a function called triangle(). Now we create a class derived from the base class Triangle called Isosceles.

class Isosceles : public Triangle{
public:
void isosceles(){
cout<<"I am an isosceles triangle\n";
}
};
Now we can create a derived class object and use it to access the functions of the base class.

int main(){
Isosceles isc;
isc.isosceles();
isc.triangle();
return 0;
}
This code will print:

I am an isosceles triangle
I am a triangle
Now write a function in Isosceles class such that the output is as given below.

Sample Output

I am an isosceles triangle
In an isosceles triangle two sides are equal
I am a triangle

Organize codes with Directory Structure.

I will create different directories for different purpose.

So that all searching, sorting or any other algorithms are in different folders, making the user to navigate easily.

I would like to work on this issue.

C++ Class Templates

PROBLEM LINK- https://www.hackerrank.com/challenges/c-class-templates/problem?isFullScreen=true

You are given a main() function which takes a set of inputs. The type of input governs the kind of operation to be performed, i.e. concatenation for strings and addition for int or float. You need to write the class template AddElements which has a function add() for giving the sum of int or float elements. You also need to write a template specialization for the type string with a function concatenate() to concatenate the second string to the first string.

[ADD] two_sum.cpp

This program gives us the index of the two elements in array whose summation equals to the target value given by the user.

Lower Bound-STL

PROBLEM LINK - https://www.hackerrank.com/challenges/cpp-lower-bound/problem?isFullScreen=true

You are given N integers in sorted order. Also, you are given Q queries. In each query, you will be given an integer and you have to tell whether that integer is present in the array. If so, you have to tell at which index it is present and if it is not present, you have to tell the index at which the smallest integer that is just greater than the given number is present.

Maps-STL

PROBLEM LINK- https://www.hackerrank.com/challenges/cpp-maps/problem?isFullScreen=true

You are appointed as the assistant to a teacher in a school and she is correcting the answer sheets of the students.Each student can have multiple answer sheets.So the teacher has Q queries:

1 XY :Add the marks Y to the student whose name is X.

2 X: Erase the marks of the students whose name is X.

3 X: Print the marks of the students whose name is X. (If X didn't get any marks print 0.)

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.