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.hadoop集群的启动 cd $HADOOP_HOME //进入hadoop安装目录 sbin/start-dfs.sh //启动hdfs sbin/start-yarn.sh //启动yarn (或start-all.sh) 集群关闭: cd $HADOOP_HOME //进入hadoop安装 ...
分类:
系统相关 时间:
2020-02-07 00:58:00
阅读次数:
114
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = ...
分类:
其他好文 时间:
2020-02-07 00:48:28
阅读次数:
65
1 """ 2 Intersection of Two Arrays 3 Given two arrays, write a function to compute their intersection. 4 Example 1: 5 Input: nums1 = [1,2,2,1], nums2 ...
分类:
其他好文 时间:
2020-02-06 23:00:09
阅读次数:
74
1 """ 2 Given a collection of intervals, merge all overlapping intervals. 3 Example 1: 4 Input: [[1,3],[2,6],[8,10],[15,18]] 5 Output: [[1,6],[8,10],[ ...
分类:
其他好文 时间:
2020-02-06 22:59:28
阅读次数:
72
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121Output: true ...
分类:
其他好文 时间:
2020-02-06 20:03:07
阅读次数:
83
1:写一个close按钮当单击此按钮时就执行槽函数,而关闭窗口. 1 #include "slot.h" 2 #include <QApplication> 3 #include<QPushButton> 4 #include<time.h> 5 #ifndef SLOT_H 6 #define S ...
分类:
其他好文 时间:
2020-02-06 19:54:45
阅读次数:
73
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123Output: 321Example 2: Input: -123Output: -321Example 3: Input: 120Ou ...
分类:
其他好文 时间:
2020-02-06 19:49:49
阅读次数:
65
这两天系统学习了对大部分基本控件得控制,今天做了一个系统的控件控制,先把代码发表一下,随后由上而下功能分讲。 MainActivity: package com.example.controlmode; import androidx.appcompat.app.AppCompatActivity; ...
分类:
其他好文 时间:
2020-02-06 19:32:26
阅读次数:
65
1 """ 2 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 3 Example 1: 4 Input: "bab ...
分类:
其他好文 时间:
2020-02-06 16:22:50
阅读次数:
60