We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Graph Theory
- Kth Ancestor
- Discussions
Kth Ancestor
Kth Ancestor
Sort by
recency
|
32 Discussions
|
Please Login in order to post a comment
Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Kth Ancestor Problem Solution
Here is the solution of Kth Ancestor Click Here
can anyone help why my code is giving segmentation fault on some test cases
https://zeroplusfour.com/kth-ancestor-hackerrank-solution/
Here's how I did in all languages Java 8 , C++ , C , Python 3, Python 2.
For test case 14th, One of the query where to find 30195 child of 60644 (2 60644 30195). I got 2573 which is 30195th. But in test answer it is 0. Anyone has solved that one or issue around it ?