
Tech Revolvers
![Monk and Philosopher’s Stone[Hackerearth Solution]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerearth-logo.jpg?w=997)
Monk and Philosopher’s Stone[Hackerearth Solution] PROBLEM: Harry Potter wants to get the Philosopher’s stone to protect it from Snape. Monk being the guard of Philosopher’s Stone is very greedy and has a special bag, into which he can add one gold coin at a time or can remove the last gold coin he added. Monk Read more
![Count Substrings[GeeksforGeeks solution]](https://additionalknowledge.com/wp-content/uploads/2017/12/geek_logi_-low_res.png?w=667)
Count Substrings[GeeksforGeeks solution] Question: Given a binary string, count number of substrings that start and end with 1. For example, if the input string is “00100101”, then there are three substrings “1001”, “100101” and “101”. Input: The first line contains T denoting the number of testcases. Then follows description of testcases. Each case contains a string Read more
![Find Merge Point of Two Lists [hackerRank Solution]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerrank.png?w=600)
Find Merge Point of Two Lists [hackerRank Solution] Question: Given pointers to the head nodes of linked lists that merge together at some point, find the Node where the two lists merge. It is guaranteed that the two head Nodes will be different, and neither will be NULL. In the diagram below, the two lists converge Read more
![Delete duplicate-value nodes from a sorted linked list[HackerRank solution]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerrank.png?w=600)
Delete duplicate-value nodes from a sorted linked list[HackerRank solution] Question: You’re given the pointer to the head node of a sorted linked list, where the data in the nodes is in ascending order. Delete as few nodes as possible so that the list does not contain any value more than once. The given head pointer Read more
![Get Node Value [HackerRank solution]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerrank.png?w=600)
Get Node Value [HackerRank solution] You’re given the pointer to the head node of a linked list and a specific position. Counting backwards from the tail node of the linked list, get the value of the node at the given position. A position of 0 corresponds to the tail, 1 corresponds to the node before Read more
![Monk and Rotation [Hacker earth]](https://additionalknowledge.com/wp-content/uploads/2017/12/hackerearth-logo.jpg?w=997)
Monk and Rotation [Hacker earth] PROBLEM: Monk loves to preform different operations on arrays, and so being the principal of Hackerearth School, he assigned a task to his new student Mishki. Mishki will be provided with an integer array AA of size NN and an integer KK , where she needs to rotate the array in the right direction by K Read more