上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 98 下一页
摘要: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-09-28 21:17 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0)
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2018-09-28 17:47 Veritas_des_Liberty 阅读(188) 评论(0) 推荐(0)
摘要: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: AC code: std 阅读全文
posted @ 2018-09-27 22:29 Veritas_des_Liberty 阅读(167) 评论(0) 推荐(0)
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-09-27 17:18 Veritas_des_Liberty 阅读(156) 评论(0) 推荐(0)
摘要: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer 阅读全文
posted @ 2018-09-27 16:50 Veritas_des_Liberty 阅读(153) 评论(0) 推荐(0)
摘要: 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 contai 阅读全文
posted @ 2018-09-27 16:35 Veritas_des_Liberty 阅读(166) 评论(0) 推荐(0)
摘要: 本题要求实现一个函数,找到并返回链式表的第K个元素。 函数接口定义: ElementType FindKth( List L, int K ); 其中List结构定义如下: typedef struct LNode *PtrToLNode; struct LNode { ElementType Da 阅读全文
posted @ 2018-09-25 17:19 Veritas_des_Liberty 阅读(913) 评论(0) 推荐(0)
摘要: 本题要求实现一个函数,求链式表的表长。 函数接口定义: 其中List结构定义如下: L是给定单链表,函数Length要返回链式表的长度。 裁判测试程序样例: 输入样例: 输出样例: AC code: 阅读全文
posted @ 2018-09-25 17:04 Veritas_des_Liberty 阅读(847) 评论(0) 推荐(0)
摘要: 本题要求实现顺序表的操作集。 函数接口定义: 其中List结构定义如下: 各个操作函数的定义为: List MakeEmpty():创建并返回一个空的线性表; Position Find( List L, ElementType X ):返回线性表中X的位置。若找不到则返回ERROR; bool I 阅读全文
posted @ 2018-09-25 17:01 Veritas_des_Liberty 阅读(1638) 评论(1) 推荐(1)
摘要: 本题要求实现一个函数,将给定的单链表逆转。 函数接口定义: List Reverse( List L ); 其中List结构定义如下: typedef struct Node *PtrToNode; struct Node { ElementType Data; /* 存储结点数据 */ PtrTo 阅读全文
posted @ 2018-09-25 16:19 Veritas_des_Liberty 阅读(3298) 评论(3) 推荐(0)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 98 下一页