How it works
Logo@2xLogo mindzip color
Login

ahmed kamel taha

ft
01Follow
FollowingFollowers

Quotes
1227

What is Hamming Code?
9
Google Interview
What is the square root of 256?
8
Google Interview
2^16
6
Google Interview
Using bitwise operations, how would you test that a number is a power of 2?
4
Google Interview
What does ELF stand for?
3
Google Interview
example of a latency device
4
Google Interview
example of a throughput device
3
Google Interview
What is the Hamming Distance?
3
Google Interview
What are the 5 steps of the compiling process?
3
Google Interview
What is parsing?
2
Google Interview
What is lexical analysis?
2
Google Interview
What is code generation?
2
Google Interview
4 * 16
3
Google Interview
2 ^ 4
2
Google Interview
2^3
2
Google Interview
2^5
2
Google Interview
2^6
2
Google Interview
2^7
2
Google Interview
2^8
2
Google Interview
2^9
2
Google Interview
2^10
3
Google Interview
2^11
2
Google Interview
2^12
2
Google Interview
2^13
2
Google Interview
2^14
2
Google Interview
2^15
2
Google Interview
2^32
2
Google Interview
size of char in bits
2
Google Interview
size of char in bytes
2
Google Interview
size of bool in bits
2
Google Interview
size of short in bits
2
Google Interview
size of short in bytes
2
Google Interview
size of int in bits
2
Google Interview
size of int in bytes
2
Google Interview
size of long in bits
2
Google Interview
size of long in bytes
2
Google Interview
size of long long in bits
2
Google Interview
size of long long in bytes
2
Google Interview
size of float in bits
2
Google Interview
size of float in bytes
2
Google Interview
size of double in bits
2
Google Interview
size of double in bytes
1
Google Interview
size of wchar_t in bits
1
Google Interview
size of wchar_t in bytes
1
Google Interview
Write a function that reverses a linked list, with this argument: pointer to pointer to the head node.
1
Google Interview
Delete a given value from a BST rooted at given node. Returns a pointer to node.
1
Google Interview
Get the successor of a value in a BST rooted by given node. Returns int.
Google Interview
Using recursion, insert a value into a tree: root = insert(node*, int)
Google Interview
Using an iterative approach, insert a value into a BST: insert(node*, int)
Google Interview
Write a method is_binary_search_tree that returns true if a given tree is a BST (use helper function).
Google Interview
Using an iterative approach, write a function find_node(bst_node* root, int target) that returns the node with the given target value in a BST.
Google Interview
Using an recursive approach, write a function: find_node(bst_node* node, int value) that returns the node with the given target value in a BST.
Google Interview
Function that returns the height (in nodes) of a BST: int get_height(bst_node* node)
Google Interview
How many levels in a complete binary tree of size n?
Google Interview
How can build heap be done in linear time?
Google Interview
C or Python: Sort an array of numbers using heap sort.
Google Interview
How are queues usually implemented?
Google Interview
How is a deque usually implemented?
Google Interview
How would you swap 2 integers using only bitwise operations?
Google Interview
How would you turn ON the 3rd bit from the end in a bitstring?
Google Interview
How would you turn OFF the 3rd bit from the end in a bitstring?
Google Interview
Write a function that calculates the Hamming distance.
Google Interview
Write a function to calculate the Hamming weight of an integer. (Kernighan method)
Google Interview
Write a function that calculates the Hamming weight in constant time. Divide and Conquer strategy.
Google Interview
Write a function that tells you if a number is even, using bitwise operation.
Google Interview
Write a function to add 2 integers using bitwise operations.
Google Interview
Write a function to get the sign of an integer.
Google Interview
Write a function to calculate the absolute value of a 32-bit integer.
Google Interview
Write a binary search function that works iteratively, taking a target int, array of ints, and size of the array, returning the index of the found item, or -1.
Google Interview
Write a binary search function that works recursively, returning the index of the found item, or -1.
Google Interview
In C or Python, Write a universal hashing function for a string, taking as arguments a string and the capacity of the hashtable.
Google Interview
Describe the universal hashing function for an integer. What arguments would it need? What would it look like?
Google Interview
What is a Binary Search Tree?
Google Interview
What is an AVL tree?
Google Interview
What is a red-black tree?
1
Google Interview
What is a splay tree?
Google Interview
What is a treap?
Google Interview
What is typical cache line size?
Google Interview
What is latency?
1
Google Interview
What is a y-fast trie?
Google Interview
What is an x-fast trie?
Google Interview
What is a van Emde Boas tree?
Google Interview
What is a compressed trie?
Google Interview
What relationship of the keys do you lose with a hash table?
Google Interview
Sed command to take a file separated by spaces, turn spaces into newlines, and then sort it alphabetically.
Google Interview
Print columns 2, 3, and 6 from the date command.
Google Interview
Take a file delimited by : and make it tab-delimited.
Google Interview
Output a file with line numbers.
Google Interview
Is quicksort stable?
Google Interview
Can quicksort be done in-place?
Google Interview
Can merge sort be done in-place?
Google Interview
Is merge sort stable?
Google Interview
Is insertion sort stable?
Google Interview
Can insertion sort be done in-place?
Google Interview
Can selection sort be done in-place?
Google Interview
Is selection sort stable?
Google Interview
Is heap sort stable?
Google Interview
Can heap sort be done in-place?
Google Interview
Write merge sort in C (check answer carefully)
Google Interview
Write a MergeSort class in Python (check answer carefully)
Google Interview

We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our Privacy policy.