MCPcopy Create free account

hub / github.com/TheAlgorithms/Python / functions

Functions3,909 in github.com/TheAlgorithms/Python

Functionwheatstone_solver
This function can calculate the unknown resistance in an wheatstone network, given that the three other resistances in the network are known.
electronics/wheatstone_bridge.py:5
Functionwhile_solution
Returns the number of composite integers below max_number have precisely two, not necessarily distinct, prime factors. >>> while_solutio
project_euler/problem_187/sol1.py:94
Functionword_break
Determines if the input string can be segmented into a sequence of valid dictionary words using backtracking. Parameters: input_stri
backtracking/word_break.py:48
Functionword_break
Return True if numbers have opposite signs False otherwise. >>> word_break("applepenapple", ["apple","pen"]) True >>> word_break("ca
dynamic_programming/word_break.py:27
Functionword_exists
>>> word_exists([["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], "ABCCED") True >>> word_exists([["A","B","C","E"],["S","F","C","
backtracking/word_search.py:91
Functionword_ladder
Solve the Word Ladder problem using Backtracking and return the list of transformations from begin_word to end_word. Parameters: beg
backtracking/word_ladder.py:68
Functionwrapper
>>> [int(x) for x in wrapper(Y)] [0, 0, 1]
machine_learning/multilayer_perceptron_classifier.py:18
Functionxnor_gate
Calculate XOR of the input values >>> xnor_gate(0, 0) 1 >>> xnor_gate(0, 1) 0 >>> xnor_gate(1, 0) 0 >>> xnor_
boolean_algebra/xnor_gate.py:19
Functionxor_gate
calculate xor of the input values >>> xor_gate(0, 0) 0 >>> xor_gate(0, 1) 1 >>> xor_gate(1, 0) 1 >>> xor_gate(1, 1)
boolean_algebra/xor_gate.py:18
← previous3,901–3,909 of 3,909, ranked by callers