题目描述: 中文: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 英文: Given an array of integers, retur ...
分类:
编程语言 时间:
2019-09-19 21:13:04
阅读次数:
111
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: backtracking的变种 ...
分类:
其他好文 时间:
2019-09-18 09:15:52
阅读次数:
108
最近CTF刷累了,去玩下hackgame HackGame3:https://hackgame.chaurocks.com Level One: Beware Your URL 根据提示,直接访问level2即可 Level Two: Avoid Parameter Modification Of ...
分类:
其他好文 时间:
2019-09-18 00:51:54
阅读次数:
1153
第五天 A1009 Product of Polynomials (25 分) 题目内容 This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each inpu ...
分类:
其他好文 时间:
2019-09-18 00:13:49
阅读次数:
113
一、类型描述 Two Sequences 的题目一般会提供两个sequence,一般问最大/最小、true/false、count( )这几类的问题。 其中,Two Sequences的动态规划题目的四要素: 1. state:dp[i][j] 一般表示 第一个sequence的前i个字符 和 第二 ...
分类:
其他好文 时间:
2019-09-16 21:26:59
阅读次数:
159
原题链接在这里:https://leetcode.com/problems/domino-and-tromino-tiling/ 题目: We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These s ...
分类:
其他好文 时间:
2019-09-16 11:43:48
阅读次数:
104
C. Permute Digits time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given two posit ...
分类:
其他好文 时间:
2019-09-16 10:03:05
阅读次数:
109
问题描述: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of ...
分类:
编程语言 时间:
2019-09-16 09:46:31
阅读次数:
94
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 ...
分类:
其他好文 时间:
2019-09-15 11:37:10
阅读次数:
103
Design and implement a TwoSum class. It should support the following operations:add and find. add - Add the number to an internal data structure.find ...
分类:
其他好文 时间:
2019-09-15 11:15:05
阅读次数:
93