{"id":19074512,"url":"https://github.com/mo7amed-hussein/useful-solved-problems","last_synced_at":"2026-06-12T21:31:10.254Z","repository":{"id":169480578,"uuid":"96584276","full_name":"mo7amed-hussein/useful-solved-problems","owner":"mo7amed-hussein","description":"This is set of useful c small functions many of them were asked in c related interviews","archived":false,"fork":false,"pushed_at":"2017-07-07T23:51:04.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T04:41:15.572Z","etag":null,"topics":["c","interview-practice","interview-preparation","interview-questions","usefull-questions"],"latest_commit_sha":null,"homepage":"","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/mo7amed-hussein.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":"2017-07-07T23:49:13.000Z","updated_at":"2024-10-06T02:52:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4dcf30e-2667-4b42-8339-f4d22ef22f36","html_url":"https://github.com/mo7amed-hussein/useful-solved-problems","commit_stats":null,"previous_names":["mo7amed-hussein/useful-solved-problems"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mo7amed-hussein/useful-solved-problems","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo7amed-hussein%2Fuseful-solved-problems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo7amed-hussein%2Fuseful-solved-problems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo7amed-hussein%2Fuseful-solved-problems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo7amed-hussein%2Fuseful-solved-problems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mo7amed-hussein","download_url":"https://codeload.github.com/mo7amed-hussein/useful-solved-problems/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo7amed-hussein%2Fuseful-solved-problems/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","interview-practice","interview-preparation","interview-questions","usefull-questions"],"created_at":"2024-11-09T01:51:26.508Z","updated_at":"2026-06-12T21:31:10.211Z","avatar_url":"https://github.com/mo7amed-hussein.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is set of useful c small functions\nmany of them were asked in c related interviews\n\nIt contain the following functions\n==================================\n\t- flipSequence : print flip flop sequence like 22,3,22,3,22,3,22,3,.... and so on\n\t- getFibonaci : generate nth a fibonaci sequence \n\t- printFibionaci : print n fibonaci sequence\n\t- getPower : calcuate power on number ,regarding negative exponent\n\t- echoReverse : print characters in reverse order after new line '\\n'\n\t- dec2bin : convert decimal to binary\n\t- swapXor : swap two numbers using xor\n\t- swapAS : swap two numbers using addition and subtraction\n\t- swapTemp : swap two numbers using temporary variable\n\t- printArr : print content of an array of int\n\t- reverseArr : reverse content of an array of int\n\t- getMin : get minimum value in an array of int\n\t- getMax : get maximum value in an array of int\n\t- drawTri1 : draw triangle in console like right arrow head\n\t- drawTri2 : draw triangle in console like up arrow head\n\t- printArrWR : print content of an array of int without repeat [1,1,2,3,2,2,3,4] =\u003e [1,2,3,4]\n\t- fact : calculate factorial of number\n\t- isArrMirrored : check if array is mirrored or not\n\t- countOnes : count ones in binary representation of decimal number\n\t- little2big : convert little indian to big indian 0xffaabbcc =\u003e 0xccbbaaff \n \n\nfinally\n=======\n\t\nI would also gladly welcome your questions and contributions.\n\nyou are welcome to contact me at\n\nm.hussein1389@gmail.com\n\nHave fun!\n\nMohamed Hussein.\n \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo7amed-hussein%2Fuseful-solved-problems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmo7amed-hussein%2Fuseful-solved-problems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo7amed-hussein%2Fuseful-solved-problems/lists"}