Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeToExpress/dailycodebase
/ functions
Functions
801 in github.com/CodeToExpress/dailycodebase
⨍
Functions
801
◇
Types & classes
143
↓ 2 callers
Function
longestSubstring
* @author MadhavBahl * @date 03/01/2018 * Referance: https://en.wikipedia.org/wiki/Longest_common_substring_problem
day11/JavaScript/longest_substring_dynamic.js:7
↓ 2 callers
Function
minEditDist
* @author MadhavBahl * @date 31/12/2018
day8/JavaScript/sol.js:6
↓ 2 callers
Function
min_edit_distance
(str1, str2)
day8/Python/minimum_edit_distance.py:10
↓ 2 callers
Function
numVowels
(str)
day4/JavaScript/partA_sol2.js:8
↓ 2 callers
Function
numVowels
(str)
day4/JavaScript/partA_sol4.js:7
↓ 2 callers
Function
numVowels
(str)
day4/JavaScript/partA_sol1.js:6
↓ 2 callers
Function
numVowels
(str)
day4/JavaScript/partA_sol3.js:8
↓ 2 callers
Function
parse_input_array
()
day24/Ruby/circular_rotation.rb:27
↓ 2 callers
Method
peek
day38/C++/profgrammer_stack.cpp:28
↓ 2 callers
Function
permute
Using STL
day10/C++/day10AllPermutations.cpp:8
↓ 2 callers
Method
pop
()
day38/JavaScript/stack2.js:43
↓ 2 callers
Method
pop
()
day38/JavaScript/stack1.js:38
↓ 2 callers
Method
pop
()
day39/JavaScript/stackReverse.js:34
↓ 2 callers
Function
print
day32/C++/selectionSort.cpp:24
↓ 2 callers
Function
print
day33/C++/insertionSort.cpp:26
↓ 2 callers
Method
printArr
(int arr[], int num)
BONUS/Arrays/Reverse/Reverse.java:19
↓ 2 callers
Method
printArr
(int arr[], int num)
BONUS/Misc/Reverse/Reverse.java:19
↓ 2 callers
Function
printArray
day31/C++/bubbleSort.cpp:31
↓ 2 callers
Function
printPascal
(num)
day15/JavaScript/pascal_MadhavBahlMD.js:14
↓ 2 callers
Method
product
(int m,int n)
day14/Java/Recmultiply.java:14
↓ 2 callers
Method
push
(element)
day38/JavaScript/stack2.js:31
↓ 2 callers
Method
push
(record)
day38/JavaScript/stack1.js:28
↓ 2 callers
Function
rev
(Str, start, end)
day6/Python/wordRev.py:6
↓ 2 callers
Function
reverse
(string)
Day2/Python/Anirudh_Day2.py:5
↓ 2 callers
Function
reverseFunc
string reverse : Part A
Day2/C++/00x2.cpp:11
↓ 2 callers
Function
reverse_string
function to reverse the string.
Day2/C++/string_reverse_palindrome.cpp:12
↓ 2 callers
Method
search
(int []arr,int p,int l,int r)
day29/Java/binarySearch.java:14
↓ 2 callers
Function
searchCommonElements
(arr1, arr2)
day22/JavaScript/sol1b_indexOf.js:7
↓ 2 callers
Function
searchCommonElements
* @author MadhavBahl * @date 18/01/2019 * Method - Bruteforce Search - Time complexity = O(m.n.p) // m, n, and p are the lengths of 3 input arrays
day22/JavaScript/sol2a_bruteforce.js:7
↓ 2 callers
Function
searchCommonElements
* @author MadhavBahl * @date 18/01/2019 * Method - Frequency Count
day22/JavaScript/sol1d_frequencycount.js:7
↓ 2 callers
Function
searchCommonElements
* @author MadhavBahl * @date 18/01/2019 * Method - Frequency Count (object)
day22/JavaScript/sol2b_frequencycount.js:7
↓ 2 callers
Function
searchCommonElements
* @author MadhavBahl * @date 18/01/2019 * Method - Brute force Search
day22/JavaScript/sol1a_bruteforce.js:7
↓ 2 callers
Function
spiralCopy
(inputMatrix)
day26/JavaScript/spiralCopy.js:5
↓ 2 callers
Function
substringSearch
* @author MadhavBahl * @date 05/01/2018 * METHOD - Using String.indexOf() method
day12/JavaScript/using_indexof.js:7
↓ 2 callers
Function
substringSearch
* @author MadhavBahl * @date 04/01/2018 * In this case, the worst case Time Complexity will be O(m.n), * m and n are the lengths of string and pat
day12/JavaScript/sol.js:8
↓ 2 callers
Function
substringSearch
* @author MadhavBahl * @date 05/01/2018 * METHOD - Using String.search() method
day12/JavaScript/using_search.js:7
↓ 2 callers
Function
substrings
(string)
day11/Python/longest_common_substring.py:8
↓ 2 callers
Function
sum
day14/C/sum_of_digits.c:8
↓ 2 callers
Method
sum
(int n)
day14/Java/Sumrec.java:14
↓ 2 callers
Function
sumDigits
* @author MadhavBahl * @date 08/01/2018
day14/JavaScript/sum_madhav.js:6
↓ 2 callers
Function
swap
* METHOD -- Backtracking * Algorithm taken from GeeksForGeeks (https://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-s
day10/JavaScript/stringPermute2.js:8
↓ 2 callers
Function
towerOfHanoi
* @source Geeks4Geeks: https://www.geeksforgeeks.org/c-program-for-tower-of-hanoi/ * Implementaed in JavaScript by @MadhavBahl * @date 10/01/2019
day16/JavaScript/hanoi_MadhavBahlMD.js:7
↓ 1 callers
Function
Cap
(String)
day6/Python/sentenceCap.py:6
↓ 1 callers
Function
HammingDistance
(Str1, Str2)
Day3/Python/HammingDistance.py:5
↓ 1 callers
Function
HammingDistance
Day3/C/HammingDistance.c:9
↓ 1 callers
Method
KMPSearch
(String text, String subs)
day12/Java/KMPAlgo.java:10
↓ 1 callers
Function
KMPsearch
KMP Algorithm
day30/C++/naiveSearch.cpp:14
↓ 1 callers
Function
QuickSort
(A, l, r)
day35/Python/quick_sort.py:9
↓ 1 callers
Function
TowerOfHanoi
day16/C/towerofhanoi.c:11
↓ 1 callers
Function
addable
day7/C/One_edit_away.c:26
↓ 1 callers
Function
anagram
* @author MadhavBahl * @date 27/12/2018 * A simple method which first compares the lengths of strings and then iterates through the characters of an
day6/JavaScript/anagram3.js:8
↓ 1 callers
Function
anagram
* @author MadhavBahl * @date 27/12/2018 * METHOD -- Prepare 2 objects which stores frequency of every character in both strings, compare those 2 obj
day6/JavaScript/anagram2.js:7
↓ 1 callers
Function
anagram
* @author MadhavBahl * @date 27/12/2018 * METHOD -- Check the lengths of both strings, sort them and then check whether they are same
day6/JavaScript/anagram1.js:7
↓ 1 callers
Method
areOneEditAway
(String str1, String str2)
day7/Java/OneEditAway.java:61
↓ 1 callers
Function
are_one_edit_away
day7/C++/one_edit_away.cpp:66
↓ 1 callers
Function
are_one_edit_away
(str1, str2)
day7/Ruby/one_edit_away.rb:63
↓ 1 callers
Method
area
(double radius)
BONUS/Misc/CircleArea/CircleArea.java:9
↓ 1 callers
Function
assignValue
(mineField, thisRow, thisCol, row, col)
day27/JavaScript/minesweeper.js:35
↓ 1 callers
Function
binary
(arr, n)
day29/JavaScript/binary.js:1
↓ 1 callers
Function
binarySearchIterate
Iterative Approach
day29/C++/kesh5210_binary_search.cpp:28
↓ 1 callers
Function
binarySearchRecurse
Recursive Approach
day29/C++/kesh5210_binary_search.cpp:10
↓ 1 callers
Function
binary_search
day29/C/Binary_Search.c:9
↓ 1 callers
Function
binary_search_itr
day29/C++/imkaka_binary_search.cpp:11
↓ 1 callers
Function
binary_search_rec
day29/C++/imkaka_binary_search.cpp:32
↓ 1 callers
Function
bubblesort
day31/C++/bubbleSort.cpp:12
↓ 1 callers
Function
calc
day12/C++/KMP.cpp:8
↓ 1 callers
Function
calc_fact
day13/C++/day13a.cpp:9
↓ 1 callers
Method
calculateHammingDistance
(String firstString, String secondString)
Day3/Java/HammingDistanceSolution.java:12
↓ 1 callers
Function
calculateLPS
(pattern)
day12/Python/KMP.py:25
↓ 1 callers
Function
calculate_cartesian_product
(first_set, second_set)
day19/Python/cartesian_product.py:16
↓ 1 callers
Method
canAddACharacter
(String str1, String str2)
day7/Java/OneEditAway.java:53
↓ 1 callers
Function
canBePlaced
(num, chessBoard, row, col)
day17/JavaScript/nqueens.js:53
↓ 1 callers
Method
canDeleteACharacter
(String str1, String str2)
day7/Java/OneEditAway.java:57
↓ 1 callers
Method
canReplaceACharacter
(String str1, String str2)
day7/Java/OneEditAway.java:8
↓ 1 callers
Function
can_add_a_character
day7/C++/one_edit_away.cpp:58
↓ 1 callers
Function
can_add_a_character
(str1, str2)
day7/Ruby/one_edit_away.rb:55
↓ 1 callers
Function
can_delete_a_character
day7/C++/one_edit_away.cpp:62
↓ 1 callers
Function
can_delete_a_character
(str1, str2)
day7/Ruby/one_edit_away.rb:59
↓ 1 callers
Function
can_replace_a_character
day7/C++/one_edit_away.cpp:10
↓ 1 callers
Function
can_replace_a_character
(str1, str2)
day7/Ruby/one_edit_away.rb:6
↓ 1 callers
Function
capitalize
(str)
day6/JavaScript/sentenceCap1.js:2
↓ 1 callers
Function
capitalize_sentence
(string)
day6/Ruby/sentence_capitalization.rb:6
↓ 1 callers
Function
capitalize_sentence_long
(string)
day6/Python/sentence_capitalization.py:12
↓ 1 callers
Function
capitalize_sentence_short
(string)
day6/Python/sentence_capitalization.py:8
↓ 1 callers
Function
cartesian1
(*iplists)
day19/Python/Cartesian.py:9
↓ 1 callers
Function
cartesian2
(ip1, ip2)
day19/Python/Cartesian.py:14
↓ 1 callers
Method
check
(String s,char []c)
day9/Java/minSubstring.java:15
↓ 1 callers
Method
checkLeapYear
(int year)
BONUS/Misc/LeapYear/LeapYear.java:9
↓ 1 callers
Function
checkPalindrome
palindrome check : Part B
Day2/C++/00x2.cpp:18
↓ 1 callers
Function
checkPalindrome
function that checks the string is palindrome or not.
Day2/C++/string_reverse_palindrome.cpp:24
↓ 1 callers
Function
checkSolution
day17/C++/Day17.cpp:46
↓ 1 callers
Function
check_anagram
(first_str, second_str)
day6/Python/anagram_check.py:6
↓ 1 callers
Function
check_anagram
(first_str, second_str)
day6/Ruby/anagram_check.rb:6
↓ 1 callers
Function
check_one_edit_away
(str1, str2)
day7/Python/onewordaway.py:7
↓ 1 callers
Function
check_power_n
(first, second, N)
day18/Python/check_power_n.py:11
↓ 1 callers
Function
check_rotation
(first, second)
day24/Ruby/circular_rotation.rb:6
↓ 1 callers
Method
checker
(String st_check, char[] ch)
day9/Java/smallest_substring.java:8
↓ 1 callers
Method
circular
(List a1,List a2)
day24/Java/circularRotation.java:14
↓ 1 callers
Function
combine
(q1, q2)
day42/JavaScript/alternateQueue.js:52
↓ 1 callers
Function
computeLPS
day30/C++/naiveSearch.cpp:47
← previous
next →
101–200 of 801, ranked by callers