Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishruth-S/CompetitiveCode
/ functions
Functions
692 in github.com/Vishruth-S/CompetitiveCode
⨍
Functions
692
◇
Types & classes
136
↓ 1 callers
Function
maxset
(A)
InterviewBit_problems/Sorting/Max NonNegative SubArray/solution.py:14
↓ 1 callers
Function
mergeSort
GeeksForGeeks/Merge_Sort_for_Linked_List/Solution.cpp:67
↓ 1 callers
Function
midPoint
Function to find the mid point of the linked list
GeeksForGeeks/Merge_Sort_for_Linked_List/Solution.cpp:28
↓ 1 callers
Function
migratoryBirds
(arr)
Hackerrank_problems/Migratory Birds/solution.py:15
↓ 1 callers
Function
miniMaxSum
(arr)
Hackerrank_problems/Mini-Max Sum/solution.py:3
↓ 1 callers
Function
missing_num
(n)
CSES_Problems/Missing Number/solution.py:1
↓ 1 callers
Function
money
GeeksForGeeks/Sister_and_Coins/Solution.cpp:18
↓ 1 callers
Function
move
Hackerrank_problems/Tower_of_Hanoi_Recursion/solution.cpp:4
↓ 1 callers
Function
myAtoi
(str: str)
LeetCode_problems/String to Integer (ATOI)/Solution.py:12
↓ 1 callers
Function
myFunction
Hackerrank_problems/Let's Review/solution.C:6
↓ 1 callers
Function
n_squared
project_euler_problems/integer right triangle/solution.cpp:36
↓ 1 callers
Function
num_solutions
project_euler_problems/integer right triangle/solution.cpp:51
↓ 1 callers
Function
numberOfOperations
HackerEarth_problems/Balancing cubes/solution.cpp:18
↓ 1 callers
Function
numberVocab
create function for load vocab from number base on index
Hackerrank_problems/Time_In_Words/solution.cpp:6
↓ 1 callers
Function
organizingContainers
(container)
Hackerrank_problems/Organizing_container_of_balls/solution.py:5
↓ 1 callers
Method
pageCount
(int n, int p)
Hackerrank_problems/DrawingBook/Solution2.java:19
↓ 1 callers
Method
path
(self,x,y)
HackerEarth_problems/Edges on a path/solution.py:64
↓ 1 callers
Function
permutationEquation
Hackerrank_problems/Sequence Equation/solution.cpp:29
↓ 1 callers
Function
permutationEquation
(p)
Hackerrank_problems/Sequence Equation/solution3.py:10
↓ 1 callers
Method
permutationEquation
(int[] p)
Hackerrank_problems/Sequence Equation/Solution.java:12
↓ 1 callers
Function
pickingNumbers
(a)
Hackerrank_problems/Picking Numbers/solution.py:13
↓ 1 callers
Function
populateMyPrimes
Spoj_problems/PRIME1/solution.cpp:9
↓ 1 callers
Method
printArray
(int arr[])
Misc/Heap_Sort/solution.java:94
↓ 1 callers
Function
printList
Function to print the linked list
GeeksForGeeks/Merge_Sort_for_Linked_List/Solution.cpp:86
↓ 1 callers
Function
printNcR
(n, r)
CodeChef_problems/CHEFINSQ/solution.py:7
↓ 1 callers
Method
printOutput
CodeChef_problems/MINDSUM/solution.cpp:71
↓ 1 callers
Function
print_singly_linked_list
(node, sep, fptr)
Hackerrank_problems/Reverse Linked List/solution.py:30
↓ 1 callers
Method
print_top
(self)
Hackerrank_problems/Queue using Two Stacks/solution.py:25
↓ 1 callers
Function
push
Function to push elements into the linked list
GeeksForGeeks/Merge_Sort_for_Linked_List/Solution.cpp:95
↓ 1 callers
Function
read
Codeforces_problems/RockPaperScissors/solution.cpp:30
↓ 1 callers
Function
readAndSortLanterns
Codeforces_problems/Vanya and Lanterns/solution.cpp:13
↓ 1 callers
Function
removeNum
Funtion to remove dupliocates in an array
GeeksForGeeks/Remove duplicate elements from sorted Array/Solution.cpp:5
↓ 1 callers
Function
repeat_counts
(n)
CSES_Problems/Repetitions/solution.py:1
↓ 1 callers
Function
repeatedString
(s, n)
Hackerrank_problems/Repeated String/Solution.py:13
↓ 1 callers
Function
returnMaxDistanceBetweenLanterns
Codeforces_problems/Vanya and Lanterns/solution.cpp:25
↓ 1 callers
Function
reverse
we are making a finction to reverse the given string
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.cpp:9
↓ 1 callers
Function
reverse
(x)
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.py:7
↓ 1 callers
Function
rotate
Function to rotate the matrix by 90 degrees
GeeksForGeeks/Rotate_by_90_degrees/Solution.cpp:21
↓ 1 callers
Function
rpn
Spoj_problems/ONP/solution.cpp:12
↓ 1 callers
Function
search
HackerEarth_problems/Prasanjeet verma and his sorrow/Solution.cpp:36
↓ 1 callers
Function
searchall
HackerEarth_problems/Hey! Please help Pradyumn!/Solution.cpp:57
↓ 1 callers
Function
searchtrie
HackerEarth_problems/Shubham and Subarray Xor/solution.cpp:39
↓ 1 callers
Function
selectCandidate
LeetCode_problems/Majority Element/solution2.cpp:22
↓ 1 callers
Function
shift
this function shifts the position of an existing list or string and returns it as a new list
Misc/Caesar_Cipher_Encryptor/solution2.py:4
↓ 1 callers
Function
sockMerchant
(n, ar)
Hackerrank_problems/Sales by Match/solution.py:10
↓ 1 callers
Function
solve
Here, in this method, we will solve this problem using a odd and even pattern. And, we will check if the given x,y points lies on line x=y or x-y=2 *
Spoj_problems/NSTEPS/solution.cpp:9
↓ 1 callers
Function
solve
Spoj_problems/FCTRL/solution.cpp:16
↓ 1 callers
Function
solve
Spoj_problems/FCTRL2/solution.cpp:46
↓ 1 callers
Function
solve
GeeksForGeeks/Longest Palindrome in String/solution.cpp:4
↓ 1 callers
Function
solve
CodeChef_problems/CENS20D/solution.cpp:25
↓ 1 callers
Function
solve
CodeChef_problems/EVENM/Solution.cpp:24
↓ 1 callers
Function
solve
CodeChef_problems/The Tom and Jerry Game!/solution2.cpp:25
↓ 1 callers
Function
solve
()
CodeChef_problems/Bob and His Friends/Solution.py:21
↓ 1 callers
Function
solve
CodeChef_problems/Multiple of 3/solution.cpp:25
↓ 1 callers
Function
solve
CodeChef_problems/GCD operations/solution.cpp:9
↓ 1 callers
Function
solve
CodeChef_problems/Chef and Street Food/solution.cpp:22
↓ 1 callers
Function
solve
CodeChef_problems/Lapindromes/solution.cpp:21
↓ 1 callers
Function
solve
CodeChef_problems/CHFICRM/Solution.cpp:27
↓ 1 callers
Function
solve
CodeChef_problems/Ada King/solution.cpp:59
↓ 1 callers
Function
solve
Codeforces_problems/RockPaperScissors/solution.cpp:38
↓ 1 callers
Function
solve
this is a classic dp problem, very similar to the knapsack problem. the DP's state will be the current column, row, how many numbers we picked in the
Codeforces_problems/Zero Remainder Sum/solution.cpp:22
↓ 1 callers
Function
solve
Codeforces_problems/Team/solution.cpp:5
↓ 1 callers
Function
solve
Codeforces_problems/Next Round/solution.cpp:5
↓ 1 callers
Function
solve
Codeforces_problems/Mike And Cellphones 689A/solution.cpp:52
↓ 1 callers
Function
solve
Codeforces_problems/Chef Monokarp/solution.cpp:27
↓ 1 callers
Function
solve
The main clue of this question is the equation (n*(n-1))/2 -1. When we sort an array by swapping elements, the Worst case happens when the array is s
Codeforces_problems/Cubes Sorting1420A/Solution.cpp:16
↓ 1 callers
Function
solve
LeetCode_problems/First Missing Positive/Solution.cpp:4
↓ 1 callers
Function
solve
project_euler_problems/Largest Product in a Grid/solution.cpp:14
↓ 1 callers
Function
solve
The following function explains the inorder traversal of a Binary Tree , i.e. leftchild--node--right child :being its basic form.
InterviewBit_problems/Symmetric_Traversal/Solution.cpp:21
↓ 1 callers
Function
solve
Recursive function for the solution
InterviewBit_problems/LeastCommonAncestor/solution.cpp:19
↓ 1 callers
Function
solve
InterviewBit_problems/BinaryTree_PreorderTraversal/Solution.cpp:16
↓ 1 callers
Function
solve
Given below is th solve function
Hackerrank_problems/Operators/Solution.cpp:5
↓ 1 callers
Function
solve
this is the alghorithm to calculate the permutation since it's said that it wants only the one starts with 1 so we just need to calculate
Hackerrank_problems/Sherlock_and_Permutation/solution.py:6
↓ 1 callers
Function
solveMeFirst
(a, b)
Hackerrank_problems/Solve_me_first/solution1_MultipleWays.py:6
↓ 1 callers
Method
solveMeFirst
(int a, int b)
Hackerrank_problems/Solve_me_first/solution.java:7
↓ 1 callers
Function
solve_elevatr
/
CodeChef_problems/ELEVTR/solution.cpp:122
↓ 1 callers
Function
solvingUsingLogicalOperations
(a, b)
Hackerrank_problems/Solve_me_first/solution1_MultipleWays.py:19
↓ 1 callers
Function
split
Hackerrank_problems/Hackfest2020/StrictlyIncreasingSequence/strictlyIncreasingSequence.cpp:99
↓ 1 callers
Function
split
Hackerrank_problems/Hackfest2020/GameOfMaximization/gameOfMaximization.cpp:94
↓ 1 callers
Function
split
Hackerrank_problems/diagonal-difference/solution.cpp:95
↓ 1 callers
Function
split_string
Hackerrank_problems/kangaroo/solution5.cpp:86
↓ 1 callers
Function
split_string
Hackerrank_problems/BeautifulDaysAtTheMovies/solution.cpp:57
↓ 1 callers
Function
split_string
Hackerrank_problems/3D_Surface_Area/solution2.cpp:86
↓ 1 callers
Function
staircase
Complete the staircase function below.
Hackerrank_problems/staircase/solution.cpp:7
↓ 1 callers
Function
sumOfDigits
(n)
Misc/SumOfAllDigits/solution1.py:12
↓ 1 callers
Function
sum_of
(n)
Codeforces_problems/Merge It A/solution.py:4
↓ 1 callers
Function
summingSeries
the formula it's self if tn = n^2 - (n-1)^2 sn = t1+ t2 + ... + tn but if we look it closely we can make a shortcut by just returnin
Hackerrank_problems/Summing_n_series/solution.py:6
↓ 1 callers
Function
sumuptosingledigit
Recursively find sum of digits till the number is single digit
Misc/SumOfAllDigits/solution2.cpp:20
↓ 1 callers
Function
surfaceArea
Hackerrank_problems/3D_Surface_Area/solution2.cpp:17
↓ 1 callers
Method
swap
method to swap ith character with jth character inside charArray @param charArray @param i @param j
Hackerrank_problems/Bigger is Greater/BiggerIsGreater.java:65
↓ 1 callers
Function
timeInWords
Hackerrank_problems/Time_In_Words/solution.cpp:18
↓ 1 callers
Function
towersofhanoi
(disks, source, middle, destination)
Hackerrank_problems/Tower_of_Hanoi_Recursion/solution.py:11
↓ 1 callers
Function
whoIsTheWinner
Hackerrank_problems/Hackfest2020/StrictlyIncreasingSequence/strictlyIncreasingSequence.cpp:16
Method
Dinic
HackerEarth_problems/New Friends/solution.cpp:53
Method
FastReader
()
CodeChef_problems/Chef Wars - Return of the Jedi/Solution.java:29
Method
FlowEdge
HackerEarth_problems/New Friends/solution.cpp:41
Function
HiveMaker
(sticks)
Misc/HiveMaker/solution_2.py:1
Method
HotelApartment
Hackerrank_problems/Hotel Price/solution.cpp:22
Method
HotelRoom
Hackerrank_problems/Hotel Price/solution.cpp:8
Method
Node
GeeksForGeeks/Palindrome_Linked_List/Solution.cpp:8
← previous
next →
201–300 of 692, ranked by callers