![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer
远腾飞
平凡的脚步也可以走完伟大的行程。
这个世界上任何奇迹的产生都是经过千辛万苦的努力而得的,首先承认自己的平凡,然后用千百倍的努力来弥补平凡。不要在应该奋斗的年华里,选择安逸。
展开
-
[剑指offer] JAVA版题解 面试题65
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion65 * @date 2020-07-05 21:10 */public class InterviewQuestion65 { public int addTwoNumber(int num1, int num2) { .原创 2020-07-05 21:15:39 · 113 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题64
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion64 * @date 2020-07-05 17:57 */public class InterviewQuestion64 { public int sumFromOneToN(int n) { int sum .原创 2020-07-05 18:09:47 · 150 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题63
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion63 * @date 2020-07-05 17:34 */public class InterviewQuestion63 { public int maxDiff(int[] number) { if (nul.原创 2020-07-05 17:49:46 · 130 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题62
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion62 * @date 2020-07-05 17:00 */public class InterviewQuestion62 { public int lastRemaining(int n, int m) { i.原创 2020-07-05 17:06:20 · 152 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题61
代码演示:package swordfingeroffer;import java.util.Arrays;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion61 * @date 2020-07-05 15:48 */public class InterviewQuestion61 { public boolean isContinu.原创 2020-07-05 16:00:28 · 139 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题59
代码演示:package swordfingeroffer;import java.util.ArrayDeque;import java.util.ArrayList;import java.util.List;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion59 * @date 2020-07-05 11:47 */public c.原创 2020-07-05 12:12:52 · 89 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题58
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion58 * @date 2020-07-05 10:16 */public class InterviewQuestion58 { public String reverseSentence(String str) { .原创 2020-07-05 10:35:31 · 170 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题55
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion55 * @date 2020-07-04 22:17 */public class InterviewQuestion55 { public int deepthTree(TreeNode root) { if .原创 2020-07-04 23:23:36 · 159 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题54
代码演示:package swordfingeroffer;import java.util.ArrayList;import java.util.List;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion54 * @date 2020-07-04 21:40 */public class InterviewQuestion54 { .原创 2020-07-04 22:09:44 · 218 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题53
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion53 * @date 2020-07-04 20:22 */public class InterviewQuestion53 { public int getNumberOfK(int[] data, int k) { .原创 2020-07-04 20:47:20 · 112 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题52
代码演示:package swordfingeroffer;import java.util.List;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion52 * @date 2020-07-04 16:31 */public class InterviewQuestion52 { public ListNode findFirstC.原创 2020-07-04 16:50:25 · 98 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题51
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion51 * @date 2020-07-04 15:45 */public class InterviewQuestion51 { int count = 0; public int inversePairs(int[] a.原创 2020-07-04 16:08:08 · 91 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题50
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion50 * @date 2020-07-04 14:39 */public class InterviewQuestion50 { public int FirstNotRepeatingChar(String str) { .原创 2020-07-04 14:50:04 · 85 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题49
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion49 * @date 2020-07-04 10:29 */public class InterviewQuestion49 { private boolean isUgly(int number) { while.原创 2020-07-04 11:51:29 · 83 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题45
代码演示:package swordfingeroffer;import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.List;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion45 * @date.原创 2020-07-04 10:03:05 · 93 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题43
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * Company:Mopon * @name InterviewQuestion43 * @date 2020-06-24 23:07 */public class InterviewQuestion43 { public int numberOfOneToN(int n) .原创 2020-06-24 23:33:13 · 325 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题41
代码演示:package swordfingeroffer; import java.util.Comparator; import java.util.PriorityQueue;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion41 * @date 2020-06-23 10:46 */public clas.原创 2020-06-23 11:07:54 · 88 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题40
代码演示:package swordfingeroffer;import java.util.ArrayList;import java.util.Comparator;import java.util.List;import java.util.PriorityQueue;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion40 * @da.原创 2020-06-23 11:06:42 · 131 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题39
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion39 * @date 2020-06-22 19:17 */public class InterviewQuestion39 { public int moreThanHalfNumber(int[] arr) { .原创 2020-06-22 19:38:12 · 156 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题37
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion37 * @date 2020-06-21 23:38 */public class InterviewQuestion37 { private int index = -1; /** * 将二叉树序列化 .原创 2020-06-22 19:32:06 · 147 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题36
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion36 * @date 2020-06-15 0:06 */public class InterviewQuestion36 { public TreeNode convert(TreeNode pRootOfTree) { .原创 2020-06-21 09:58:57 · 161 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题35
代码演示:package swordfingeroffer;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion35 * @date 2020-06-14 12:12 */public class InterviewQuestion35 { private void cloneNodes(ComplexListNode pHeader) .原创 2020-06-14 17:13:54 · 278 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题34
代码演示:package swordfingeroffer;import java.util.Stack;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion34 * @date 2020-06-14 9:46 */public class InterviewQuestion34 { public void findPath(TreeN.原创 2020-06-14 09:59:18 · 108 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题33
代码演示:package swordfingeroffer;import java.util.Arrays;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * Company:Mopon * @name InterviewQuestion33 * @date 2020-06-13 20:42 */public class InterviewQuestion33 { public .原创 2020-06-13 20:58:34 · 132 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题32
代码演示:package swordfingeroffer;import java.util.LinkedList;import java.util.Queue;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion32 * @date 2020-06-13 18:12 */public class InterviewQuestion32 {.原创 2020-06-13 18:21:51 · 168 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题31
代码演示:package swordfingeroffer;import java.util.Stack;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion31 * @date 2020-06-13 16:01 */public class InterviewQuestion31 { public boolean IsPopOrder.原创 2020-06-13 16:11:28 · 101 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题30
代码演示:package swordfingeroffer;import java.util.Stack;import java.util.Stack;/** * <p>Description: </p> * * @author 罗志远 * @version 1.0 * @name InterviewQuestion30 * @date 2020-06-13 14:57 */public class InterviewQuestion30 { .原创 2020-06-13 15:14:55 · 139 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题29
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-06-11. * @time 22:43 */public class InterviewQuestion29 { /** * 顺时针打印数字 * @param numbers * @param columns * @param rows */ public void pr..原创 2020-06-11 23:46:54 · 160 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题28
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-06-03. * @time 0:27 */public class InterviewQuestion28 { public static class BinaryTreeNode { int value; BinaryTreeNode left; BinaryTreeNode rig.原创 2020-06-03 00:39:33 · 108 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题27
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-06-02. * @time 1:00 */public class InterviewQuestion27 { public static class BinaryTreeNode { int value; BinaryTreeNode left; BinaryTreeNode rig.原创 2020-06-02 01:09:17 · 103 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题26
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-06-02. * @time 0:23 */public class InterviewQuestion26 { public static class BinaryTreeNode { int value; BinaryTreeNode left; BinaryTreeNode rig.原创 2020-06-02 00:52:31 · 87 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题25
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 20:57 */public class InterviewQuestion25 { public static class ListNode { int value; ListNode next; public ListNode(int value) {.原创 2020-05-31 23:32:31 · 126 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题24
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 20:01 */public class InterviewQuestion24 { public static class ListNode { int value; ListNode next; public ListNode(int value) .原创 2020-05-31 20:37:00 · 102 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题23
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 19:33 */public class InterviewQuestion23 { public static class ListNode { int value; ListNode next; public ListNode(int value) ..原创 2020-05-31 20:00:49 · 95 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题22
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 17:18 */public class InterviewQuestion22 { public static class ListNode{ int value; ListNode next; public ListNode(int value) {..原创 2020-05-31 17:42:54 · 104 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题21
代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 16:11 */public class InterviewQuestion21 { public void reorderOddEvent(int[] arr) { if (arr == null || arr.length == 0) { throw new...原创 2020-05-31 16:51:13 · 115 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题20
代码演示:package swordfingeroffer;import org.apache.commons.lang3.StringUtils;/** * create by * * @Author 罗志远 * @on 2020-05-31. * @time 9:47 */public class InterviewQuestion20 { // 判断E|e后面 private boolean afterE(int index, int len, char[]..原创 2020-05-31 11:30:57 · 261 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题19
参考:https://blog.csdn.net/hh_zheng/article/details/78585413添加链接描述代码演示:package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-28. * @time 0:00 */public class InterviewQuestion19 { private boolean matchCore(char[] str, int strI.原创 2020-05-30 01:25:06 · 458 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题18
代码演示package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-27. * @time 23:27 */public class InterviewQuestion18 { public static class ListNode{ int value; ListNode next; public ListNode(int value) {.原创 2020-05-28 01:03:00 · 94 阅读 · 0 评论 -
[剑指offer] JAVA版题解 面试题17
代码演示package swordfingeroffer;/** * create by * * @Author 罗志远 * @on 2020-05-09. * @time 0:14 */public class InterviewQuestion17 { private void printNumber(char[] chars){ boolean isBegging0 = true; //char[] chars = str.toCharA..原创 2020-05-09 01:16:54 · 242 阅读 · 0 评论