What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-28 05:22:02
fibonacci sequence in python 2.7
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution -
Python 2021-08-27 21:35:02
code of binary search in python
def binary_search(item_list,item): first = 0 last = len(item_list)-1 found = False while( first<=last and not found): mid = (first + last)//2 if item_list[mid] == item : found = True else: if item < item_list[mid]: last = mid - 1... Add solution -
Java 2021-08-27 12:56:02
Java program to convert decimal number to binary & count number of 1s
// decimal to binary conversion in java import java.util.Scanner; public class DecimalBinaryDemo { public static void main(String[] args) { int number, count = 0, temp; String strConvert = ""; Scanner sc = new Scanner(Sys... Add solution
Best helpers
Ranking is empty