Describe a function (in C) that does the following Input : an integer. Output: if that integer is 4, the function returns 7. if that integer is 7, the function returns 4. constraints: the input is SURE to be either 4 or 7. no need to validate. you are not allowed to use any condition/flow commands (if, switch, while, for, trinary operator...) you are not allowed to use any external library or import anything (like math..) you are not allowed to use %(modulu), * (multiplication)
Software Developer Co Op Interview Questions
710,613 software developer co op interview questions shared by candidates
How many unique paths are there from B-L point to the T-R point of a chess table? What would be your approach to calculate this?
There is a singly linked list of ints, write a function that takes the head pointer, and prints the list in reverse order
Code a program to check if a given string is matching a given regular expression
How do you print all elements of a linked list.
Given two unsorted arrays, one with event start times and one with end times, find out if any two events overlap.
Given an array where each entry can be another array, and so forth, flatten the array. [4, [3, 6, [9, 1, 9, [5, 1]]], 8] -> [4, 3, 6, 9, 1, 9, 5, 1, 8]
Return the head node of the singly linked list with each pair of nodes swapped. If there is a last odd node leave it in place. Example: Input: 1 -> 2 -> 3 -> 4 -> 5 Output: 2 -> 1 -> 4 -> 3 -> 5
You are given a list of strings (e.g. ["cat", "dog", "hat", "apple", "c"] ). Write a program that would take as input a string containing a wild card character, like "*at", "**t" (could be "cat", "hat", "bat"), "ca*", etc. and return true if there is a corresponding string in the list, and false otherwise.
reverse bits of an integer that is a power of 2 , keeping complexity in mind.
Viewing 691 - 700 interview questions