上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: 阅读全文
posted @ 2019-05-16 14:57 程嘿嘿 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文
posted @ 2019-05-15 14:54 程嘿嘿 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 使用标志k记录当前所得的子字符串个数。当满足有4个子字符串并且s中的 阅读全文
posted @ 2019-05-14 11:38 程嘿嘿 阅读(123) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ 阅读全文
posted @ 2019-05-10 11:36 程嘿嘿 阅读(161) 评论(0) 推荐(0) 编辑
摘要: white-space 默认属性 normal:忽略掉文本中多余的空格和回车符。 no-wrap:忽略掉文本中多余的空格和回车符,并且文本在一行中显示。 pre:不忽略文本中多余的空格和回车符。但是文本只在回车符处进行换行,如果没有回车符,文本将会在一行中显示。 pre-wrap:不忽略空格和回车符 阅读全文
posted @ 2019-05-09 16:45 程嘿嘿 阅读(1953) 评论(0) 推荐(0) 编辑
摘要: 方法一: 水平居中 text-align 应用于块级元素的文本水平居中 text-align=left; 左对齐 text-align=right; 右对齐 text-align=justify; 两端对齐 text-align=center; 水平居中 将块级元素中的内联元素设置为水平居中,并不能 阅读全文
posted @ 2019-05-09 16:36 程嘿嘿 阅读(3525) 评论(0) 推荐(0) 编辑
摘要: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num 阅读全文
posted @ 2019-05-07 11:45 程嘿嘿 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 80. Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length. Do not allocate e 阅读全文
posted @ 2019-05-01 17:11 程嘿嘿 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 效果图: 文本未超出: 文本超出显示省略号: 方法: 添加css样式如下: 阅读全文
posted @ 2019-04-10 18:13 程嘿嘿 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 实现效果: 模态弹窗内包含的内容为:<input>的file类型、<input>的text类型、<textarea>内容、wangEdition富文本框内容 方法: 使用DOM的reset()方法对表单内容进行清空。清空的内容为<form>中的内容。 HTML: 由于reset()并不是jQuery 阅读全文
posted @ 2019-03-26 17:38 程嘿嘿 阅读(1491) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页