183. Customers Who Never Order leetcode Solution For Explnation Watch video : Code:: select name Customers from Customers where id not in (select customerId from Orders);
java program to find the total number of set bits of the number Code:: import java.util.*; class Test{ public static void main(String[] nums){ int n = 7; int count = 0; while(n!=0){ int bit = n&1; if(bit==1){ count++; } n = n>>1; } System.out.println("Set Bits : "+count); } } o/p: 3
how to change Default Embedded Server in spring boot exclusion of tomcat ============== <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> undertow server ========== <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> </dependency> jetty server ========= <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> </dependency>
African Cities Hackerrank Solution Solution: select city.name from city inner join country on city.countrycode = country.code where country.CONTINENT = 'Africa';
average population of each continent hackerrank solution oracle Code: select country.continent,floor(avg(city.population)) from city inner join country on city.countrycode = country.code group by country.continent;