上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 76 下一页
摘要: Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= i + K 阅读全文
posted @ 2020-01-15 13:54 Schwifty 阅读(591) 评论(0) 推荐(0)
摘要: There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [a, b] represents a con 阅读全文
posted @ 2020-01-15 12:02 Schwifty 阅读(325) 评论(0) 推荐(0)
摘要: We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [a, b] = [nums[2 阅读全文
posted @ 2020-01-14 13:58 Schwifty 阅读(286) 评论(0) 推荐(0)
摘要: Given 3 positives numbers a, b and c. Return the minimum flips required in some bits of a and b to make ( a OR b == c ). (bitwise OR operation).Flip o 阅读全文
posted @ 2020-01-14 09:25 Schwifty 阅读(146) 评论(0) 推荐(0)
摘要: Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Return a list of two integers [A, 阅读全文
posted @ 2020-01-14 07:15 Schwifty 阅读(224) 评论(0) 推荐(0)
摘要: 876. Middle of the Linked List Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle 阅读全文
posted @ 2020-01-10 03:54 Schwifty 阅读(113) 评论(0) 推荐(0)
摘要: Given the array arr of positive integers and the array queries where queries[i] = [Li, Ri], for each query i compute the XOR of elements from Li to Ri 阅读全文
posted @ 2020-01-09 04:55 Schwifty 阅读(341) 评论(0) 推荐(0)
摘要: Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: Characters ('a' to 'i') are repre 阅读全文
posted @ 2020-01-09 04:04 Schwifty 阅读(255) 评论(0) 推荐(0)
摘要: Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number combinatio 阅读全文
posted @ 2019-12-22 06:43 Schwifty 阅读(615) 评论(0) 推荐(0)
摘要: Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return that in 阅读全文
posted @ 2019-12-22 06:33 Schwifty 阅读(344) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 76 下一页