## Generate numbers from 1 to 7 with equal probability using specified function

Write an algorithm to generate numbers from 1 to 7 with equal probability using a specified function which produces random numbers between 1 to 5 with equal probability.

Coding made easy

Write an algorithm to generate numbers from 1 to 7 with equal probability using a specified function which produces random numbers between 1 to 5 with equal probability.

In this post, we will see how to implement ternary-like operator in C without using conditional expressions like ternary operator, ifâ€“else expression or switch-case statements.

In this post, we will discuss how to determine if two integers are equal without using comparison operators (==, !=, < , >, < =, >=) & arithmetic operators (+, -, *, /, %).

Write an algorithm to generate random numbers from 1 to 12 with equal probability using a given function which generates random numbers from 1 to 6 with equal probability.

Write an algorithm to generate 0, 1 and 2 with equal probability using a specified function which either produces 0 or 1 with 50% probability each.

Write an algorithm to get 0 and 1 with equal probability using a function which generates random numbers from 1 to 5 with equal probability.

In this post, we will implement KMP Algorithm in C, C++ and Java programming language.

In this post, we will see how to return multiple values from a function in C.

Write an efficient function to implement substr function in C. substr() function returns the substring of given string between two given indices.

Write an efficient program to implement strstr function in C. strstr() function returns a pointer to the first occurrence of a string in another string.

Write an efficient function to implement strcmp function in C. Standard strcmp() function compares the two strings and returns an integer indicating the relationship between the two strings.

Write an efficient function to implement strncat function in C. Standard strncat() function appends appends first num characters of given C-string to the another string.