1. Write a function to traverse a binary tree and find the minimum value.
2. Tell me about Spring Boot.
3. Given a string, find the first non-repeating character in it and return its index. If it does not exist, return -1.
4. Given a string composed of the characters B, D, U, and H, determine if the string is steady by checking whether each character appears exactly n/4 times, where n is the total length of the string. For example, the strings "HBDU" and "BBUDHUDH" are both considered steady.
5. Ninja and the Maze Problem Statement Ninja is stuck in a maze represented as a 2D grid. He can move in four directions (Up, Down, Left, Right) until he hits a wall ('1'). Once stopped, he can choose a new direction. Determine if Ninja can reach the destination from the starting point. Example: Input: maze = [[0, 0, 1], [1, 0, 0], [1, 0, 0]]start = [2, 2]destination = [0, 0] Output: True Explanation: Ninja can reach the destination using paths such as [left -> up -> left] or [up -> left -> up -> left]. Input: The first line contains an integer ‘T’ denoting number of test cases.Each test case includes:- Two integers ‘M’ and ‘N’ marking maze dimensions.- An ‘M’x‘N’ matrix representing the maze.- Two integers for starting point coordinates.- Two integers for destination coordinates. Output: For each test case, print 'True' if path exists, otherwise 'False'. Constraints: 1 <= T <= 50 1 <= M, N <= 100 0 <= MAZE[i][j] <= 1 Note: No need to print; focus on implementing the function.
Browse through a variety of job opportunities tailored to your skills and preferences. Filter by location, experience, salary, and more to find your perfect fit.
We have sent an OTP to your contact. Please enter it below to verify.