https://github.com/mo7amed-hussein/useful-solved-problems
This is set of useful c small functions many of them were asked in c related interviews
https://github.com/mo7amed-hussein/useful-solved-problems
c interview-practice interview-preparation interview-questions usefull-questions
Last synced: 25 days ago
JSON representation
This is set of useful c small functions many of them were asked in c related interviews
- Host: GitHub
- URL: https://github.com/mo7amed-hussein/useful-solved-problems
- Owner: mo7amed-hussein
- Created: 2017-07-07T23:49:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T23:51:04.000Z (about 9 years ago)
- Last Synced: 2025-02-22T04:41:15.572Z (over 1 year ago)
- Topics: c, interview-practice, interview-preparation, interview-questions, usefull-questions
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is set of useful c small functions
many of them were asked in c related interviews
It contain the following functions
==================================
- flipSequence : print flip flop sequence like 22,3,22,3,22,3,22,3,.... and so on
- getFibonaci : generate nth a fibonaci sequence
- printFibionaci : print n fibonaci sequence
- getPower : calcuate power on number ,regarding negative exponent
- echoReverse : print characters in reverse order after new line '\n'
- dec2bin : convert decimal to binary
- swapXor : swap two numbers using xor
- swapAS : swap two numbers using addition and subtraction
- swapTemp : swap two numbers using temporary variable
- printArr : print content of an array of int
- reverseArr : reverse content of an array of int
- getMin : get minimum value in an array of int
- getMax : get maximum value in an array of int
- drawTri1 : draw triangle in console like right arrow head
- drawTri2 : draw triangle in console like up arrow head
- printArrWR : print content of an array of int without repeat [1,1,2,3,2,2,3,4] => [1,2,3,4]
- fact : calculate factorial of number
- isArrMirrored : check if array is mirrored or not
- countOnes : count ones in binary representation of decimal number
- little2big : convert little indian to big indian 0xffaabbcc => 0xccbbaaff
finally
=======
I would also gladly welcome your questions and contributions.
you are welcome to contact me at
m.hussein1389@gmail.com
Have fun!
Mohamed Hussein.