好久沒換主題了,我希望小夥伴們過得健康,在一連串日文英文程式語言硬核轟炸之後,讓我們回歸生活,把焦點放到需要一輩子關注的問題- 吃。
程式語言
愛を知るまでは
371. Sum of Two Integers
Given two integers a and b, return the sum of the two integers without using the operators + and -.
Example 1:
1 | Input: a = 1, b = 2 |
Example 2:
1 | Input: a = 2, b = 3 |
347. Top K Frequent Elements
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.
Example 1:
1 | Input: nums = [1,1,1,2,2,3], k = 2 |
Example 2:
1 | Input: nums = [1], k = 1 |