# How to swap two numbers without declaring temporary variables

Difficulty 2

Helpful 6

Save 0

View 968

Related Questions

- What would you do if you found out someone in your team is vilating policy?
- How would you print last n elements of a linked list, n being small compared to size of linked list
- How to find the medium number of a given array
- How would you sort a text file full of phone numbers. You do not have enough memory to load all the file contents at once and sort them. You should write back the sorted list to the file in the end
- Given an input of stream of words find the most recurring word. what is the data structure used for this purpose. what will be the time complexity of that.
- Find the middle element of a singly linked list
- If I arrange the numbers 1 to 100 in a random order and remove one number from this group - give me an algorithm to find the missing number
- Write a function to cause stackoverflow
- Describe how to implement a queue out of stacks. (no coding, just thought process)
- Write a function to find out whether a linked list is cyclic