Tag:Letter

  • Leetcode: 1160. Spelling words

    Time:2021-9-10

    thinking Maintain an array with a capacity of 26, traverse the character chars and count each letterThen use this counting table to compare each word in words. If you encounter the corresponding letter, it will be – 1If it encounters 0, it will jump out and the length will not be calculated. If the whole […]

  • A regular expression that matches 8-16 digit numeric and alphabetic passwords

    Time:2021-8-24

    The password of a user registration function has the following requirements: it is composed of numbers and letters, and it should contain numbers and letters at the same time, and the length should be between 8-16 bits. The splitting requirements are as follows: Not all numbers Not all letters Must be numeric or alphabetic As […]

  • Leetcode79. Python implementation of word search

    Time:2021-8-21

    Title Requirements: Idea: First traverse the array to find the possible starting point Define a helper function to traverse the upper, lower, left and right elements of the current starting point to see if there is one that matches the next bit of a given word. If you call the helper function recursively again Returns […]

  • Simplify your CSS with an algorithm

    Time:2021-8-21

    A clever algorithm to slim down lengthy class names. This algorithm comes fromreact-windowThe demo page of the. I first saw that media was using this effect. I tried to write the algorithm myself, but ended up with poor performance. principle Its principle is to CSS loadergetLocalIdentProvides a custom function. Provide CSS loadermodules.getLocalIdent : { loader: […]

  • Java custom generics

    Time:2021-8-7

    /***Custom generics * * @author ASAS * */public class demo1 { public static void main(String[] args) { int in = print(12); String s = print(“abc”); } /***Declare the T letter as a custom generic * @param i * @return */ private static T print(T i) { // TODO Auto-generated method stub return i; }}   […]

  • [activities that babies can understand] [30 day leetcoding challenge] day 6

    Time:2021-8-6

    Hi, everyone, I’m Zhang Xiaozhu. Welcome to the 30 day leetcoding challenge, a special article in the “baby can understand” series. This is an official little activity of leetcode. It can be seen on the official website that from April 1, the official will choose a question every day, and you can get a little […]

  • Regular rules and common regular rules

    Time:2021-8-5

    //The expression. * is a single character matching any time, that is, greedy matching. //Expression. *? If the condition is satisfied, it is matched only once, that is, the minimum matching //Positive reverse look around (?)<= The expression) subexpression can match the text on the left //Negative reverse order look around (<!)! Expression) subexpression cannot […]

  • Leetcode: 1119. Delete vowels from string

    Time:2021-7-31

    subject Give you a string  S, please delete all vowels(  ‘a’,’e’,’i’,’o’,’u’), and returns the new string. The idea uses the iterator of C + + to optimize class Solution { public: string removeVowels(string S) { string::iterator tra; string ans =””; for(tra = S.begin(); tra != S.end(); ++tra) { if(! (*tra == ‘a’ || *tra == […]

  • The actual combat project of flutter teaches you to use flutter to create wechat app page!

    Time:2021-7-16

    flutter_wechat Source address:https://github.com/ding-zou/f… A flutter app which clones wechat! This is an app that imitates the wechat style and is based on flutter. It is still in the process of improvement. You are welcome to make comments It contains all the basic components in the flutter, which is suitable for the flutter learning in this […]

  • The actual combat project of flutter teaches you how to use flutter to create a simulated wechat app page!

    Time:2021-7-14

    flutter_wechat Source address:https://github.com/ding-zou/f… A flutter app which clones wechat! This is an app that imitates the wechat style and is based on flutter. It is still in the process of improvement. You are welcome to make comments It contains all the basic components in the flutter, which is suitable for the flutter learning in this […]

  • Avay plug in of Emacs

    Time:2021-7-13

    When using Emacs, I used to divide it into “four parts” How? It’s usually done firstC-x 3Separate the left and right windows, and then use them in each windowC-x 2Separate the upper and lower windows – this is not my clerical error. In Emacs terminology, the area used to display a buffer is called a […]

  • Idea launched a new font, this time really love!

    Time:2021-6-26

    The original text of this article:https://blog.jetbrains.com/bl… Recently, JetBrains released a font called “mono”, which is specially prepared for developers. As developers, we spend most of the day looking at the code. No wonder developers always want to find a good font to improve the reading experience. However, the design logic of many popular fonts does […]