DFS
AgoniAngel
我的bug早已饥渴难耐
展开
-
【专题】在数字中间添加运算符,使等式成立
【招商银行卡笔试 20.04.08】给定一个字符串s和一个整数k,只含有数字0-9,在字符串中随意插入 + 号或 - 号(不能在两端插入),使得算式结果为k。输出可行的方案数。1字符串长度12,11e4类似题:Leetcode494#include <iostream>using namespace std;int k, cnt;string s;vo...原创 2020-04-11 18:46:04 · 2812 阅读 · 0 评论 -
LeetCode 246/247/248 中心对称数
目录LeetCode 246 (Easy):判断一个数是否为中心对称数LeetCode 247 (Medium):给出长度为 n 的所有中心对称数LeetCode 248 (Hard):求给定区间内有多少中心对称数 LeetCode 246 (Easy):判断一个数是否为中心对称数 A strobogrammatic number is a number that looks...原创 2020-03-05 18:08:41 · 1322 阅读 · 0 评论