Canlı yayında, Java ve yazılım dünyasına dair ele almamızı istediğiniz konu ve soruları buradan bizimle paylaşabilirsiniz.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jugistanbul; | |
/** | |
* This problem was asked by Stripe. | |
* | |
* Given an array of integers, find the first missing positive integer in linear time and constant space. | |
* In other words, find the lowest positive integer that does not exist in the array. | |
* The array can contain duplicates and negative numbers as well. | |
* | |
* For example, the input [3, 4, -1, 1] should give 2. The input [1, 2, 0] should give 3. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.kodcu.es.util; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.elasticsearch.action.admin.cluster.repositories.delete.DeleteRepositoryResponse; | |
import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryResponse; | |
import org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse; | |
import org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotResponse; | |
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotRequest; | |
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse; |