Made In China Talk  

Go Back   Made In China Talk > E-Commerce > E-Commerce > Internet Marketing
Directory Register FAQ Members List Calendar Mark Forums Read 中文




Display minimum value that is not in array


Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2018, 10:34 PM
click click is offline
Senior Member
 
Join Date: Dec 2008
Posts: 74,152
Feedback: (0)
Default Display minimum value that is not in array

Question from codility test Write a function: class Solution { public int solution(int[] A); } that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function ...
__________________
Pay Per Click Forum
Made In China Talk
Pay-Per-Click Advertising
Reply With Quote




Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


| Business Forum | Toronto Chinese

All times are GMT +9. The time now is 07:02 PM.


All rights reserved. Copyright © 2007 Made In China Talk