原创 leetcode_algorithm9.Palindrome Number

題目: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forwar

原创 ACL

原文鏈接:https://blog.csdn.net/u012485480/article/details/80227848 版權聲明:本文爲博主原創文章,遵循 CC 4.0 BY-SA 版權協

原创 leetcode_algorithm8 String to Integer (atoi)

題目: Implement atoi which converts a string to an integer. (寫一個把字符串轉換爲數字的atoi函數接口) The function first discards as many

原创 leetcode_algorithm6.ZigZag Conversion

題目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to d

原创 leetcode_algorithm6. Reverse Integer

題目: Given a 32-bit signed integer, reverse digits of an integer. (給出一個32位無符號整數,將這個整數反轉)  思路: 這道題目比較簡單,唯一要注意的地方是整數是32位

原创 解決使用tengsorflow的retrain事timeout的問題。

現在從官網下到的retrain版本,在運行的時候出現timeout,各種網上查詢之後,換了一個版本的retrain版本之後,再加上fanqiang,可以正確跑起來了。我使用的 版本如下 retrain.py  

原创 leetcode_algorithm3 Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. 給你一個字符串,找到它的無重複字符的最長子串。 Examp

原创 leetcode_algorithm5.longest_palindromic_substring

題目: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000

原创 leetcode_algorithm2.add to number

編譯語言: python3 題目: You are given two non-empty linked lists representing two non-negative integers. The digits are st

原创 同時安裝了tensorflow的cpu版本和gpu版本,刪除gpu版本後報錯

在卸載gpu版本之後,出現failed  to load native tensorflow runtime. 原因可能是卸載gpu版本的同時,誤刪了兩者同時需要使用的文件。 解決方法:把cpu版本的也卸載了,載重新安裝即可。

原创 leetcode_algorithm1.two_sun

 <h1>環境:</h1>python3 題目: Given an array of integers, return indices of the two numbers such that they add up to a speci