Robot Paths
A robot located at the top left corner of a 5x5 grid is trying to reach the bottom right corner. The robot can move either up, down, left, or right, but cannot visit the same spot twice. How many possible unique paths are there to the bottom right corner?
Make your solution work for a grid of any size.
Braces
Braces in a string are considered to be balanced if the following criteria are met: For every opening brace (i.e., (, {, or [), there is a matching closing brace (i.e., ), }, or ]) of the same type (i.e., ( matches ), { matches }, and [ matches ]). An opening brace must appear before (to the left of) its matching closing brace. For example, ]{}[ is not balanced. No unmatched braces lie between some pair of matched braces. For example, ({[]}) is balanced, but {[}] and [{)] are not balanced.
Complete the braces function in the editor below. It has one parameter: an array of n strings, values. For each string in values, it must determine if all the braces in the string are balanced. The function must return an array of strings where the string at each index i (where 0 ≤ i < n) denotes whether or not all the braces in string valuesi were balanced. If yes, then index i in the return array must contain the string YES; otherwise, index i in the return array must contain the string NO.
Todo List Mark
Books on personal productivity emphasize the importance of using a To-Do-List. This list helps you organize your daily tasks and monitor your performance over time. Your task is to make it available online.
You are provided with some code stubs which implement a limited functionality for this app. Modify the code to enable the following operation:
Mark an item as complete.
You can store the data in Javascript objects or in local storage.
Please Note: This question is graded manually by a tech manager. So you can be as creative as you want to be. You can test your code by pressing the "Render" button below. You can use any library/framework to create this. You are free to design the UX of your choice.
Javascript Assignment
Consider the following JavaScript code snippet:
function foo () {
return 5
}
What will the code let myVar = foo; do?
Assign the integer value 5 to the variable myVar
Assign a reference to the foo function to the variable myVar
Throw an exception
Nothing
CSS Resize
Consider the following CSS3 code:
div {
border: 2px solid;
resize: horizontal;
overflow: auto;
}
What is the job of resize attribute here? To make the div element resizable by the user. To make the div element resizable by the browser. To increase the horizontal padding. To make the div element resizable by javascript.
Which of the following code snippet append an element value at the end of the array, arr?
arr[arr.length + 1] = value
arr[arr.length] = value
arr[arr.length - 1] = value
arr = arr + value
Consider the two functions below. Will they return the same thing? Select the most accurate response.
function foo1()
{
return {
bar: "hello"
};
}
function foo2()
{
return
{
bar: "hello"
};
}