typedef struct node
{
int data;
struct node *next;
} LNode, *LinkList;
LinkList Unions(LinkList la, LinkList lb)
{
LNode *p, *q, *w, *u;
p = la->next;
q = lb->next;
w = la;
while (p && q)
{
if (p->data == q->data)
{
w->next = p;
w = w->next;
p = p->next;
u = q;
q = q->next;
free(u);
}
else if (p->data < q->data)
{
u = p;
p = p->next;
free(u);
}
else
{
u = q;
q = q->next;
free(q);
}
}
if (q)
{
p = q;
}
while (q)
{
u = q;
q = q->next;
free(u);
}
w->next = NULL;
free(lb);
return la;
}
Author Archives: Robins
AttributeError: Can‘t get attribute ‘LeNet‘ on <module ‘__ main__ “From (error in torch loading model)
AttributeError: Can’t get attribute ‘LeNet’ on <module ‘main’ from
The reason why HashMap multithreads send out life and death loops
This article is a learning record of Vaccine: Java HashMap’s endless loop, welcome to discuss ~
Suppose the state of a cylinder to be expanded is as follows:
1->; 2-> Null
1 for the current thread to insert a new element of an array of e: 1 and the next element next:
when thread 2 completed the expansion, the pointer to the current status to 2 – & gt; 1-> NULL
Thread 1 continues:
rst (e:1,next:2)
n>arrel :1 ->; null
e=next=2;
next=e1.next=1;
> (e:2,next:1)
> 1-> null
e=next=1;
next=e1.next=null;
(e:1,next:null)
new barrel :1 ->; 2-> 1 is just 1 lt; -> 2
e=next=null;
cpu100%
7 using head insert, 1.8 using tail insert for capacity expansion.
1.7 using head insert, 1.8 using tail insert for capacity expansion.
SQL server converts multiple lines into one line, separated by characters
SELECT
STUFF(
(
SELECT
',' + CONVERT ( VARCHAR ( 10 ), ichr_high_risk_item ) --, 合并后的分隔符 ichr_high_risk_item 需要合并的字段
FROM
initialcarehighrisk --Table Name
where woma_healthno='' --condition, if none will to merge all data
FOR xml path ( '' )
),
1,
1,
''
)
Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
Analysis
Web project missing WEB-INF/ WEB.xml
Updates the version of maven-war-plugin
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
</plugin>
Reference: https://blog.csdn.net/weixin_41699562/article/details/99302298
Eclipse cannot import org.apache.log4j .Logger

But I have already imported it in the lib below

I guess the JAR package was not imported
If you want to place the JAR under the JDK, right-click and select Build Path –>; Configure Build Path

Then select Add Externsl Jars

Select the package we want to import

Then click Apply and it’s OK.
Using CONDA virtual environment in pychar
(2) Select File->; setting-> Project:****-> Project Interperter-> Existing Environment imports the environment address
(3) Select the virtual environment created above
D:\installed\Anaconda3
:\installed\Anaconda3\envs\tensorflow\python.exe :\installed\Anaconda3\envs\tensorflow\python.exe :\installed\Anaconda3\envs\tensorflow\python.exe
MySQL will delete the data minutes before the current time
SET GLOBAL event_scheduler = ON;
delimiter $$
drop event if exists e_wom_stat;
create event e_wom_stat
on schedule
EVERY 1 day
STARTS '2013-01-01 03:00:00'
ON COMPLETION PRESERVE ENABLE
do
begin
delete from t_wom_random_num where time<(CURRENT_TIMESTAMP()+INTERVAL -25 MINUTE);
end $$
delimiter ;
Idea has installed markdown, open it or will not show preview effect
Idea has Markdown installed and will not show the preview effect
why
This is because the.md file at the end of the Markdown plugin was opened using Text, so idea is now opened using Text.
The solution
In the file code> - & gt; The Settings code> - & gt; The Editor code> - & gt; File Types under code> Recongnized the File Types found under code> Markdown code>, then click on the Registered Patterns code> bar to the right of the plus sign, fill in the * md code> save. The .mdle has been registered in Text.
Square root of X (implementation of binary search)
Square root of x (binary search implementation)
class Solution {
public int mySqrt(int x) {
int l = 0, r = x, ans = -1;
while (l <= r) {
int mid = (l + r)/ 2;
if ((long) mid * mid <= x) {
ans = mid;
l = mid + 1;
} else {
r = mid - 1;
}
}
return ans;
}
}
Add a new springboot, and it will appear unable to read meta data for class when it is dependent

br> 
<> 
Depending on the custom component jar package, unable to read meta data for class appears after startup

java.lang.IllegalStateException: Unable to read meta-data for class com.dyt.controller.TestController1
at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:233) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getOrder(AutoConfigurationSorter.java:204) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.access$000(AutoConfigurationSorter.java:150) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationSorter.lambda$getInPriorityOrder$0(AutoConfigurationSorter.java:62) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at java.util.TimSort.countRunAndMakeAscending(Unknown Source) ~[na:1.8.0_201]
at java.util.TimSort.sort(Unknown Source) ~[na:1.8.0_201]
at java.util.Arrays.sort(Unknown Source) ~[na:1.8.0_201]
at java.util.ArrayList.sort(Unknown Source) ~[na:1.8.0_201]
at org.springframework.boot.autoconfigure.AutoConfigurationSorter.getInPriorityOrder(AutoConfigurationSorter.java:61) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector$AutoConfigurationGroup.sortAutoConfigurations(AutoConfigurationImportSelector.java:430) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationImportSelector$AutoConfigurationGroup.selectImports(AutoConfigurationImportSelector.java:415) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGrouping.getImports(ConfigurationClassParser.java:872) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:798) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:770) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:185) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:744) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:391) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at com.dyt.MybatisApplication.main(MybatisApplication.java:12) [classes/:na]
Caused by: java.io.FileNotFoundException: class path resource [com/dyt/controller/TestController1.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:51) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73) ~[spring-boot-2.1.13.RELEASE.jar:2.1.13.RELEASE]
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) ~[spring-core-5.1.14.RELEASE.jar:5.1.14.RELEASE]
at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java:229) ~[spring-boot-autoconfigure-2.1.13.RELEASE.jar:2.1.13.RELEASE]
... 27 common frames omitted
/ meta-inf /spring.factories

br br br /classes


