What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-28 23:25:25
Find max of two values, find max of three values
//find max of two values/ find max of Three values let business = 30000; let job = 10000; let entrepreneur = 90000; function whoisrich(){ if (business<job && entrepreneur<job) { return "Job is best" } else if (j... Add solution -
Java 2022-01-22 19:20:09
Find minimum and maximum values in a java array
// Java program to find maximum and minimum number without using array import java.util.Scanner; public class MaximumMinimumWithoutArray { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(&... Add solution -
SQL 2022-01-22 06:50:05
sql find second highest salary employee
Both options you find max as a subset and then exclude from main select sql> SELECT MAX( col ) FROM table WHERE col < ( SELECT MAX( col ) FROM table); sql> SELECT MAX(col) FROM table WHERE col NOT IN (SELECT MAX(col) FROM table); Add solution -
Python 2021-11-11 17:04:11
ternary search algorithm
def ternary_search(f, left, right, absolute_precision) -> float: """Find maximum of unimodal function f() within [left, right] To find the minimum, reverse the if/else statement or reverse the comparison. """ ... Add solution -
C++ 2021-11-10 14:30:20
How to find the suarray with maximum sum using divide and conquer
#include <stdio.h> #include <limits.h> // Utility function to find maximum of two numbers int max(int x, int y) { return (x > y) ? x : y; } // Function to find maximum subarray sum using divide and conq... Add solution -
Java 2021-10-27 14:52:07
Java program to find maximum and minimum number without using array
// Java program to find maximum and minimum number without using array import java.util.Scanner; public class MaximumMinimumWithoutArray { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(&... Add solution
Best helpers
Eric Vought
+5
James Song
+5
Fishbean
+5
Mai Rose
+5
Bunch
+5
Bob R Bogle
+5
Gruppetto
+5
Katboodle
+5
Vidhi Patel
+5
Buttercup
+5
Bin Nguyễn
+5