燕燕txdy
燕燕txdy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
燕燕txdy的博客
全部文章
(共18篇)
题解 | #计算商品打折结算金额#
#include <iostream> #include <iomanip> using namespace std; int main() { double price; cin >> price; double cost ...
2023-06-14
0
227
题解 | #排序#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 将给定数组排序 * @param arr int整型vector 待排序的数组 * @return int整型v...
2023-06-14
0
255
题解 | #实现二叉树先序,中序和后序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: vector<int> a,...
2023-06-13
0
221
题解 | #跳台阶#
class Solution { public: int jumpFloor(int number) { if(number == 1) return 1; if(number == 2) return 2; r...
2023-06-13
0
210
题解 | #二叉树的后序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-06-13
0
231
题解 | #二叉树的中序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-06-13
0
193
题解 | #二叉树的前序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-06-13
0
208
题解 | #二分查找-I#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2023-06-13
0
229
首页
上一页
1
2
下一页
末页