Tag: DSA
- Nth XOR Fibonacci numberGiven three integers a, b and N where a and b are the first two terms of the XOR Fibonacci series and the task is to find the Nth term. The Nth term of the XOR
- Need for Abstract Data Type and ADT ModelPrerequisite: Abstract Data Types or ADT Why Abstract Data Type became a necessity?
- Comparing X^Y and Y^X for very large values of X and YGiven two integer X and Y, the task is compare XY and YX for large values of X and Y.Examples:
- Sand Timer Flip Counting ProblemGiven two integers A and B representing the time taken by two different Sand timers to get empty. The task is to find the count of flips of each timer till the
- Reverse every word of the string except the first and the last characterGiven string str consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of the words.
- Delete the last leaf node in a Binary TreeGiven a Binary Tree, the task is to find and DELETE the last leaf node.The leaf node is a node with no children. The last leaf node would be the node that is tr