MCPcopy Create free account

hub / github.com/Jensenczx/CodeEveryday / functions

Functions269 in github.com/Jensenczx/CodeEveryday

Methodmain
(String[] args)
4_HappyNumber.java:32
Methodmain
(String[] args)
1_Gloves.java:43
Methodmain
(String[]args)
17_TreeisIdentical.java:25
Methodmain
(String[]args)
115_numSquares.java:51
Methodmain
(String[]args)
6_BitSwapRequired.java:17
Methodmain
(String[] args)
7_isValidParentheses.java:30
Methodmain
(String []args)
3_LengthOfLastWord.java:32
Methodmain
(String[]args)
53_spiralOrder.java:40
MethodmajorityNumber
@param nums: a list of integers @return: find a majority number
8_majorityNumber.java:6
MethodmajorityNumber
@param nums: A list of integers @return: The majority number that occurs more than 1/3
118_majorityNumber.java:6
MethodmaxProfit
@param prices: Given an integer array @return: Maximum profit
117_maxProfit1.java:6
MethodmaxProfit
@param prices: Given an integer array @return: Maximum profit
116_maxProfit.java:6
MethodmaxSquare
@param matrix: a matrix of 0 and 1 @return: an integer
113_maxSquare.java:6
MethodmaxSubArray
@param nums: A list of integers @return: A integer indicate the sum of max subarray
56_maxSubArray.java:6
MethodmergeSortedArray
(int[] A, int m, int[] B, int n)
129_mergesortedArray.java:11
MethodmergeSortedArray
@param A and B: sorted integer array A and B. @return: A new sorted integer array
92_mergeSortedArray.java:6
MethodmergeTwoLists
@param ListNode l1 is the head of the linked list @param ListNode l2 is the head of the linked list @return: ListNode head of linked list
44_mergeTwoLists.java:7
Methodmin
()
51_minstack.java:27
MethodminCost
@param costs n x 3 cost matrix @return an integer, the minimum cost to paint all houses
100_paintingHouseMinCost.java:6
MethodminDepth
@param root: The root of binary tree. @return: An integer.
96_minDepth.java:17
MethodminDistance
@param word1 & word2: Two string. @return: The minimum number of steps.
26_minDistance.java:6
MethodminPathSum
@param grid: a list of lists of integers. @return: An integer, minimizes the sum of all numbers along its path
29_minPathSum.java:6
MethodminSubArray
@param nums: a list of integers @return: A integer indicate the sum of minimum subarray
114_minSubArray.java:6
MethodminimumTotal
@param triangle: a list of lists of integers. @return: An integer, minimum path sum.
22_minimumTotal.java:6
MethodmissNum
(int[] array)
64_missNum.java:1
Methodmodify
@param root, index, value: The root of segment tree and @ change the node's value with [index, index] to the new given value @return: void
85_modifySegmentTree.java:20
MethodnextPermutation
@param nums: an array of integers @return: return nothing (void), do not return anything, modify nums in-place instead
102_nextPermutation.java:6
MethodnthSuperUglyNumber
@param n a positive integer @param primes the given prime list @return the nth super ugly number
111_nthSuperUglyNumber.java:7
MethodnthToLast
@param head: The first node of linked list. @param n: An integer. @return: Nth to last node of a singly linked list.
79_nthToLast.java:7
MethodnumWays
@param n non-negative integer, n posts @param k non-negative integer, k colors @return an integer, the total number of ways
104_numWays.java:7
MethodnumbersByRecursion
@param n: An integer. return : An array storing 1 to the largest number with n digits.
46_numbersByRecursion.java:6
Methodpartition
@param head: The first node of linked list. @param x: an integer @return: a ListNode
78_listpartition.java:7
MethodpartitionArray
@param nums: The integer array you should partition @param k: As description return: The index after partition
70_partitionArray.java:7
MethodpartitionArray
@param nums: an array of integers @return: nothing
42_partitionArray.java:6
MethodpermutationIndex
@param A an integer array @return a long integer
5_PermutationIndex.java:6
Methodpermute
@param nums: A list of integers. @return: A list of permutations.
65_permute.java:6
Methodpop
()
51_minstack.java:21
MethodpostorderTraversal
@param root: The root of binary tree. @return: Postorder in ArrayList which contains node values.
50_postorderTraversal.java:7
MethodproductExcludeItself
(ArrayList<Integer> A)
131_productExcludeItself.java:9
Methodpush
(int number)
51_minstack.java:12
Methodquery
@param root, start, end: The root of segment tree and an segment / interval @return: The maximum number in the interval [start
84_segmentTreeQuery.java:20
Methodquery
@param root, start, end: The root of segment tree and an segment / interval @return: The count number in the interval [start,
90_segmentTreequery2.java:20
MethodremoveElements
@param head a ListNode @param val an integer @return a ListNode
82_removeElements.java:7
MethodremoveNthFromEnd
@param head: The first node of linked list. @param n: An integer. @return: The head of linked list.
43_removeNthFromEnd.java:7
Methodreverse
@param head: The head of linked list. @return: The new head of reversed linked list.
45_reverse.java:6
MethodreverseInteger
@param n the integer to be reversed @return the reversed integer
87_reverseInteger.java:6
MethodreversePairs
@param A an array @return total of reverse pairs
105_reversePairs.java:6
MethodrotateString
@param str: an array of char @param offset: an integer @return: nothing
94_rotateString.java:7
MethodsearchInsert
param A : an integer sorted array param target : an integer to be inserted return : an integer
112_searchInsert.java:7
MethodsearchMatrix
@param matrix: A list of lists of integers @param: A number you want to search in the matrix @return: An integer indicate the occurrence of target in
40_searchMatrix.java:7
MethodsimplifyPath
@param path the original path @return the simplified path
121_simplifyPath.java:6
MethodsingleNumber
@param A : an integer array return : a integer
16_1_singleNumber.java:6
MethodsingleNumberII
@param A : An integer array @return : An integer
120_singleNumberII.java:6
MethodsolveNQueens
Get all distinct N-Queen solutions @param n: The number of queens @return: All distinct solutions For example, A string '...Q' shows a queen on forth
133.solveNQueens.java:8
MethodsortLetters
@param chars: The letter array you should sort by Case @return: void
68_sortLetters.java:6
MethodsortedArrayToBST
@param A: an integer array @return: a tree node
95_sortedArrayToBST.java:17
MethodstrStr
Returns a index to the first occurrence of target in source, or -1 if target is not part of source. @param source string to be scanned. @param target
108_strStr.java:8
MethodstringPermutation
@param A a string @param B a string @return a boolean
49_stringPermutation.java:7
MethodsubarraySum
@param nums: A list of integers @return: A list of integers includes the index of the first number and the index of the last number
127_subarraySum.java:7
MethodswapPairs
@param head a ListNode @return a ListNode
106_swapPairs.java:14
Methodtalk
()
99_ToyFactory.java:2
Methodtalk
()
99_ToyFactory.java:7
Methodtalk
()
99_ToyFactory.java:14
MethodthreeSum
@param numbers : Give an array numbers of n integer @return : Find all unique triplets in the array which gives the sum of zero.
72_threeSum.java:6
Methodtop
()
33_QueueByStack.java:30
MethodtrailingZeros
(long n)
103_trailingZeros.java:6
MethodtwoSum
(int[] numbers, int target)
71_twosum.java:7
MethoduniquePaths
@param n, m: positive integer (1 <= n ,m <= 100) @return an integer
30_uniquePaths.java:6
MethoduniquePathsWithObstacles
@param obstacleGrid: A list of lists of integers @return: An integer
31_uniquePathsWithObstacles.java:6
← previous201–269 of 269, ranked by callers