search-in-rotated-sorted-array 1.0.0
Search in Rotated Sorted Array
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 37 of file main.cpp.

38{
39 vector<int> nums = {4,5,6,7,0,1,2};
40 int target = 0;
41 cout << "output: " << Solution().search(nums, target) << endl;
42 return 0;
43}
int search(vector< int > &nums, int target)
Definition main.cpp:8

References Solution::search().