当前位置:网站首页>20220602 Mathematics: Excel table column serial number
20220602 Mathematics: Excel table column serial number
2022-07-03 10:11:00 【Seeyouagain】
Title Description : Give you a string columnTitle
, Express Excel Column names in the table . return The column sequence number corresponding to the column name .
coded :
public int titleToNumber(String columnTitle) {
Long result=0L;
if (null == columnTitle){
return result.intValue();
}
char[] chars = columnTitle.toCharArray();
for(int i=0;i<chars.length;i++)
{
result = (result+chars[i]-'A'+1) * 26;
}
result = result / 26;
return result.intValue();
}
边栏推荐
- Opencv feature extraction - hog
- 2. Elment UI date selector formatting problem
- ADS simulation design of class AB RF power amplifier
- 20220605数学:两数相除
- Opencv gray histogram, histogram specification
- Positive and negative sample division and architecture understanding in image classification and target detection
- Problems encountered when MySQL saves CSV files
- 01 business structure of imitation station B project
- 4G module at command communication package interface designed by charging pile
- Liquid crystal display
猜你喜欢
RESNET code details
CV learning notes - clustering
51 MCU tmod and timer configuration
LeetCode - 508. 出现次数最多的子树元素和 (二叉树的遍历)
LeetCode - 673. Number of longest increasing subsequences
openCV+dlib實現給蒙娜麗莎換臉
CV learning notes - BP neural network training example (including detailed calculation process and formula derivation)
My notes on intelligent charging pile development (II): overview of system hardware circuit design
3.2 Off-Policy Monte Carlo Methods & case study: Blackjack of off-Policy Evaluation
QT is a method of batch modifying the style of a certain type of control after naming the control
随机推荐
20220602数学:Excel表列序号
Leetcode - 1670 conception de la file d'attente avant, moyenne et arrière (conception - deux files d'attente à double extrémité)
20220606数学:分数到小数
Tensorflow built-in evaluation
LeetCode - 1670 设计前中后队列(设计 - 两个双端队列)
RESNET code details
Window maximum and minimum settings
LeetCode - 705 设计哈希集合(设计)
3.1 Monte Carlo Methods & case study: Blackjack of on-Policy Evaluation
(2) New methods in the interface
LeetCode - 5 最长回文子串
Basic use and actual combat sharing of crash tool
One click generate traffic password (exaggerated advertisement title)
Development of intelligent charging pile (I): overview of the overall design of the system
20220607其他:两整数之和
2312. Selling wood blocks | things about the interviewer and crazy Zhang San (leetcode, with mind map + all solutions)
[combinatorics] combinatorial existence theorem (three combinatorial existence theorems | finite poset decomposition theorem | Ramsey theorem | existence theorem of different representative systems |
Adaptiveavgpool1d internal implementation
Swing transformer details-2
Application of 51 single chip microcomputer timer