Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2020-01-24 10:50:25
阅读次数:
98
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
其他好文 时间:
2020-01-24 09:22:44
阅读次数:
62
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that a ...
分类:
其他好文 时间:
2020-01-24 09:18:30
阅读次数:
75
Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2020-01-24 00:07:46
阅读次数:
93
一、题目要求 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes ...
分类:
其他好文 时间:
2020-01-23 12:26:54
阅读次数:
77
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-23 11:15:55
阅读次数:
75
Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true /** * Defi ...
分类:
其他好文 时间:
2020-01-23 09:28:20
阅读次数:
63
Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values ...
分类:
其他好文 时间:
2020-01-23 09:17:11
阅读次数:
93
原因在于你操作数据库出错了,但是却没有对应的出错处理。 解决方法是,在 $result = mysqli_query($conn, $sql); 后加上这样一段代码: if (!$result) { printf("Error: %s\n", mysqli_error($conn)); exit() ...
分类:
数据库 时间:
2020-01-22 21:52:51
阅读次数:
92