Documentation ¶
Index ¶
- func ColumnWith1(arr [][]int) int
- func CountSquares(matrix [][]int) int
- func DeckRevealedIncreasing(deck []int) []int
- func FindKthLargest(nums []int, k int) int
- func FindMinFibonacciNumbers(k int) int
- func GenerateMatrixII(n int) [][]int
- func LengthOfLongestSubstring(s string) int
- func MaxArea(heights []int) int
- func MaxAreaOfIsland(grid [][]int) int
- func NumOfSubarraysGreaterThanAvg(arr []int, k int, threshold int) int
- func NumTimesAllBlue(light []int) int
- func PancakeSort(A []int) []int
- func ProcessQueries(queries []int, m int) []int
- func ProductExceptSelf(nums []int) []int
- func SearchMatrix(matrix [][]int, target int) bool
- func Subsets(nums []int) [][]int
- func ThreeSum(nums []int) [][]int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnWith1 ¶
func CountSquares ¶
func FindKthLargest ¶
Quicksort in descending order
take K-1 as the pivot note sorting should be in descending order pivot value = nums[k find element less than pivot from left = increment i till nums[i] > pivotVal find element greater than pivot from right = decrement j till nums[j] < pivotval
func FindMinFibonacciNumbers ¶
func GenerateMatrixII ¶
func MaxAreaOfIsland ¶
func PancakeSort ¶
func ProcessQueries ¶
func ProductExceptSelf ¶
func SearchMatrix ¶
Types ¶
This section is empty.
Source Files ¶
- 3sum.go
- bulb-switcher-iii.go
- combination-sum-iii.go
- container-with-most-water.go
- count-square-submatrices-with-all-ones.go
- fb-question-1.go
- find-the-duplicate-number.go
- find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k.go
- kth-largest-element-in-an-array.go
- letter-combinations-of-a-phone-number.go
- longest-substring-without-repeating-characters.go
- max-area-of-island.go
- number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.go
- pancake-sorting.go
- product-of-array-except-self.go
- queens-that-can-attack-the-king.go
- queries-on-a-permutation-with-key.go
- reveal-cards-in-increasing-order.go
- search-a-2d-matrix-ii.go
- spiral-matrix-ii.go
- subsets.go
Click to show internal directories.
Click to hide internal directories.