Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are c ...
分类:
其他好文 时间:
2020-03-29 10:56:42
阅读次数:
54
搜了一晚上,都是用的B-Shell的,说法也各不相同。参考其中一个,把我的C-shell弄好了。 修改: 1. /etc/csh.cshrc: 加入 setenv LANG en_US.UTF-8 2. ~/.cshrc: setenv LC_ALL en_US.UTF-8alias ls 'ls ...
分类:
系统相关 时间:
2020-03-29 01:26:24
阅读次数:
95
class Solution { public boolean isRectangleOverlap(int[] rec1, int[] rec2) { if(rec1[2]<=rec2[0]||rec1[0]>=rec2[2]||rec1[1]>=rec2[3]||rec1[3]<=rec2[1] ...
分类:
其他好文 时间:
2020-03-18 15:54:22
阅读次数:
50
Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that takes an integer n and return all possib ...
分类:
其他好文 时间:
2020-03-17 10:23:21
阅读次数:
66
Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have ...
分类:
其他好文 时间:
2020-03-14 13:06:36
阅读次数:
50
On a campus represented as a 2D grid, there are N workers and Mbikes, with N <= M. Each worker and bike is a 2D coordinate on this grid. Our goal is t ...
分类:
其他好文 时间:
2020-03-13 01:49:13
阅读次数:
62
link class Skiplist { public: struct Node{ int key; Node* down; Node* next; Node(int k, Node* d, Node *n){ key=k; down=d; next=n; } }; Node* head; Ski ...
分类:
其他好文 时间:
2020-03-07 20:57:00
阅读次数:
60
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find ...
分类:
其他好文 时间:
2020-03-04 09:16:12
阅读次数:
75
In a given grid, each cell can have one of three values: the value 0 representing an empty cell; the value 1 representing a fresh orange; the value 2 ...
分类:
其他好文 时间:
2020-03-01 12:42:36
阅读次数:
56
天行健,君子以自强不息。 --《周易》 在这里必须要讲解一下LC串联谐振和LC并联谐振电路以及它们的特点。 1.串联谐振 由于在交流电路中,电阻的电压和电流是同相位的,电感的电流会滞后电压90度,电容的电流会超前电压90度。所以LC串联电路的矢量图如下图: LC串联电路求解公式: 由以上矢量图及电压 ...
分类:
其他好文 时间:
2020-02-29 18:58:04
阅读次数:
107