Day 253 Problem 2 Solved
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Code\n\nclass Solut
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Code\n```\nclass Solution {\npublic:\n    int numberOfChild(int n, int k) {\n        int ans = k % (2 * n - 2);\n        return (ans < n) ? ans : 2 * n - 2 - ans;\n    }\n};\n```
['C++']