-
Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h ...
-
Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used.
Not...
-
Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the hou...
-
In the “100 game,” two players take turns adding, to a running total, any integer from 1..10. The player who first causes the...
-
这些年来,提出了几个normalization的方法,这里做一个总结。主要包括以下几个:
Batch Normalization
Layer Normalization
Instance Normalization
Group Normalizat...
-
You are given a binary tree in which each node contains an integer value.
Find the number of paths that sum to a given value....
-
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.
Ple...
-
Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter ...
-
Given an 2D board, count how many battleships are in it. The battleships are represented with
1'X'
s, empty slots ...
-
Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volum...