Overview Version History Q & A Rating & Review
Description
Thanks for trying out this extension <3. It was designed to help Competitive Programmers to get access to pre-made functions and codes easily for going fast during solving.
For more information or adding any issue, Go to the Github page below-
Github: https://github.com/101rakibulhasan/coderush-snippets
PREFIXES
init -> Initialize C++ Main()
init-cp -> CP-Initialize C++ Main()
tw -> While-TestCase
tf -> For-TestCase
twsv -> While-TestCase with Special Value
tweof -> While-TestCase with EOF
vec -> Initialize Vector
conv_inttobits -> Convert Int To Binary
print -> Print COUT
scan -> Get CIN
prnt_arr_func -> Initialize Function For Printing 1D Array
prnt_arr -> Print Array
arr -> Initialize Array[size] With Input
bs_func -> (vec,ll) Returns Index using Binary Search Function
bs -> (vec,ll) Returns Index using Binary Search
prime_func -> (ll) Returns 1 or 0 if Prime or Not
prime -> Initialize Prime Checker Variable
gen_prime_func -> Generate Prime Numbers Till N
gen_prime -> (vector) Initialize Prime Numbers Generator
prnt_vec -> Print Vector
dfs_func -> DFS Function
dfs -> Initializes DFS
bfs_func -> BFS Function (bfs_nodes)
bfs -> (root,edge) BFS Initialize (bfs_nodes)
gcd_func -> GCD Function
gcd -> (ll) Returns GCD
lcm_func -> (ll) LCM Function
lcm -> (ll) Returns the LCM Number
gen_prime_factors_func -> (vector) Generates Prime Factors
gen_prime_factors -> (vector) Initialize Prime Factors
power_func -> (base^upper) Power Function
power -> Do Power (base^powervar)
conv_numtostr_func -> (string) Convert Number to String Function
conv_strtonum_func -> (ll) Convert String to Number Function
conv_strtonum -> (ll) Convert String to Number
conv_numtostr -> (string) Convert Number to String
arr_2d -> Initialize 2D Array
prnt_arr_2d -> Print 2D Array