Learning Note of Go – Leetcode

Use of Channel


Longest Palindrome

Longest Substring Without Repeating Characters


Allocate space for slices. Use make.

Allocate space for pointer, use new

Add two numbers


Hash Map

Note: using hash map


Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.

You may assume that each input would have exactly one solution.





Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Notify of