Coding Patterns in C# and Python for Coding Interviews (M/H)

Note: this post is being updated progressively. 1. Sliding window Problem: Given a string s, find the length of the longest substring without repeating characters. C# Runtime: 84 ms, faster than 80.08% of C# online submissions for Longest Substring Without Repeating Characters. Time Complexity : O(n) Space Complexity: O(n) Python 3 Runtime: 64 ms, faster than 65.71% of Python3 online submissions for Longest Substring … Read more Coding Patterns in C# and Python for Coding Interviews (M/H)

Google Python Style Guide

Source : https://google.github.io/styleguide/pyguide.html 1 Background Python is the main dynamic language used at Google. This style guide is a list of dos and don’ts for Python programs. To help you format code correctly, we’ve created a settings file for Vim. For Emacs, the default settings should be fine. Many teams use the yapf auto-formatter to avoid arguing over formatting. 2 … Read more Google Python Style Guide

Open chat
Powered by