1 """ 2 Given a sorted linked list, delete all duplicates such that each element appear only once. 3 Example 1: 4 Input: 1->1->2 5 Output: 1->2 6 Exam ...
分类:
其他好文 时间:
2020-02-07 19:14:50
阅读次数:
70
https://vjudge.net/problem/CodeForces-1249B2 题目描述: The only difference between easy and hard versions is constraints. There are nn kids, each of them ...
分类:
其他好文 时间:
2020-02-07 18:53:09
阅读次数:
87
spark-shell 交互式编程 数据格式如下所示: Tom,DataBase,80 Tom,Algorithm,50 Tom,DataStructure,60 Jim,DataBase,90 Jim,Algorithm,60 Jim,DataStructure,80 请根据给定的实验数据,在 s ...
分类:
其他好文 时间:
2020-02-07 18:33:27
阅读次数:
72
Given a matrix, like this[[0, 0, 1, 1, 1][0, 1, 1, 1, 1][0, 0, 1, 1, 1][0, 0, 0, 0, 0]]each cell is either 1 or 0in each row, from left to right, when ...
分类:
其他好文 时间:
2020-02-07 13:14:09
阅读次数:
85
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic ...
分类:
其他好文 时间:
2020-02-07 10:41:25
阅读次数:
56
统计学生成绩学生的成绩清单格式如下所示,第一行为表头,各字段意思分别为学号、性别、课程名1、课程名 2 等,后面每一行代表一个学生的信息,各字段之间用空白符隔开 给定任何一个如上格式的清单(不同清单里课程数量可能不一样),要求尽可能采用函数式编程,统计出各门课程的平均成绩,最低成绩,和最高成绩;另外 ...
分类:
其他好文 时间:
2020-02-07 01:33:06
阅读次数:
124
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose o ...
分类:
其他好文 时间:
2020-02-06 23:22:15
阅读次数:
72
Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth possibl ...
分类:
其他好文 时间:
2020-02-06 11:07:31
阅读次数:
74
Sub shi()Dim i, k, l As IntegerDim sht As Worksheetirow = Sheet1.Range("a65536").End(xlUp).Row l = InputBox("input name plase") For i = 2 To irowk = 0 ...
分类:
其他好文 时间:
2020-02-06 01:32:01
阅读次数:
66
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2020-02-05 13:35:52
阅读次数:
62