Skip to content

Titan1911/Code-for-HacktoberFest-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code-for-HacktoberFest-2021 🎩

hacktoberfestlogo

Hacktoberfest 2021

This repo is used for HacktoberFest-2021. Write programs in your preferred languages!

How to contribute? 🌽

  • Register on Hacktoberfest 2021 with your github account so that pull requests can be tracked.
  • Fork this repo and give it a star.
  • Upload your solution file under specific directory (or create one directory of specific language if not there) with a comment having your Github username on the top of file.
  • Commit the changes.
  • Create a Pull Request.

Getting Started 🔫

There are 3 types of problems in this repo:

  1. Beginner
  2. Intermediate
  3. Advanced

Beginner 🔰

  • Even or odd
  • Prime or not
  • Generate a random number
  • Printing numbers upto 10 using tail recursion

Intermediate: 💨

  • Subsets of 'abcd'
  • Second highest number in 4 3 1 5 2
  • Celebrity problem
  • Binary search for 3 in 2 4 8 9 1 3 6

Advanced: ⭐

  • Reverse a linked list
  • Make a binary search tree with 1 2 3 4 5
  • Find duplicates in an array using hash map
  • Prefix sum array of 1 2 3 4 5 with time complexity O(n)