vs没报错leetcode报错-interview_tasks:面试任务

时间:2024-07-19 22:09:45
【文件属性】:

文件名称:vs没报错leetcode报错-interview_tasks:面试任务

文件大小:35KB

文件格式:ZIP

更新时间:2024-07-19 22:09:45

系统开源

vs没报错leetcode报错Go (Golang) 有趣的例子和棘手的实现 目录 回文 测试号是否为回文 例子: func main () { numbers := [] int64 { 123 , 123321 , 987654321123456789 } for _ , val := range numbers { if val == reverce ( val ) { fmt . Printf ( "%d is Palindrom \n " , val ) } else { fmt . Printf ( "%d is NOT Palindrom \n " , val ) } } } func reverce ( num int64 ) int64 { r := int64 ( 0 ) for num != 0 { r = r * 10 + num % 10 num = num / 10 } return r } 输出: 123 is NOT Palindrom 123321 is Palindrom 9876543211234567


【文件预览】:
interview_tasks-master
----embedding.go(760B)
----longest_valid_parentheses.go(617B)
----lolongest_substring.go(619B)
----a.go(667B)
----defer.go(311B)
----interfaces3.go(545B)
----fizzbuzz.go(329B)
----regular_expression_matching.go(993B)
----trapping_rain_water.go(1KB)
----qsort()
--------qsort.go(1KB)
--------qsort_test.go(812B)
----lambda.go(206B)
----valid_number.go(1KB)
----candy.go(578B)
----q1.go(221B)
----sudoku_solver.go(790B)
----merge_k_sorted_lists.go(633B)
----errors.go(2KB)
----palindrom.go(380B)
----longest_increasing_path_in_a_matrix.go(2KB)
----median_of_two_sorted_arrays.go(1KB)
----map.go(898B)
----sse.go(3KB)
----close_to_broadbast.go(463B)
----benchmark()
--------benchmark.go(18B)
--------benchmark_test.go(373B)
----add_two_numbers.go(1KB)
----broadcast.go(600B)
----interfaces.go(354B)
----LICENSE(18KB)
----roman_to_integer.go(460B)
----single_number_3.go(484B)
----README.md(18KB)
----twoSum.go(515B)
----go_fun_v2.go(163B)
----error_handling.go(1KB)
----http.go(463B)
----send_recive_same_chan.go(615B)
----chan_usage.go(598B)
----maximum_gap.go(926B)
----data_race_fixed.go(671B)
----defer2.go(369B)
----.gitignore(266B)
----select.go(50B)
----reverse.go(584B)
----data_race.go(670B)
----go_fun.go(160B)
----max_points_on_a_line.go(922B)

网友评论