Tag：Total amount

Time：20211123
Operating excel columns 1 # get the total number of columns 2 print(sheet.ncols) 3 # obtain the data of a specific column and a list composed of cell objects 4 print(sheet.col(3)) 5 # get the specific value of a cell 6 print(sheet.col(3)[3].value) 7 # get the value of a row 8 print(sheet.col_values(3)) 9 # print […]

Time：202151
Using PHP to send red packets, when we enter the number of red packets and the total amount, PHP will randomly allocate each amount according to these two values to ensure that everyone can get a red packet. The amount of each red packet is different, that is, the amount of red packets should be […]

Time：2021222
Buckle questions 169, 171, 189, 198 and 202 169. Most elements code: class Solution { public int majorityElement(int[] nums) { Arrays.sort(nums); return nums[nums.length/2]; } } 171. Serial number of Excel table How to solve the problem: Tag: String traversal, decimal conversion The initialization result is ans = 0. During traversal, each letter is subtracted from […]

Time：2020918
The following are two very classic dynamic programming algorithm problems, from the force buckle, the solution is also a cliche. However, the two solutions ranking first in their respective speed are very unusual. They open a pit and analyze later. Leetcode 322 change Given coins of different denominations and a total amount. Write a function […]

Time：2020430
The following are two very classic dynamic programming algorithm problems, from the force button, the solution is also a commonplace. However, the two solutions ranking first in their respective speed are very unusual. Open a pit and analyze later. Leetcode 322 change exchange Give coins of different denominations and a total amount. Write a function […]

Time：2020426
Get today’s order total and order total //Fields distinguish the order whose order type is not equal to 1, and the order amount is money and freight $fields = [ ‘COUNT(1) as order_num’, ‘SUM(IF(order_type != 1, money + order_freight, 0)) as order_price’ ]; //Where is the payment status of today’s order $where = [ [ […]