上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 76 下一页
摘要: Write a SQL query to get the second highest salary from the Employee table. For example, given the above Employee table, the query should return 200 a 阅读全文
posted @ 2019-01-13 16:34 bernieloveslife 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Table: Person Table: Address Write a SQL query for a report that provides the following information for each person in the Person table, regardless if 阅读全文
posted @ 2019-01-13 16:33 bernieloveslife 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft 阅读全文
posted @ 2019-01-13 16:30 bernieloveslife 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers. You may 阅读全文
posted @ 2019-01-13 16:25 bernieloveslife 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return 1. For 阅读全文
posted @ 2019-01-09 17:34 bernieloveslife 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Sort a linked list in O(n log n) time using constant space complexity. Example 1: Input: 4 2 1 3 Output: 1 2 3 4 Example 2: Input: 1 5 3 4 0 Output: 1 阅读全文
posted @ 2019-01-09 17:12 bernieloveslife 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially contains only the first elem 阅读全文
posted @ 2019-01-09 16:57 bernieloveslife 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. Now, you are given p 阅读全文
posted @ 2019-01-09 16:14 bernieloveslife 阅读(170) 评论(0) 推荐(0) 编辑
摘要: (a) 推导sigmoid的导数公式 y = 1/(1+exp( x)) Answer: y' = y (1 y) sigmoid的导数形式是十分简洁的,这也是sigmoid函数使用广泛的一个原因。 (b) 当使用交叉熵作为loss function时,推导其梯度公式,输入的y是一个one hot向 阅读全文
posted @ 2019-01-08 18:39 bernieloveslife 阅读(293) 评论(0) 推荐(0) 编辑
摘要: (a) theory 证明对于任意输入向量x和常数c,softmax的输出不会随着c的改变而改变,即softmax(x) = softmax(x+c) note:在实际使用中,经常利用这个性质,将每个元素x减去最大的那个元素,即最大值为0. 证明:利用softmax的公式分别将两边展开计算即可。 ( 阅读全文
posted @ 2019-01-08 18:36 bernieloveslife 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 76 下一页