原创 Delete Operation for Two Strings 最長公共子序列變種
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where
原创 Minimum ASCII Delete Sum for Two Strings 最長公共子序列變種2
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: In
原创 Remove Duplicates from Sorted List刪除有序鏈表中的相同元素
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1
原创 import tensorflow包錯誤問題
我用的anaconda安裝的python3.5的環境來學習tensorflow,導入各種包一切正常,然後學習網上用jupyter可以斷點運行,我也想試一下,然後用anaconda navigator在之前創建的3.5版本的tens
原创 Score After Flipping Matrix
We have a two dimensional matrix A where each value is 0 or 1. A move consists of choosing any row or column, and tog
原创 Partition Labels 分割字符串
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that eac
原创 Minimum Add to Make Parentheses Valid
Given a string S of ‘(’ and ‘)’ parentheses, we add the minimum number of parentheses ( ‘(’ or ‘)’, and in any positi
原创 Integer Break 數學/dp
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those
原创 2 Keys Keyboard
Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each ste
原创 Best Time to Buy and Sell Stock系列
Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day
原创 Delete Columns to Make Sorted III 最長上升子序列變種
We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose any set of deletio
原创 Triples with Bitwise AND Equal To Zero 三元組位與得0
Given an array of integers A, find the number of triples of indices (i, j, k) such that: 0 <= i < A.length 0 <= j <
原创 Minimum ASCII Delete Sum for Two Strings 刪除最小ascll碼使字符串相等
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Inpu
原创 Delete Operation for Two Strings 刪除最少字符使字符串相等
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where i
原创 Arithmetic Slices 等差數列個數
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any