profile
Gopyther
post-thumbnail

Leetcode Array101 Duplicate Zeros in GO

Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right.Note that elements beyond the

2022년 2월 21일
·
0개의 댓글

Leetcode learn array Code from Java to Go(Insert)

https://go.dev/play/p/dgUwKFJ0u5fgo.dev/play/p/CKrjJR9n233go.dev/play/p/CeElLOqrIE8

2022년 2월 21일
·
0개의 댓글
post-thumbnail

15/02 Study Daily record

This Node interface contained only two methods.The interface served as the parent interface for two struct types.The SLLNode type acted as a normal no

2022년 2월 16일
·
2개의 댓글
post-thumbnail

Baekjoon 2003 Sum of numbers in Go

Scan function didn't wait when I put Enter(\\n)So I checked and modified like below.Enter should be included with ScanfI added Go routine and changed

2022년 2월 15일
·
1개의 댓글
post-thumbnail

Leetcode Array101 Squares of a Sorted Array by Go

Constraints: 1 <= nums.length <= 104 \-104 <= numsi <= 104 nums is sorted in non-decreasing order.go.dev/play/p/xhKIDRLSZNg1) First I made

2022년 2월 14일
·
0개의 댓글
post-thumbnail

Leetcode Array101 Find Numbers with Even Number of Digits by Go

Constraints:1 <= nums.length <= 5001 <= numsi <= 10^5go.dev/play/p/2KlCdhBdEB4Due to nums length, I put power 499. \- length 10^1 = 2 \-

2022년 2월 12일
·
0개의 댓글

11/02 Study Daily record

The reason for error handling is to prevent program errors that the compiler does not notice. Then you need to set two things. 1) How to set the erro

2022년 2월 11일
·
0개의 댓글

10/02 Study Daily record

Select statement allows our code to wait on multiple channels at the same timeSelect blocks until one channel is readyIf multiple channels are ready,

2022년 2월 10일
·
0개의 댓글
post-thumbnail

Leetcode Array101 Max Consecutive Ones by Go

Really simple and clear code!

2022년 2월 10일
·
0개의 댓글

Leetcode learn arrays 101 Code from Java to Go(Array Capacity VS Length)

Declare an integer slice of Capacity 6 and length 0Arrays in Go are static. This means you can store the same data consecutively within a fixed array

2022년 2월 10일
·
0개의 댓글

09/02 Study Daily record

A way for goroutines to communicateA channel passes a value from one goroutine to another"Share memory by communicatingCreate a channel => ch := make(

2022년 2월 9일
·
0개의 댓글

08/02 Study Daily record

\-Do not communicate by sharing memory; instead, share memory by communicating\-Do not communicate by locking variables between threads\-Communicate b

2022년 2월 9일
·
0개의 댓글

Leetcode learn array Code from Java to Go(Loop)

Example Array Code in Leetcode

2022년 2월 8일
·
0개의 댓글

Leetcode learn array Code from Java to Go(DVD)

I don't think AddDVD function is needed in Go. because I can decalre values in structure without it.go.dev/play/p/K9DPj7RxrXV

2022년 2월 8일
·
0개의 댓글

04/02 Study Daily record

Go does not have classes.A method is a function with special receiver argument.func (recv ) fn()The type to which the method belongs is known as the r

2022년 2월 4일
·
0개의 댓글

03/02 Study Daily record

Slice https://go.dev/blog/slices-intro -slice consists of three things: a pointer to an array, length and capacity. -nil and empty slices (with 0 cap

2022년 2월 3일
·
0개의 댓글

02/02 Study Daily record

SetEmptyStruct 빈구조체

2022년 2월 3일
·
0개의 댓글

01/02 Study Daily record

fallthrough > func main() { var word = "F" > switch word { case "A", "B", "C", "D": fmt.Println("A or B or C or D") case "E", "F", "G": fmt.Pr

2022년 2월 2일
·
0개의 댓글

31/01 Study Daily record

Rest API API(Application Programming Interface) Interface : Method which is used for communication. for example : TV Remote control signal -> TV

2022년 2월 1일
·
0개의 댓글