├── BinaryTree_Infect_time.js
├── CONTRIBUTING.md
├── Code_of_conduct.md
├── JS projects
├── Countdown Timer
│ ├── images
│ │ └── background.jpg
│ ├── index.html
│ ├── index.js
│ └── styles.css
├── Dum
├── ExpenseTrackerApp
│ ├── YoungSerif-Regular.ttf
│ ├── favicon.ico
│ ├── index.html
│ ├── script.js
│ └── style.css
├── Password_Gnerator
│ ├── index.html
│ ├── index.js
│ └── style.css
└── Weather_App
│ ├── assets
│ ├── cloud.png
│ ├── favicon.ico
│ ├── humidity.png
│ ├── image.jpg
│ ├── loading.gif
│ ├── location.png
│ ├── not-found.png
│ ├── page-not-found.jpg
│ ├── search.png
│ └── wind.png
│ ├── index.html
│ ├── index.js
│ └── style.css
├── Profiles
├── Ahmed.md
├── Akanksha.md
├── Debarshee.md
├── Ebin.md.txt
├── Hritik_kumar.md
├── Ishita.md
├── Khushnuma.md
├── MMVonnSeek.md
├── Namya.md
├── Shubham.md
├── Simran Verma.md
├── Spandan.md
├── Sumit.md
├── Suraj_Vishwakarma.md
├── aecuto.md
├── anusha.md
├── jatin.md
├── shubhojyoti.md
└── suhail.md
├── README.md
├── Scripts
├── Ahmed.py
├── Akanksha.py
├── CalculatorGUI.py
├── Ebin.py
├── Ishita.cpp
├── MMVonnSeek.py
├── Namya.py
├── Rishika.py
├── Shubham.js
├── Spandan.py
├── Sumit.py
├── Vaibhav.cpp
├── aecuto.py
├── guessing_game.cpp
├── hello_world_Hritik.py
├── hello_world_nileshpatil1912.py
├── hello_world_oyejateen.jl
└── ishan.py
└── logo.png
/BinaryTree_Infect_time.js:
--------------------------------------------------------------------------------
1 | // JS code for Minimum time required to infect all the nodes of Binary tree
2 | class Node
3 | {
4 | constructor(item)
5 | {
6 | this.item = item;
7 | this.left = this.right = null;
8 | }
9 | }
10 | var node=null;
11 | var item=null;
12 | function findParent(root, p, parent,start)
13 | {
14 | if (root == null)
15 | return;
16 |
17 | // Store parent of current node
18 | parent[root.item] = p;
19 | if (root.item == start) {
20 | node = root;
21 | }
22 |
23 | findParent(root.left, root, parent, start);
24 | findParent(root.right, root, parent, start);
25 | }
26 |
27 |
28 | function amountOfTime(root,start)
29 | {
30 | let parent = new Array(100005);
31 | parent.fill(null);
32 |
33 | findParent(root, null, parent, start);
34 |
35 | let visited=new Array(100005);
36 | visited.fill(false);
37 |
38 | let q=[];
39 |
40 | // Push special tree node into the
41 | // queue and make it visited.
42 | q.push(node);
43 | visited[start] = true;
44 |
45 | // This store the minimum time require
46 | // to infect all the tree node.
47 | let result = -1;
48 |
49 | while (q.length > 0) {
50 | let n = q.length;
51 |
52 | for (let i = 0; i < n; i++) {
53 | let curr = q[0];
54 | let currNode = curr.item;
55 | q.shift();
56 |
57 | // Check if parent of currNode
58 | // exist and not visited yet
59 | // then push this parent of
60 | // current node into queue.
61 | if (parent[currNode] != null
62 | && visited[parent[currNode].item]
63 | == false) {
64 | visited[parent[currNode].item] = true;
65 | q.push(parent[currNode]);
66 | }
67 |
68 | // Check if current node left
69 | // child exist and not
70 | // visited yet.
71 | if (curr.left
72 | && visited[curr.left.item] == false) {
73 | visited[curr.left.item] = true;
74 | q.push(curr.left);
75 | }
76 |
77 | // Check if current node right
78 | // child exist and not
79 | // visited yet.
80 | if (curr.right
81 | && visited[curr.right.item] == false) {
82 | visited[curr.right.item] = true;
83 | q.push(curr.right);
84 | }
85 | }
86 |
87 | // Increment the time
88 | result++;
89 | }
90 |
91 | // Return the result.
92 | return result;
93 | }
94 |
95 |
96 | // Driver Code
97 | /* 10
98 | / \
99 | 12 13
100 | / \
101 | 14 15
102 | / \ / \
103 | 21 22 23 24
104 |
105 | Let us create Binary Tree as shown
106 | above */
107 |
108 | let root = new Node(10);
109 | root.left = new Node(12);
110 | root.right = new Node(13);
111 |
112 | root.right.left = new Node(14);
113 | root.right.right = new Node(15);
114 |
115 | root.right.left.left = new Node(21);
116 | root.right.left.right = new Node(22);
117 | root.right.right.left = new Node(23);
118 | root.right.right.right = new Node(24);
119 |
120 | let start = 14;
121 |
122 | // Function call
123 | let result = amountOfTime(root, start);
124 | console.log(result);
125 |
126 | // This code is contributed by SumitAwate
127 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | #### Name: [Akanksha Rani](https://github.com/AkankshaAI)
2 |
3 | - Place: New Delhi,India
4 | - Bio: LFX mentee'23 at Hyperleger,Open Source Contributor , Web Developer
5 | - Affiliation : Indira Gandhi Delhi Technical University for Women
6 | - GitHub: [AkankshaAI](https://github.com/AkankshaAI)
7 |
8 |
9 | #### Name: [Max Muller](https://github.com/MMVonnSeek)
10 |
11 | - Place: Brasília,Brazil
12 | - Bio: Cyber Security Analyst , Open Source Contributor , Web Developer
13 | - Affiliation : University Estácio de Sá
14 | - GitHub: [MMVonnSeek](https://github.com/MMVonnSeek)
15 |
16 | #### Name: [Hritik Kumar](https://github.com/hritik-6918)
17 |
18 | - Place: West Bengal,India
19 | - Bio: SDE intern at Desiqna, Open Source Contributor, Web Developer
20 | - Affiliation : Techno main salt lake kolkata
21 | - GitHub: [Hritik kumar](https://github.com/hritik-6918)
22 |
23 | #### Name: [Jatin](https://github.com/oyejateen)
24 |
25 | - Place: Rajasthan, India
26 | - Bio: Btech Cse student, community intern at Replit.
27 | - Affiliation: MLVTEC, RTU
28 | - GitHub: [Jatin](https://github.com/oyejateen)
29 |
30 | #### Name: [Rishika Suhag](https://github.com/rishikasuhag)
31 |
32 | - Place: New Delhi,India
33 | - Bio: Graphics and UI designer, content writer, AI/ML enthusiast.
34 | - Affiliation : Indira Gandhi Delhi Technical University for Women
35 | - GitHub: [rishikasuhag](https://github.com/rishikasuhag)
36 | =======
37 | #### Name: [Simran Verma](https://github.com/AkankshaAI)
38 |
39 | - Place: Varanasi, India
40 | - Bio: Coder, Frontend Developer
41 | - Affiliation : Kalinga Institute of Industrial Technology, Bhubaneswar
42 | - GitHub: [Simranverma123](https://github.com/Simranverma123)
43 | =======
44 | >>>>>>> main
45 |
46 | #### Name: [Namya Jain](https://github.com/Namya13Jain)
47 |
48 | - Place: New Delhi, India
49 | - Bio: Flutter Developer, Open Source Contributor,Learning Data Science
50 | - Affiliation : Indira Gandhi Delhi Technical University for Women
51 | - GitHub: [Namya13Jain](https://github.com/Namya13Jain)
52 |
53 | >>>>>>> main
54 | #### Name: [aecuto](https://github.com/aecuto)
55 |
56 | - Place: Thailand
57 | - Bio: Web Developer
58 | - Affiliation : CNX University
59 | - GitHub: [aecuto](https://github.com/aecuto)
60 |
61 | >>>>>>> main
62 | #### Name: [Spandan Tripathy](https://github.com/CrypticRevenger)
63 |
64 | - Place: Berhampur,Odisha,India
65 | - Bio: Web developer, Open Source Contrbutor , Machine Learning
66 | - Affiliation - Vellore Institute Of Technology
67 | - GitHub: [CrypticRevenger](https://github.com/CrypticRevenger)
68 |
69 | #### Name: [Anusha Tomar](https://github.com/anushatomar13)
70 |
71 | - Place: New Delhi, India
72 | - Bio: Web developer, Open Source Contrbutor , Machine Learning
73 | - Affiliation - MSIT, New Delhi
74 | - GitHub: [Anusha Tomar](https://github.com/anushatomar13)
75 |
76 | #### Name: [Sumit Br](https://github.com/SumitBr)
77 |
78 | - Place: Dhaka, Bangladesh
79 | - Bio: Deep Learning, Machine Learning, Open Source Contrbutor
80 | - Affiliation - BRAC University
81 | - GitHub: [Sumit Br](https://github.com/SumitBr)
82 |
83 |
84 | <<<<<<< main
85 |
86 | #### Name: [Ishita Rakchhit](https://github.com/ishitarakchhit)
87 |
88 | - Place: Delhi, India
89 | - Bio: Frontend Developer, ML enthusiast, avid reader
90 | - Affiliation : India Gandhi Delhi Technical University for Women
91 | - GitHub: [ishitarakchhit](https://github.com/ishitarakchhit)
92 | =======
93 | #### Name: [Vivek Chatterjee](https://github.com/VivekChatterjee)
94 | - Place: Jamshedpur, Jharkhand, India
95 | - Bio: Full Stack Developer, Open Source Contributor, Love Chess
96 | - Affiliation : Lovely Professional University, Punjab
97 | - GitHub: [VivekChatterjee](https://github.com/VivekChatterjee)
98 |
99 |
100 |
101 | >>>>>>> main
102 | #### Name: [Aditi](https://github.com/aditi5926)
103 |
104 | - Place: Delhi, India
105 | - Bio: Passionate WebDeveloper
106 | - Affiliation : NSUT
107 | - Github: [Aditi](https://github.com/aditi5926)
108 | =======
109 | >>>>>>> main
110 |
111 | >>>>>>> main
112 |
113 | ### Name: [Dhananjay Goyal](https://github.com/DhananjayGoyalGL)
114 |
115 | - Place: Neemuch, M.P,India
116 | - Bio: Full Stack Developer Intern @ Linsible Technologies
117 | - Affiliation - Great Learning
118 | - GitHub: [CrypticRevenger](https://github.com/DhananjayGoyalGL)
119 |
120 | >>>>>>> main
121 |
122 | ### Name: [Sahil Singh](https://github.com/sahilrajput18)
123 |
124 | - Place: Kanpur, Uttar Pradesh.
125 | - Bio: Web Developer, Cricketer
126 | - Affiliation - Great Learning, Problem solver.
127 | - GitHub: [Sahil Rajput](https://github.com/sahilrajput18)
128 |
129 | #### Name: [Abdul Rehan](https://www.linkedin.com/in/abrehan)
130 |
131 | - Place: Pakistan, Islamabad
132 | - Bio: Software Engineer | MERN Stack Developer | Beta LSA @ Microsoft
133 | - Affiliation : Air University
134 | - GitHub: [Abdul Rehan](https://github.com/abrehan2)
--------------------------------------------------------------------------------
/Code_of_conduct.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | .
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/JS projects/Countdown Timer/images/background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AkankshaAI/Hacktoberfest2023-Beginners-New/6f8080203e4bfda9338a51c4a63e9956ad2e5c1b/JS projects/Countdown Timer/images/background.jpg
--------------------------------------------------------------------------------
/JS projects/Countdown Timer/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
23 |
24 | ## INSTRUCTIONS for this project for beginners -
25 |
26 | ## Getting started
27 |
28 | - Fork this repository (Click the Fork button in the top right of this page, click your Profile Image)
29 | - You can directly make changes through Github or you can use VScode and commit by following the steps below
30 | - Clone your fork down to your local machine
31 |
32 | ```markdown
33 | git clone https://github.com/AkankshaAI/Hacktoberfest2023-Beginners-New.git
34 | ```
35 |
36 | - Create a branch
37 |
38 | ```markdown
39 | git checkout -b branch-name
40 | ```
41 |
42 | - Make your changes (choose from any task below)
43 | - Commit and push
44 |
45 | ```markdown
46 | git add .
47 | git commit -m 'Commit message'
48 | git push origin branch-name
49 | ```
50 |
51 | - Create a new pull request from your forked repository (Click the `New Pull Request` button located at the top of your repo)
52 | - Wait for your PR review and merge approval!
53 | - **Star this repository** if you had fun!
54 |
55 | # How to contribute to this project
56 |
57 | ## Choose from these tasks
58 |
59 | ### 1. Add your name
60 |
61 | Add your name to the `CONTRIBUTING.md` file using the below convention:
62 |
63 | ```markdown
64 | #### Name: [YOUR NAME](GitHub link)
65 |
66 | - Place: City, State, Country
67 | - Bio: Who are you?
68 | - GitHub: [GitHub account name](GitHub link)
69 | ```
70 |
71 | ### 2. Add a profile page
72 |
73 | Add a `Your_Name.md` file to the `profiles` directory. Use any combination of content and Markdown you'd like. Here is an example:
74 |
75 | ```markdown
76 | # Your Name
77 |
78 | ### Location
79 |
80 | Your City/Country
81 |
82 | ### Academics
83 |
84 | Your School
85 |
86 | ### Interests
87 |
88 | - Some Things You Like
89 |
90 | ### Development
91 |
92 | - Inventor of the My Pillow
93 |
94 | ### Projects
95 |
96 | - [My Project](GitHub Link) Short Description
97 |
98 | ### Profile Link
99 |
100 | [Your Name](GitHub Link)
101 | ```
102 |
103 | ### 3. Create a `Hello, World!` Script
104 |
105 | Add a `yourusername.xx` script to the `scripts` directory in any language of your choice! Here is an example:
106 |
107 | ```Python
108 | // LANGUAGE: Python
109 | // AUTHOR: Akanksha Rani
110 | // GITHUB: https://github.com/Akanksha Rani
111 |
112 | # This program is in python!
113 |
114 | print('Hello, Hacktoberfest 2023!')
115 |
116 | ```
117 |
118 | Name the file `hello_world_yourusername.xx`. e.g., `hello_world_akanksharani.js` or `hello_world_akanksharani.py`.
119 |
120 | Add your scripts to the specific folder for specific languages created.
121 |
122 | Don't forget to include the comments as seen above. Feel free to include additional information about the language you choose in your comments too! Like a link to a helpful introduction or tutorial.
123 |
124 | Here is my `hello_world` example: [Akanksha.py](https://github.com/AkankshaAI/Hacktoberfest2023-Beginners-New/tree/main/Scripts)
125 |
126 | ### 4.Add top-notch Javascripts Projects in any in 'Top Notch Javascript project folder
127 |
128 | ### Choose one or all 3, make a pull request for your work and wait for it to be merged!
129 |
130 |
131 | ## Maintainer
132 | ## + Follow Me : } Quick Approval of Pull Request
133 | To get approval of the pull request much quicker and faster (`Follow Me`)🚀
134 |