GithubHelp home page GithubHelp logo

optionalg / challenges-leetcode-interesting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dennyzhang/code.dennyzhang.com

0.0 1.0 0.0 965 KB

:question: Collect Interesting leetcode.com puzzles.

Home Page: http://brain.dennyzhang.com/

Python 96.36% C++ 0.76% SQLPL 0.23% Shell 2.65%

challenges-leetcode-interesting's Introduction

Table of Contents

Basic Intro

Build Status PRs Welcome

LinkedIn Slack Github

File me tickets or star the repo.

Solve all leetcode.com problems in Python

http://brain.dennyzhang.com/contact

People will ask silly algorithm questions.

About Code Interview

General Procedure

  1. Read and explain the question to the interviewr: Show you understand the questions
  2. Interviewer may ask: tell me what you are thinking
  3. Show your programming skills: how fluent you are with the language and lib
  4. Watch out Complexity trade-off, and you may need to explain them
  5. You can run unit test

Lessons Learned

  • Learn to write bug-free code. Test-driven may lead you to waste time? If you think clearly and pass with once
  • Understand data structure and common library in your languages: Python TreeNode, Python Interval
  • Write your idea, before you coding. Update time/space complexity in advance.
  • Know how to use library. Thus we can think and design in a higher layer. But make sure you can evaluate the time and space performance
  • Think in a natural way, instead of a complicated way
  • Time complexity of n is similar to 2n, but it's 100% faster in our real production!
  • Don't write in your IDE. emacs/vi
  • Choose the proper variable names: easy to understand
  • Explain the usage of your key data structure
  • Read other people's code, then learn something

Fundamental Prep

Check: BASIC.md

About this Github Repo

Commands

  • Find amusing tickets
find . -name *.py | xargs grep -C 3 amusing | grep -v Author \
     | grep -v Description | grep -v "\-\-" | grep -v "File:" | grep -v "^$" | grep https

Grow Influence

  • Why people would want to use your GitHub repo? TODO: think about it!

Similar Websites

License

Basic tests

Basic Data Structure

  • Bloom filter
  • Hash
  • Bit-map
  • Heap
  • Inverted index/Trie tree
  • Segment tree
  • Red-Black tree

Basic Methodologies

  • Divide & Conquer
  • Hash
  • Sort: heap/quick/merge sort
  • Bloom filter/Bitmap
  • Inverted index/Trie tree
  • External sorting
  • Mapreduce

Misc

  • Permutation & Combination

https://www.sigmainfy.com/blog/leetcode-handbook-all-problem-solution-index.html

challenges-leetcode-interesting's People

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.