LeetCode 168. Excel Sheet Column Title

1
2
3
4
5
6
class Solution {
    public String convertToTitle(int n) {
        String ret="";
        int t=n;
        while(t!=0){
            ret=(char)([......]<p class="read-more"><a href="https://www.gerrytang.top/?p=497">Read more</a></p>

LeetCode 1018. Binary Prefix Divisible By 5

1
2
3
4
5
/**
 * Return an array of size *returnSize.
 * Note: The returned array must be malloced, assume caller calls free().
 */

bool* prefixesDivBy5(i[......]<p class="read-more"><a href="https://www.gerrytang.top/?p=493">Read more</a></p>

LeetCode 896. Monotonic Array

1
2
3
4
5
bool isMonotonic(int* A, int ASize) {
    if(ASize==1)return true;
    int flag=0;
    for(int i=1;iA[i-1]){
            if(flag[......]<p class="read-more"><a href="https://www.gerrytang.top/?p=489">Read more</a></p>