mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 03:33:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>Write a method that finds the maximum of two numbers. You should not use if-else or any other comparison operator.</p>
 | 
						|
 | 
						|
<p><strong>Example: </strong></p>
 | 
						|
 | 
						|
<pre>
 | 
						|
<strong>Input: </strong> a = 1, b = 2
 | 
						|
<strong>Output: </strong> 2
 | 
						|
</pre>
 |