"DNNs can learn hierarchical features, with each layer learning progressively more abstract features, and generalizes better. SNNs are better for simplier problems involving smaller datasets and if low latency is required."
Louie Z. - "DNNs can learn hierarchical features, with each layer learning progressively more abstract features, and generalizes better. SNNs are better for simplier problems involving smaller datasets and if low latency is required."See full answer
"The company culture is very supportive and collaborative. Googlers are encouraged to be creative and innovative, and there is a lot of freedom to explore new ideas.
The work is challenging and rewarding. Googlers have the opportunity to work on cutting-edge projects that have a real impact on the world.
The company is committed to diversity and inclusion. Google is a great place to work for people from all backgrounds and with all different perspectives.
I am confident that I would b"
Praful B. - "The company culture is very supportive and collaborative. Googlers are encouraged to be creative and innovative, and there is a lot of freedom to explore new ideas.
The work is challenging and rewarding. Googlers have the opportunity to work on cutting-edge projects that have a real impact on the world.
The company is committed to diversity and inclusion. Google is a great place to work for people from all backgrounds and with all different perspectives.
I am confident that I would b"See full answer
Software Engineer
Behavioral
+3 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"// C++ program to print the count of
// subsets with sum equal to the given value X
#include
using namespace std;
// Recursive function to return the count
// of subsets with sum equal to the given value
int subsetSum(int arr[], int n, int i,
int sum, int count)
{
// The recursion is stopped at N-th level
// where all the subsets of the given array
// have been checked
if (i == n) {
// Incrementing the count if sum is
// equal to 0 and returning the count
if (sum == 0)"
Ajay U. - "// C++ program to print the count of
// subsets with sum equal to the given value X
#include
using namespace std;
// Recursive function to return the count
// of subsets with sum equal to the given value
int subsetSum(int arr[], int n, int i,
int sum, int count)
{
// The recursion is stopped at N-th level
// where all the subsets of the given array
// have been checked
if (i == n) {
// Incrementing the count if sum is
// equal to 0 and returning the count
if (sum == 0)"See full answer
"#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"
Anonymous Possum - "#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"See full answer
"This is a great question! If you don't mind, I'd love to list 3 strengths and weaknesses then dive a little deeper on one of each of them.
I think my three greatest strengths are:
Empathy
Openness to feedback
Drive
And three weaknesses I have been working to strengthen are:
Sometimes my desire to achieve can put me at risk of overcommitting
Communicating status to the right stakeholders at the appropriate time
Creating detailed and strategic lists of priorities so I can meet th"
Adam M. - "This is a great question! If you don't mind, I'd love to list 3 strengths and weaknesses then dive a little deeper on one of each of them.
I think my three greatest strengths are:
Empathy
Openness to feedback
Drive
And three weaknesses I have been working to strengthen are:
Sometimes my desire to achieve can put me at risk of overcommitting
Communicating status to the right stakeholders at the appropriate time
Creating detailed and strategic lists of priorities so I can meet th"See full answer
"def encode(root):
if not root:
return []
def dfs(node):
if not node:
return
res.append(node.val)
res.append(len(node,children))
for child_node in node.children:
dfs(child_node)
res = []
dfs(root)
return res
def decode(arr):
if not arr:
return None
n = len(arr)
i = 0
def dfs(val, children_count):
if children_count == 0:
return Node(val)
cur_node = Node(val)
cur_node.children = []
for j in range(children_count):
nonlocal i
i += 2
cur_node.children.append(dfs(arr[i], arr[i"
Ying T. - "def encode(root):
if not root:
return []
def dfs(node):
if not node:
return
res.append(node.val)
res.append(len(node,children))
for child_node in node.children:
dfs(child_node)
res = []
dfs(root)
return res
def decode(arr):
if not arr:
return None
n = len(arr)
i = 0
def dfs(val, children_count):
if children_count == 0:
return Node(val)
cur_node = Node(val)
cur_node.children = []
for j in range(children_count):
nonlocal i
i += 2
cur_node.children.append(dfs(arr[i], arr[i"See full answer
"I would first call out the two types of Google Doodles that are published. First would be the static doodle which just shows a picture, and users can get more information on it by hovering on it or clicking on it. Second would be the dynamic google doodles which are either short videos or games through which users engage a bit more.
My top 3 metrics that covers both would be:
Click-through rate and post-click CTR - Although different metrics, I clubbed them since they fall under similar"
Rahul R. - "I would first call out the two types of Google Doodles that are published. First would be the static doodle which just shows a picture, and users can get more information on it by hovering on it or clicking on it. Second would be the dynamic google doodles which are either short videos or games through which users engage a bit more.
My top 3 metrics that covers both would be:
Click-through rate and post-click CTR - Although different metrics, I clubbed them since they fall under similar"See full answer
"The instructions give an incorrect answer I think?
"""
// tree
1
/ \
2 3
/ \
4 5
The diameter is 4, which is the length of the path [4, 2, 1, 3] or [5, 2, 1, 3].
"""
My code returns 3 for this example, and yet passes all the tests
\# debug your code below
root = Node(1)
root.left = Node(2)
root.right = Node(3)
root.left.left = Node(4)
root.left.right = Node(5)
print(diameterOfTree(root))"
Adam F. - "The instructions give an incorrect answer I think?
"""
// tree
1
/ \
2 3
/ \
4 5
The diameter is 4, which is the length of the path [4, 2, 1, 3] or [5, 2, 1, 3].
"""
My code returns 3 for this example, and yet passes all the tests
\# debug your code below
root = Node(1)
root.left = Node(2)
root.right = Node(3)
root.left.left = Node(4)
root.left.right = Node(5)
print(diameterOfTree(root))"See full answer
"Maybe we can use this solution:
1, connect all the strings together, and add an integer value ahead each string.
2, use Huffmans algorithm to encode the step 1 result, to make the result size smaller.
3, return the root of Huffmans tree.
This solution man be slower than the common serialize method, but it can save a lot of memory, I think, at lease doing serialize is mainly for tranfering data or storing data."
Jordan Z. - "Maybe we can use this solution:
1, connect all the strings together, and add an integer value ahead each string.
2, use Huffmans algorithm to encode the step 1 result, to make the result size smaller.
3, return the root of Huffmans tree.
This solution man be slower than the common serialize method, but it can save a lot of memory, I think, at lease doing serialize is mainly for tranfering data or storing data."See full answer
"Situation:
As a Product Manager at Cisco, I was leading the development of a new highly critical product for enterprise customers. Midway through the project, a key engineering team was reassigned due to an urgent security patch, leaving us understaffed with only six weeks left before a critical customer pilot.
Task:
I had to ensure the product launched on time without sacrificing key features, despite losing half of our engineering team. The challenge was to"
fuzzyicecream14 - "Situation:
As a Product Manager at Cisco, I was leading the development of a new highly critical product for enterprise customers. Midway through the project, a key engineering team was reassigned due to an urgent security patch, leaving us understaffed with only six weeks left before a critical customer pilot.
Task:
I had to ensure the product launched on time without sacrificing key features, despite losing half of our engineering team. The challenge was to"See full answer