EPI EPI 4.9 Check if decimal integer is palindrome We are looking at question 4.9 from Elements Of Programming Interviews in Python book. A Palindromic string is one which reads the same forward and backwards. EPI 4.9 Write a program that takes in integer and determines if that integer's representation as
EPI EPI 4.8 Primitive Types Reverse Digits We are looking at question 4.8 from Elements Of Programming Interviews in Python book. EPI 4.8 Write a program which takes an integer and returns the integer corresponding to the digits of the input written in reverse order. For example: input: 42
EPI EPI 4.7 Compute x^y We are looking at question 4.7 from Elements Of Programming Interviews in Python book. EPI 4.7 Write a program that takes a double x and an integer y and returns x^y. If you are applying for software engineering positions I highly
EPI EPI 4.3 Reverse Bits with lookup table We are looking at question 4.3 from Elements Of Programming Interviews in Python book. EPI 4.3 Write a program that takes a 64-bit unsigned integer and returns the 64-bit unsigned integer consisting of the bits of the input in reverse order. For
EPI EPI 4.3 Reverse Bits We are looking at question 4.3 from Elements Of Programming Interviews in Python book. EPI 4.3 Write a program that takes a 64-bit unsigned integer and returns the 64-bit unsigned integer consisting of the bits of the input in reverse order. For
EPI EPI 4.1 Primitive Types Variant question 3: Test if X is a power of 2 We are looking at question 4.1 from Elements Of Programming Interviews in Python book. Write expressions that uses bitwise operators, equality checks and boolean operators to test if x is a power of 2 in O(1) time. Test if is a power
EPI EPI 4.1 Primitive Types Variant question 2: Compute X mod a power of two We are looking at question 4.1 from Elements Of Programming Interviews in Python book. Write expressions that uses bitwise operators, equality checks and boolean operators to compute x mod a power of two. i.e. your program returns 13 for 77 mod 64.
EPI EPI 4.1 Primitive Types Variant question 1: Right propagate the rightmost set bit in X We are looking at question 4.1 from Elements Of Programming Interviews in Python book. Write expressions that uses bitwise operators, equality checks and boolean operators to right propagate the rightmost set bit in X in O(1) time. If you are applying for
EPI EPI 4.1 Computing The Parity Of A Word In Python - Version 4 We are looking at question 4.1 from Elements Of Programming Interviews Book. How to compute parity of binary word version 4 using CPU's word level XOR instructions. If you are applying for software engineering positions I highly recommend getting this book. How to
EPI EPI 4.1 Computing The Parity Of A Word In Python - Version 3 We are looking at question 4.1 from Elements Of Programming Interviews Book. How to compute parity of binary word using array based cache lookup. If you are applying for software engineering positions I highly recommend getting this book. 4.1 Computing the parity
EPI EPI 4.1: Computing The Parity Of A Word In Python - Version 2 Elements Of Programming Interviews Python. How to compute parity of binary word Version 2 with a bit fiddling trick. X & (X-1) We are looking at question 4.1 from Elements Of Programming Interviews Book. If you are applying for software engineering positions I
EPI EPI 4.1: Computing The Parity Of A Word In Python. We are looking at question 4.1 from Elements Of Programming Interviews Book. If you are applying for software engineering positions I highly recommend getting this book. 4.1 Computing the parity of a word The parity of a binary word is 1 if