[LeetCode] Valid Triangle Number 合法的三角形个数

 Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if
12次阅读

How Basic Performance Analysis Saved Us Millions-------火焰图

ENGINEERINGHow Basic Performance Analysis Saved Us Millions Michael MalisMay 19, 20179 min readThis is the story of how I applied basic performan
3次阅读

aligned_storage简单学习

#include <iostream>#include <type_traits>#include <string>/*template< std::size_t Len, std::size_t Align = default-alignment >
6次阅读

[LeetCode] Find Duplicate File in System 在系统中寻找重复文件

 Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups
12次阅读

valid-palindrome——判断带符号数字字母的字符串是否为回文

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana
4次阅读

[LeetCode] Minimum Index Sum of Two Lists 两个链表的最小序列和

 Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.You need
12次阅读

[LeetCode] Valid Square 验证正方形

 Given the coordinates of four points in 2D space, return whether the four points could construct a square.The coordinate (x,y) of a point is rep
11次阅读

CoInitialize和CoInitializeEx

1.CoInitialize和CoInitializeEx的功能 CoInitialize是在当前线程初始化Com组件的函数,并且初始化为STA模式(单线程模式),一般新的程序建议使用CoInitializeEx来替代。CoInitializeEx初始化当前线程Com组件并提供更多的设置选项,如并
8次阅读

java中@Qualifier("string")是什么用法

@Qualifier("XXX") Spring的Bean注入配置注解,该注解指定注入的Bean的名称,Spring框架使用byName方式寻找合格的bean,这样就消除了byType方式产生的歧义。 Spring的IoC的xml配置文件方式会让XML文件变的比较长而且繁琐,所以自JDK
6次阅读

validator 手动验证 表单字段 不基于注解@Valid

Validator validator = new SpringValidatorAdapter(Validation.buildDefaultValidatorFactory().getValidator());BindingResult bindingResult = new BindExcep
11次阅读