关闭
当前搜索:

Leetcode算法学习日志-748 Shortest Completing Word

Leetcode 748 Shortest Completing Word题目原文Find the minimum length word from a given dictionary words, which has all the letters from the string licensePlate. Such a word is said to complete the given ...
阅读(11) 评论(0)

Leetcode算法学习日志-687 Longest Univalue Path

Leetcode 687 Longest Univalue Path 题目原文 Given a binary tree, find the length of the longest path where each node in the path has the same value. This path may or may not pass through the root. No...
阅读(32) 评论(0)

Leetcode算法学习日志-686 Repeated String Match

Leetcode 686 Repeated String Match 题目原文 Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For ...
阅读(28) 评论(0)

Topcoder SRM 727 TwoDiagonals

Topcoder SRM 727 TwoDiagonals 题目原文 Bearland can be represented as a horizontal plane with N distinct points, denoting positions of N cities.The i-th city has coordinates (x[i], y[i]). Limak ...
阅读(47) 评论(0)

Leetcode算法学习日志-486 Predict the Winner

Leetcode 486 Predict the Winner 题目原文 Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and then playe...
阅读(33) 评论(0)

Leetcode算法学习日志-496 Next Greater Element

Leetcode 496 Next Greater Element 题目原文 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's ele...
阅读(26) 评论(0)

hiho一下183周 Counting Island II

hiho一下183周 Counting Island II 题目原文 Country H is going to carry out a huge artificial islands project. The project region is divided into a 1000x1000 grid. The whole project will last for N we...
阅读(52) 评论(0)

布尔函数代数标准型的求法

布尔函数的代数标准型 布尔函数的小项表示 布尔函数的小项表示可以由真值表直接得出,最小项表示如下: 其中ai为0表示xi取反,每个最小项的系数为对应真值表的值,可知x的每个状态只能使得唯一一个最小项为1,其余都为0,注意上式中只有与、或、非三种逻辑运算,由于各个最小项不能同时为1,所以上述或运算可以和异或等同(二进制加等同异或运算)。 上式其实就为平时我们从真值表直接得...
阅读(50) 评论(0)

Codechef Wonder Woman and the Dark man

Codechef Wonder Woman and the Dark man 题目原文 Input The first line contains 'N' number of numbers formed by the magic cave followed by the sequence of those numbers A1,A2,A3,…An Output Print ...
阅读(34) 评论(0)

Leetcode算法学习日志-752 Open the Lock

Leetcode 752 Open the Lock 题目原文 You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rotate freely and...
阅读(65) 评论(0)

Leetcode算法学习日志-751 IP to CIDR

Leetcode 751 IP to CIDR 题目原文 Given a start IP address ip and a number of ips we need to cover n, return a representation of the range as a list (of smallest possible length) of CIDR blocks. A CI...
阅读(118) 评论(0)

Atcoder wide flip解题报告

Atcoder wide flip 题目原文 You are given a string S consisting of 0 and 1.Find the maximum integer K not greater than |S| such that we can turn all the characters of S into 0 by repeating the fo...
阅读(35) 评论(0)

Atcoder FT robot解题报告

Atcoder FT robot解题报告 题目原文 A robot is put at the origin in a two-dimensional plane.Initially, the robot is facing in the positive x-axis direction. This robot will be given an instruction seque...
阅读(42) 评论(0)

Leetcode算法学习日志-257 Binary Tree Paths

Leetcode 257 Binary Tree Paths 题目原文 Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2 3 \ 5 All root-to-leaf paths are: ["...
阅读(42) 评论(0)

Leetcode算法学习日志-718 Maximum Length of Repeated Subarray

Leetcode 718 Maximum Length of Repeated Subarray 题目原文 Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Input: A: [1,2,3,2,1]...
阅读(47) 评论(0)
71条 共5页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:7533次
    • 积分:775
    • 等级:
    • 排名:千里之外
    • 原创:71篇
    • 转载:0篇
    • 译文:0篇
    • 评论:4条
    文章分类