Skip to content

Instantly share code, notes, and snippets.

@yunusalkan
yunusalkan / gist:28a9fa78866d11df9492bd85a514d916
Created February 22, 2026 16:13 — forked from gulbaki/gist:a64010915eccda2ccaa527199bcfd323
Claude Code’un arkasındaki ekipten paylaşılan gerçek kullanım alışkanlıkları bir araya getirilmiş ve tek bir dosyada toplanmış: CLAUDE.md
# Workflow Orchestration
## 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately — don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
## 2. Subagent Strategy
@yunusalkan
yunusalkan / LongestSubstring.java
Created November 9, 2022 15:40
Longest Substring
class LongestSubstring {
public int lengthOfLongestSubstring(String s) {
if(s.length() == 1)
return 1;
int longestStrLength = 0;
int begin=0;
int foundedIndx=0;
Set<Character> characters = new HashSet<>();
for (int i = 0; i < s.length(); i++)
@yunusalkan
yunusalkan / BalancedBinaryTree.java
Created November 9, 2022 06:41
Balanced Binary Tree
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
@yunusalkan
yunusalkan / SameTree.java
Created November 7, 2022 10:47
Same Tree
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode() {}
* TreeNode(int val) { this.val = val; }
* TreeNode(int val, TreeNode left, TreeNode right) {
* this.val = val;
@yunusalkan
yunusalkan / MissingNumber.java
Created November 7, 2022 09:00
Missing Number
class MissingNumber {
public int missingNumber(int[] nums) {
int sum = 0;
int maxNum = -1;
boolean isZeroExist = false;
for (int i = 0; i < nums.length; i++)
{
sum += nums[i];
if(nums[i] > maxNum)
{
@yunusalkan
yunusalkan / Solution.java
Created October 27, 2022 13:32
AddBinary.java
class Solution {
public String addBinary(String a, String b) {
char[] summaryArray = new char[Math.max(a.length(), b.length()) + 1];
String shortBits, longBits;
if(a.length() > b.length())
{
shortBits = new String(b);
longBits = new String(a);
}
else
@yunusalkan
yunusalkan / LongestConsecutiveSequence.java
Created October 25, 2022 08:02
Longest Consecutive Sequence
class Solution {
public int longestConsecutive(int[] nums) {
if(nums.length<1)
return 0;
if(nums.length == 1)
return 1;
UnionFind uf = new UnionFind(nums);
@yunusalkan
yunusalkan / Jump2.java
Created October 20, 2022 12:12
Jump2.java
class Solution {
public int jump(int[] nums) {
if(nums.length == 1)
return 0;
int jumpCount = 0;
int startIndex=0;
int maxValue = -1;
int maxValueIndx = -1;
class Solution {
public int trap(int[] height) {
if(height.length < 2)
return 0;
int totalTrappingArea = 0;
if(height[0] > height[height.length-1])
{