{"id":16365908,"url":"https://github.com/harshcasper/miscprogramsinc","last_synced_at":"2026-02-16T20:30:17.185Z","repository":{"id":106117258,"uuid":"173517089","full_name":"HarshCasper/MiscProgramsInC","owner":"HarshCasper","description":"This repository consists of some miscellaneous topics and programs coded in C Programming Language.","archived":false,"fork":false,"pushed_at":"2019-10-27T03:09:32.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T01:20:49.307Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HarshCasper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-03T01:16:04.000Z","updated_at":"2019-10-27T03:09:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d574c7a5-9e38-421c-8cf8-2a6f433455f8","html_url":"https://github.com/HarshCasper/MiscProgramsInC","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshCasper%2FMiscProgramsInC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshCasper%2FMiscProgramsInC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshCasper%2FMiscProgramsInC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshCasper%2FMiscProgramsInC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarshCasper","download_url":"https://codeload.github.com/HarshCasper/MiscProgramsInC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239825015,"owners_count":19703199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T02:44:47.559Z","updated_at":"2026-02-16T20:30:17.126Z","avatar_url":"https://github.com/HarshCasper.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiscProgramsInC\nThis repository consists of some miscellaneous topics and programs coded in C Programming Language.\n\n- MeanMedianMode:\n\nThis is a simple implementation of the concept of Mean, Median and Mode using Arrays to store the elements. 'Mean' is the average of all the elements given as an input. 'Median' is the middle value in the list of sorted elements. In case of Odd Number of elements, the middle number is displayed while in case of Even Number of elements two elements in the middle are displayed along with their average. 'Mode' denotes the element which occurs the most among the inputted elements.  Note that Multimodal Elements are not supported and in case of lack of any mode, the smallest element in the array is displayed. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/MeanMedianMode.c).\n\n- Power:\n\nThis program calculates the Power of the Number with a complexity of O(log n). It implements a Recurssive Function which divides\nthe power by 2 each time it is called and if the power is even then a product of the value retrieved through Recursive Function is returned and if Odd then a prooduct of the value retrieved through Recursive Function along with the number itself is returned. For example if the number is 7 and power is 6: Then 6 will be divided by 2 and will be passed to the same function with the number being 6 and root being 3. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/Power.c).\n\n- Menu :\n\nThis is the solution to a problem given [here](https://github.com/jorgegonzalez/beginner-projects#menu-calculator) the user enters a numeric code based upon the things he is buying and the bill is returned to him. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/Menu.c).\n\n- RockPapersScissors :\n\nThis is the implementation of the ridiculously popular Rock, Papers and Scissors Game in C Programming Language where the player plays against a computer. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/RockPaperScissors.c).\n\n- GuessGame :\n\nThis is a C implementation of High Lower Guessing Game where the Computer puts a number and the user needs to guess it. If the\nuser guesses a greater number than what computer has put up, a message is displayed that User has entered a greater number and vice\nversa. In addition, Lifeline Options have also been added to the game to allow the user some hints like whether the number is Even/Odd,\nPrime/Composite or the sum of digits. A Guess counter has also been added for further compatability. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/GuessGame.c).\n\n- PasswordStrenth : \n\nThe is an implementation of Password Strenth Measurer in C Programming Language. This basic Strenth Checker, checks\nthe length of the Password Strenth, the presence of Uppercase Character, Lowercase Character, Digits and finally the Special Characters\nand if all the criteria are met, then the password strenth is strong otherwise medium or weak. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/PasswordStrength.c).\n\n- Stack :\n\nThe following program is the implementation of the Stack Data Structure using Arrays on C-Programming Languages with basic operations\nlike Push, Pop, Display and Peek performed on the Stack. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/Stack.c).\n\n- LinkedList :\n\nThis program is an implementation of Linked List in C Programming Language with Insertion and Display Operations performed on them. Solution can be found here [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/LinkedList.c).\n\n- Anagram:  \n\nThe following program is an implementation of the popular Anangram problem wherein if two words are formed off the same set of\ncharacters, they can be called as anagrams. Example of anagrams are 'tab' and 'bat' which are formed off the same set of characters\n{a,b,t}. Hence here is an implementation of the Anagrams problem which calculates the sum of value of ASCII characters to check if\ntwo words are Anangram or not. Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/Anagram.c).\n\n- Insertion Sort \n\nThis program implements Insertion Sort in C-Programming Language. Insertion Sort is a popular Sorting Algorithm which sorts an array in O(n^2) Time Complexity following an Incremental Approach Programming Paradigm. It works by comparing a particular element with the rest elements in the array and then shifts the element if an element is found greater.  Solution can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/insertion-sort.c).\n\n- Bubble Sort \n\nBubble Sort is one of the most commonly used Sorting Algorithm and is best preffered for Arrays/Lists with less number of elements. It works by checking each and every adjacent element in the list/array and if the previous element is greater than the latter one then a Swap Operation is performed to place the element in its correct position with respect to the particular element. The total number of passes done are (Number of Elements-1) within which the whole of the array will be sorted out. Solution can be found [here](https://github.com/HarshCasper/Sorting/blob/master/bubble-sort.c).\n\n- Quick Sort \n\nQuick Sort is one of the most popular Sorting Algorithms out there in the field of Programming designed and implemented here in the C Programming Language demonstrating a Time Complexity of O(nlog(n)) in its Best Case while O(n^2) in it's worst case making it significantly faster than many popular Sorting Algorithms. It follows the \"Divide and Conquer\" paradigm where it divides the array into two equal halves as it is easier to sort them, with a Pivot element near the middle of array allowing to elements to move to their apt position. The primary disadvantage of such an array is the use of Recursion which leads to High Stack Consumption. Solution can be found [here](https://github.com/HarshCasper/Sorting/blob/master/quick-sort.c).\n\n- Diwali \n\nDiwali is a classic rendition of the Diwali Lamp using Pattern Programming which can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/diwali.c)\n\n- Cracker\n\nCracker is the classic rendition of the Diwali using Pattern Programming which can be found [here](https://github.com/HarshCasper/MiscProgramsInC/blob/master/cracker.c)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshcasper%2Fmiscprogramsinc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshcasper%2Fmiscprogramsinc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshcasper%2Fmiscprogramsinc/lists"}