MCPcopy Create free account

hub / github.com/anupam-kumar-krishnan/Competitive_Programming / functions

Functions2,161 in github.com/anupam-kumar-krishnan/Competitive_Programming

↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/Codeforces/B_1739.cpp:13
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/Codeforces/1228D.cpp:296
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/Codeforces/B_1696.cpp:11
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Missing_number_Array.cpp:30
↓ 1 callersFunctionsolve
* Given a stream of incoming numbers, find average or mean of the stream at every point. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Average_stream.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Inverse_permutation.cpp:30
↓ 1 callersFunctionsolve
* Given a list of names, display the longest name. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Display_longest_name.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Binary_Search.cpp:29
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Party_couple.cpp:30
↓ 1 callersFunctionsolve
* Given two positive integers num1 and num2, the task is to find the product of the two numbers on a 12 hour clock rather than a number line. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Hour_Clock_Multiplication.cpp:22
↓ 1 callersFunctionsolve
* Given a 2-d array of integers having N*N elements, print the transpose of the array. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/TwoD_Array.cpp:22
↓ 1 callersFunctionsolve
* Program to print reciprocal of letters. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/String_reciprocal.cpp:22
↓ 1 callersFunctionsolve
* Given an array arr[ ] containing equal number of positive and negative elements, arrange the array such that every positive element is followed by a
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Positive_and_negative_elements.cpp:23
↓ 1 callersFunctionsolve
* Given the marks of N students in an Array A, calculate the mean. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Mean.cpp:22
↓ 1 callersFunctionsolve
* Given a string S as input. Delete the characters at odd indices of the string. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Delete_alternate_characters.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Anagram.cpp:29
↓ 1 callersFunctionsolve
* Remove all characters except the numeric characters from an alphanumeric string. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Remove_characters_from_alphanumeric_string.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Reverse_a_string.cpp:27
↓ 1 callersFunctionsolve
* Given a square matrix of size n×n. Your task is to calculate the sum of its diagonals. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Diagonal_sum.cpp:22
↓ 1 callersFunctionsolve
* Given an array Arr[] of N integers.Find the sum of values of even and odd index positions separately. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Even_Odd_Sum.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Gray_Code.cpp:28
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Distance_between_two_point.cpp:26
↓ 1 callersFunctionsolve
* Given a single integer N, your task is to find the sum of the square of first N even natural Numbers. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Power_pow_even_Number.cpp:22
↓ 1 callersFunctionsolve
* For a given N, prints the sum of even and odd integers of the first N natural numbers. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Natural_numbers.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_by_Set_Bit_Count.cpp:30
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Vowel_or_Not.cpp:30
↓ 1 callersFunctionsolve
* Given a string str, convert the first letter of each word in the string to uppercase. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Upper_case_conversion.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/ZigZag_Array.cpp:41
↓ 1 callersFunctionsolve
* Given a string S, consisting only of english alphabets, replace all the alphabets with the alphabets occurring at the same position when counted in
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Front_back_Transformation.cpp:21
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Triangle_growing_downwards.cpp:35
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_Palindrome.cpp:19
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_of_Digit_of_Palindrome.cpp:33
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Count_Digits.cpp:32
↓ 1 callersFunctionsolve
* Print the multiplication table of a given number N. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Multiplication_table.cpp:22
↓ 1 callersFunctionsolve
* Given an array arr[] and an integer K where K is smaller than size of array, the task is to find the Kth smallest element in the given array. It is
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Kth_smallest_element.cpp:22
↓ 1 callersFunctionsolve
* You are given an array A of size N. You need to print elements of A in alternate order (starting from index 0). */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_alternate_elements_Array.cpp:22
↓ 1 callersFunctionsolve
* Given an array Arr of size N, print second largest element from an array. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Second_largest.cpp:22
↓ 1 callersFunctionsolve
* Given two numbers A and B. Perform addition,multiplication, subtraction and division on these two numbers. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Operators.cpp:22
↓ 1 callersFunctionsolve
* Given the length of rectangle, width of rectangle, base of right angled triangle, perpendicular of right angled triangle and radius of circle respec
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Traingle_area.cpp:22
↓ 1 callersFunctionsolve
* Given two square matrices matrixA and matrixB of size n x n. Find the addition of these two matrices. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Addition_square_matrices.cpp:22
↓ 1 callersFunctionsolve
* Swap given two numbers and print them. (Try to do it without a temporary variable.) and return it. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Swap_two_number.cpp:22
↓ 1 callersFunctionsolve
* Given an array arr[] of N non-negative integers representing the height of blocks. If width of each block is 1, compute how much water can be trappe
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Trapping_Rain_water.cpp:22
↓ 1 callersFunctionsolve
* Given a string, remove the vowels from the string. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Remove_vowels_from_string.cpp:22
↓ 1 callersFunctionsolve
* Given an array of N distinct elements, the task is to find all elements in array except two greatest elements in sorted order. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/At_least_two_greater_elements.cpp:22
↓ 1 callersFunctionsolve
* In the given range [L, R], print all numbers having unique digits. e.g. In range 10 to 20 should print all numbers except 11. The number 11 has two
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Unique_Numbers.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Uncommon_string.cpp:45
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Smaller_and_Larger.cpp:39
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Remove_space.cpp:27
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Check_Binary.cpp:29
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_the_left_element.cpp:31
↓ 1 callersFunctionsolve
* Given a list of characters, merge all of them into a string. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Convert_list_of_character_into_string.cpp:22
↓ 1 callersFunctionsolve
* Given a string S, write a program to count the occurrence of Lowercase characters, Uppercase characters, Special characters and Numeric values in th
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Count_type_Characters.cpp:22
↓ 1 callersFunctionsolve
* Given three integers N, M, and K and a matrix Mat of dimensions NxM. Left rotate the matrix K times. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Left_Rotate_Matrix.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Transpose_matrix.cpp:30
↓ 1 callersFunctionsolve
* Given two square matrices Grid1 and Grid2 with the same dimensions(NxN).Check whether they are identical or not. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Identical_matrices.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Reverse_array_groups.cpp:31
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Element_Appear_first_Sorted.cpp:30
↓ 1 callersFunctionsolve
* Given an array of N integers. Your task is to print the sum of all of the integers. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Arrays_sum.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Armstrong_number.cpp:34
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Swapping_Triangle.cpp:33
↓ 1 callersFunctionsolve
* Given a string S. The task is to convert characters of string to lowercase. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Convert_String_to_LowerCase.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Palindrome_check.cpp:31
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Rotate_by_degree.cpp:33
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Parallel_or_Perpendicular.cpp:42
↓ 1 callersFunctionsolve
* Given a number N. The task is to complete the function convertFive() which replace all zeros in the number with 5 and returns the number. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Replace_all_zero_to_five.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_of_AP.cpp:19
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Series_AP.cpp:26
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_an_Array_of_0_1_2.cpp:35
↓ 1 callersFunctionsolve
* Given an array Arr of size N, swap the Kth element from beginning with Kth element from end. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Swap_kth_elements.cpp:22
↓ 1 callersFunctionsolve
* A and B are good friend and programmers. They are always in a healthy competition with each other. They decide to judge the best among them by compe
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Complete_the_skills.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Reversing_the_vowels.cpp:41
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Non_Repeating_element.cpp:33
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Palindromic_Array.cpp:32
↓ 1 callersFunctionsolve
* Given a string str containing only lowercase letters, generate a string with the same letters, but in uppercase. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Lower_case_to_upper.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/First_element_to_occur_Ktime.cpp:36
↓ 1 callersFunctionsolve
* Implement the next permutation, which rearranges the list of numbers into Lexicographically next greater permutation of list of numbers. If such arr
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Next_permutation.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Java_substring.cpp:19
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Perfect_Arrays.cpp:35
↓ 1 callersFunctionsolve
* You are given an array Arr of size N. Replace every element with the next greatest element (greatest element on its right side) in the array. Also,
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Greater_right_side.cpp:22
↓ 1 callersFunctionsolve
* Given an array Arr of N positive integers. Your task is to find the elements whose value is equal to that of its index value ( Consider 1-based inde
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Value_equal_index_value.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_index.cpp:44
↓ 1 callersFunctionsolve
* Given an array A[] of N integers and an index Key. Your task is to print the element present at index key in the array. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_elements.cpp:22
↓ 1 callersFunctionsolve
* Calculate the product of all the elements in an array. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Mutiplication_Array.cpp:22
↓ 1 callersFunctionsolve
* Given a String S , print the reverse of the string as output. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Reverse_string.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Cyclically_rotate_an_array_by_one.cpp:28
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Move_all_negative_elements_to_end.cpp:31
↓ 1 callersFunctionsolve
* Given an array arr[] of N integers, calculate the median */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_the_median.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sort_the_Array.cpp:27
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Compound_Interest.cpp:26
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Encoding_Names.cpp:33
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Wave_Array.cpp:29
↓ 1 callersFunctionsolve
* Given a array of length N, at each step it is reduced by 1 element. In the first step the maximum element would be removed, while in the second step
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Print_left_element.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Check_if_Two_Array_are_equal.cpp:28
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Fascinating_Number.cpp:37
↓ 1 callersFunctionsolve
* Sum of digit */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sum_Of_Digits.cpp:22
↓ 1 callersFunctionsolve
* Given an NxN matrix Mat. Sort all elements of the matrix. */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Sorted_matrix.cpp:22
↓ 1 callersFunctionsolve
* Given a string of a constant length, print a triangle out of it. The triangle should start with the given string and keeps shrinking downwards by re
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Triangle_shrinking_downwards.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Check_String.cpp:30
↓ 1 callersFunctionsolve
* Given a number N, find the Nth term in the series 1, 3, 6, 10, 15, 21… */
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Find_nth_Term.cpp:22
↓ 1 callersFunctionsolve
Coding Platforms(codechef,codeforces,etc)/GeeksforGeeks/Alternative_positive_negative.cpp:35
← previousnext →701–800 of 2,161, ranked by callers