Skip to content

Commit

Permalink
Time: 3 ms (54.36%), Space: 10.3 MB (9.51%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipendra-Raghav committed Feb 23, 2024
1 parent 61ce629 commit 0315c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 0046-permutations/0046-permutations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Solution {
for(int i=0;i<nums.size();i++)
{
//include
if(nums[i]!=-16161)
if(nums[i]!=INT_MIN)
{
ans.push_back(nums[i]);
int t=nums[i];
nums[i]=-16161;
nums[i]=INT_MIN;
solve(nums,res,ans);
ans.pop_back();
nums[i]=t;
Expand Down

0 comments on commit 0315c69

Please sign in to comment.