Code Monkey home page Code Monkey logo

algorithmnotes's Introduction

AlgorithmNotes

LeetCode

  • https://leetcode.com/lag945/
  • Problems Solved
    • 2021.10.06: 0024
    • 2021.11.03: 0100
    • 2021.12.05: 0173
    • 2021.12.24: 0200
    • What a season challenge journey! To be continued.
    • 2022.04.28: 0300
    • 2022.11.28: 0400

Algorithm

Bit Manipulation

  • C# use BitArray class
    • BitArray ba = new BitArray(BitConverter.GetBytes(int32));
  • Hamming distance
  • XOR
    • A XOR B writes A ^ B (C#)
    • A XOR B XOR A = B
  • Count
    • Count 1: (1) while(n>0){n = n&(n-1);count++;} (2) for(int i=0;i<32;i++){ n&1==1?count++:; n = n >>1; } (3) foreach( bool b in bitarray) if(b) count++;
    • Count 0: (1) 32-(Count 1) (2) foreach( bool b in bitarray) if(!b) count++;

Linked List

System Design

GIS problems

Concurrency

Others

algorithmnotes's People

Contributors

lag945 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.