leetcode 2619 11

java:提示Could not initialize class sun.awt.X11GraphicsEnvironment

java:提示Could not initialize class sun.awt.X11GraphicsEnvironment 参考链接: https://www.cnblogs.com/hwaggLee/p/5454463.html https://www.cnblogs.com/abo666/ ......

深度学习快速参考:11~13

原文:Deep Learning Quick Reference 协议:CC BY-NC-SA 4.0 译者:飞龙 本文来自【ApacheCN 深度学习 译文集】,采用译后编辑(MTPE)流程来尽可能提升效率。 不要担心自己的形象,只关心如何实现目标。——《原则》,生活原则 2.3.c 十一、训练 ......
深度 11 13

Python 迁移学习实用指南:6~11

原文:Hands-On Transfer Learning with Python 协议:CC BY-NC-SA 4.0 译者:飞龙 本文来自【ApacheCN 深度学习 译文集】,采用译后编辑(MTPE)流程来尽可能提升效率。 不要担心自己的形象,只关心如何实现目标。——《原则》,生活原则 2.3 ......
指南 Python 11

solidworks 2016安装教程(win7,win10,win11都可以安装)

以下是搜索的笔记,记录下来,方便自己下次找到 一,安装 关闭电脑的防护软件,禁用计算机的网络连接(禁用网卡或者拔掉网线) 打开安装包,打开“_SolidSQUAD_”目录解压“_SolidSQUAD_.7z”,运行其中的“SolidWorksSerialNumbers2016.reg”写入注册表信息 ......
win solidworks 教程 2016 win7

4.11hut21训练赛

A.P1233 木棍加工 该题可以使用贪心,赛时脑子莫名把题目意思改了,导致没写出来。。。 将木棍按照pair从大到小排序,那么第一个必须要耗费准备时间删除,因为没有l,w都大于等于它的存在。 我们删除它的时候可以继续向后删除l,w都小于等于它的木棍,同时更新l,w,将所有能删的都删掉,也就是优先删 ......
4.11 hut 11 21

Debian11清除登录记录及操作记录

1、所有成功登录/登出的历史记录 /var/log/wtmp last 2、查看登录失败记录 /var/log/wtmp lastb 3、用户最近登录记录 /var/log/lastlog lastlog 4、清除上述3个文件办法 ① 新建shell脚本 nano cl.sh ② 填入以下内容 #! ......
Debian 11

Debian11 修改时区

首先需要明白中国在东八区,即UTC+8。以上海为例: timedatectl ls -l /etc/localtime timedatectl list-timezones unlink /etc/localtime sudo timedatectl set-timezone Asia/Shangh ......
时区 Debian 11

11

西安的商家: 上次购买的4090的商家: 价格的主要区别在CPU上,西安的商家主张使用服务器cpu(AMD EPYC 7302)。下面是i9 13900kf和AMD EPYC 7302两张cpu的主要区别: AMD EPYC 7302为服务器cpu,更适用于高负荷的场景。AMD EPYC 7302与 ......
11

Debian11 修改SSH登录端口

1. 修改ssh配置 nano /etc/ssh/sshd_config 找到#Port 22,将注释去掉,将22替换为自定义端口,比如16822 2. 开放端口,如果有安装iptables防火墙,添加端口放行规则: iptables -A INPUT -p tcp --dport 16822 -j ......
端口 Debian SSH 11

类的继承11

#include<iostream>using namespace std;class Time{ friend ostream& operator<<(ostream& cout, Time& t); friend istream& operator>>(istream& cin, Time& t ......

11 Geometry(Curves and Surface)

关键点 Bezier Curves Bezier Surfaces 1. Bezier Curves 贝塞尔曲线 用一系列的控制点定义一个曲线,并且定义了一系列控制。 如下定义起止点为p0、p3,且定义起始切线,则绘制出一条曲线。 1.1 de Casteljau Alogrithm Three i ......
Geometry Surface Curves and 11

auto C++11

类成员或结构体成员也不可以定义为 auto。 auto作为函数返回值,需要注意的点: 当函数使用多条判断语句时,可能有多条 return 语句,此时所有语句的返回类型必须一致,否则 auto 会报错。 当函数没有 return 语句时,auto 会被推导为 void。 如果声明和实现分离了,则不能声 ......
auto 11

LeetCode 115. 不同的子序列

class Solution { public: long long f[1010][1010];//f[i][j]表示s前i个字符得到t前j个字符的所有方案 int numDistinct(string s, string t) { f[0][0]=1; int n=s.size(),m=t.si ......
序列 LeetCode 115

如何在WPF中调用Windows 10/11 API(UWP/WinRT)

最近在github上看到一个音乐播放器项目,dopamine(项目地址:https://github.com/digimezzo/dopamine-windows.git) 在编译时,提示有一个库找不到 找了好一会,才发现这是调用了UWP的库。 在最初Windows 8 出来时,这一套新的运行时叫W ......
Windows WinRT WPF API UWP

w11配置子系统

笔记软件在2023/4/15 9:53:19推送该笔记 安装docker参考1 docker run --rm -it --gpus all yyelder/mypython-env:v2 /bin/bash 下载安装子系统(CUDA)参考2 开启适用于Linux的Windows子系统 开启Hype ......
子系统 w11 11

LeetCode/最大化城市的最小供电站数目

政府批准了可以额外建造 k 座供电站,你需要决定这些供电站分别应该建在哪里,这些供电站与已经存在的供电站有相同的供电范围。 给你两个整数 r 和 k ,如果以最优策略建造额外的发电站,返回所有城市中,最小供电站数目的最大值是多少。 ###一. 二分法+前缀和+贪心 分析:最大化最小值,首先考虑使用二 ......
供电站 数目 LeetCode 城市

11

BEGIN INIT INFO Provides: tightvncserver Required-Start: $local_fs Required-Stop: $local_fs Default-Start: 2 3 4 5 Default-Stop: 0 1 6 Short-Descripti ......
11

leetcode-1337-easy

The K Weakest Rows in a Matrix You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civilians). The soldiers ......
leetcode 1337 easy

leetcode-1342-easy

Number of Steps to Reduce a Number to Zero Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number i ......
leetcode 1342 easy

leetcode-1360-easy

Number of Days Between Two Dates Write a program to count the number of days between two dates. The two dates are given as strings, their format is YY ......
leetcode 1360 easy

leetcode-766-easy

Toeplitz Matrix Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top ......
leetcode easy 766

leetcode-806-easy

Number of Lines To Write String You are given a string s of lowercase English letters and an array widths denoting how many pixels wide each lowercase ......
leetcode easy 806

leetcode-812-easy

Largest Triangle Area Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be ......
leetcode easy 812

leetcode-830-easy

Positions of Large Groups In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string like ......
leetcode easy 830

leetcode-844-easy

Backspace String Compare Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace c ......
leetcode easy 844

leetcode-944-easy

Delete Columns To Make Sorted You are given an array of n strings strs, all of the same length. The strings can be arranged such that there is one on ......
leetcode easy 944

代码随想录算法训练营Day01 | LeetCode704 二分查找、Leetcode27 移除元素

今日学习的视频和文章 代码随想录数组基础 复习基础知识 代码随想录 二分查找 代码随想录 移除元素 LeetCode704 二分查找 题目链接:704. 二分查找 - 力扣(Leetcode) 以前学二分查找的时候,真的一直搞不清楚怎么操作左边界和有边界,以及循环的终止条件是什么,总是自己慢慢调试出 ......
随想录 训练营 随想 算法 LeetCode

leetcode_打卡04

leetcode_打卡04 题目:605. 种花问题 解答: 三种情况: 第一个1的左边全是0的情况,此时 可以插入的位置为result=(i-1+1)/2 ,如【0,0,0,1,0,0,1】 两个1之间全是0的情况。此时 可以插入的位置为result=(i-flag-1-2+1)/2 第一个1的右 ......
leetcode

LeetCode 周赛 340,质数 / 前缀和 / 极大化最小值 / 最短路 / 平衡二叉树

本文已收录到 AndroidFamily,技术和职场问题,请关注公众号 [彭旭锐] 提问。 大家好,我是小彭。 上周跟大家讲到小彭文章风格的问题,和一些朋友聊过以后,至少在算法题解方面确定了小彭的风格。虽然竞赛算法题的文章受众非常小,但却有很多像我一样的初学者,他们有兴趣参加但容易被题目难度和大神选 ......
质数 前缀 LeetCode 340

LeetCode习题——有效的完全平方数(二分查找)

有效的完全平方数 力扣链接:367. 有效的完全平方数 题目 给你一个正整数 num 。如果 num 是一个完全平方数,则返回 true ,否则返回 false 。 完全平方数是一个可以写成某个整数的平方的整数。换句话说,它可以写成某个整数和自身的乘积。 不能使用任何内置的库函数,如 sqrt 。 ......
习题 LeetCode